You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(observability): the resource attributes a metrics pipeline must promote to labels are stated (#1539) - #1554
The alert rules in docs/observability/ select on node and job. The components do not set those labels. They set k8s.node.name and service.name on the OTLP resource, and the metrics pipeline makes the labels. Nothing under docs/ said so.
What is added
docs/observability/metric-labels.md
the resource attributes each component sets, read from the charts' OTEL_RESOURCE_ATTRIBUTES and each resource builder;
the labels each shipped rule file needs;
what a missing promotion looks like;
an example OpenTelemetry Collector transform processor and the Prometheus otlp.promote_resource_attributes setting, both marked as examples;
five queries to check a pipeline with.
docs/observability/README.md: a short section ahead of "Installing" that links to it.
What the page establishes
node has to be made from k8s.node.name, and it has to be called node. Promoting it as k8s_node_name keeps the series apart, but the rules do not select on that name.
job comes from service.name. The node proxy's Envoy stats set no service.name, so they have no job.
The registrar and the controller set no k8s.node.name, and only the edge proxy sets service.instance.id. Registrar replicas are told apart by k8s.pod.name alone, and the pipeline has to promote it for AetherRegistrarSnapshotDiverged to have more than one series to compare.
How the "what breaks" table was checked
Three rows were run with bazel run //bazel/promtool -- test rules against copies of the shipped rule files, with two nodes (or two replicas) and one of them failing:
Input
Result
node label named k8s_node_name, one node unchained
AetherCNIConflistUnchained: no alert
the same, one node with zero records
MeshDNSNoRecords: one alert, no node label, summary ends "on "
registrar replicas collapsed to one series
AetherRegistrarSnapshotDiverged: no alert
registrar replicas apart by pod, with and without job
fires in both
The row about counters and gauges collapsing fleet-wide is taken from the chart's own comments (agent-proxy-configmap.yaml, edge-deployment.yaml), not measured here.
The Collector example was parsed as YAML and not run against a Collector: the page says so.
Not changed
agent-pin-alerts.yml and its test (#1528), and test/harnesscontract/ (#1535).
Tests
bazel test //:observability_rules_test //website:site_test: pass
make format-check: clean
No BUILD edit: //:website_docs globs docs/**/*.md, and the new page is not a rule file.
…promote to labels are stated (#1539)
The shipped alert rules select on `node` and `job`. The components set
`k8s.node.name` and `service.name` on the OTLP resource and the pipeline
makes the labels. docs/observability/metric-labels.md says which attributes
each component sets, which labels each rule file needs, what a missing
promotion looks like (run through promtool against the shipped rules), and
gives an example Collector and Prometheus configuration. The README links
to it ahead of "Installing".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
Avoid documenting pod hostname as the node hostname
docs/observability/metric-labels.md:69
hostNetwork does not make a pod share the node's hostname/UTS namespace; resource.WithHost() still observes the pod hostname (normally the pod name). The Envoy node proxy also only uses the environment resource detector, and its chart attributes contain no host.name. Please avoid documenting either as a node hostname, since that could encourage a pipeline to derive an unstable or absent node value.
Describe pin results as one row per expected job and node
docs/observability/metric-labels.md:168
The pin query groups by (job, node), not just node, and both the node agent and edge control plane emit this metric (the rule file explicitly documents both jobs). A node hosting edge can therefore legitimately produce multiple rows. Describe this as one row per expected (job, node) so the validation does not report a correctly labelled pipeline as broken.
Clarify k8s.pod.name as promoted Kubernetes identity, not sole differentiator
docs/observability/metric-labels.md:56
This contradicts the resource-builder behavior documented below: the registrar and controller also use resource.WithHost() (common/telemetry/setup/setup.go:65), and line 70 says their host.name is the pod name, so k8s.pod.name is not the only resource attribute that distinguishes replicas. Present it as the explicit Kubernetes identity to promote rather than the sole differentiator.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1539
The alert rules in
docs/observability/select onnodeandjob. The components do not set those labels. They setk8s.node.nameandservice.nameon the OTLP resource, and the metrics pipeline makes the labels. Nothing underdocs/said so.What is added
docs/observability/metric-labels.mdOTEL_RESOURCE_ATTRIBUTESand each resource builder;transformprocessor and the Prometheusotlp.promote_resource_attributessetting, both marked as examples;docs/observability/README.md: a short section ahead of "Installing" that links to it.What the page establishes
nodehas to be made fromk8s.node.name, and it has to be callednode. Promoting it ask8s_node_namekeeps the series apart, but the rules do not select on that name.jobcomes fromservice.name. The node proxy's Envoy stats set noservice.name, so they have nojob.k8s.node.name, and only the edge proxy setsservice.instance.id. Registrar replicas are told apart byk8s.pod.namealone, and the pipeline has to promote it forAetherRegistrarSnapshotDivergedto have more than one series to compare.How the "what breaks" table was checked
Three rows were run with
bazel run //bazel/promtool -- test rulesagainst copies of the shipped rule files, with two nodes (or two replicas) and one of them failing:k8s_node_name, one node unchainedAetherCNIConflistUnchained: no alertMeshDNSNoRecords: one alert, nonodelabel, summary ends "on "AetherRegistrarSnapshotDiverged: no alertpod, with and withoutjobThe row about counters and gauges collapsing fleet-wide is taken from the chart's own comments (
agent-proxy-configmap.yaml,edge-deployment.yaml), not measured here.The Collector example was parsed as YAML and not run against a Collector: the page says so.
Not changed
agent-pin-alerts.ymland its test (#1528), andtest/harnesscontract/(#1535).Tests
bazel test //:observability_rules_test //website:site_test: passmake format-check: cleanNo BUILD edit:
//:website_docsglobsdocs/**/*.md, and the new page is not a rule file.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr