Skip to content

No launch path can set spored's metrics/tracing/idle-cpu tags (launch flags or --tag allow-list) #1308

Closed

Description

@scttfrdmn

Follow-up to #1244, which fixes only the documentation (the monitoring doc's --tag spawn:metrics-enabled=true example is refused by parseKVTags, cmd/utils.go, because the spawn: prefix is reserved).

The underlying gap remains: pkg/provider/ec2.go reads nine spored config tags at boot that no spawn path writes:

  • spawn:metrics-enabled, spawn:metrics-port, spawn:metrics-bind, spawn:metrics-path
  • spawn:tracing-enabled, spawn:tracing-exporter, spawn:tracing-sampling, spawn:tracing-endpoint
  • spawn:idle-cpu

The only route today is out of band, after launch: aws ec2 create-tags and then a spored restart, because spored reads them once at startup. docs/self-hosted-monitoring.md now documents that route and links here.

Options (from #1244): add launch flags (or --config keys) that write these tags at RunInstances time, or allow-list these keys in parseKVTags. Launch-time tagging also removes the restart, and makes the Prometheus EC2 SD filter (tag:spawn:metrics-enabled) match from the first scrape.

When this lands, the nine allow-list entries in tag_contract_test.go (the #689 contract gate) should be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions