Repository navigation
Traces: Improved pod association in PromSD processor #1137
Changes from 10 commits
101883c
6102b8f
9d2ef3f
fcbb6a5
0bb63ca
2dca8f5
f8c71b1
aecdad5
2f96c45
1f4e5b4
3f2daeb
1a06aa4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -145,6 +145,26 @@ scrape_configs: | |
| # `update` only modifies an existing k/v and `insert` only appends if the k/v | ||
| # is not present. `upsert` does both. | ||
| [ prom_sd_operation_type: <string> | default = "upsert" ] | ||
| # Configures what methods to use to do association between spans and pods. | ||
| # PromSD processor matches the IP address of the metadata labels from the k8s API | ||
| # with the IP address obtained from the specified pod association method. | ||
| # If a match is found then the span is labeled. | ||
| # | ||
| # Options are `ip`, `net.host.ip`, `k8s.pod.ip`, `hostname` and `connection`. | ||
|
annanay25 marked this conversation as resolved.
Resolved
|
||
| # - `ip`, `net.host.ip` and `k8s.pod.ip`, `hostname` match spans tags. | ||
| # - `connection` inspects the context from the incoming requests (gRPC and HTTP). | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The connection association can be elaborated a bit in the docs. Its not obvious that it will look at the RemoteAddr in the requests.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It also uses a different method to inspect the IP in gRPC. Is it worth mentioning? It's something that is done automatically. The user won't have access to this code.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah its fine to just mention. |
||
| # | ||
| # Tracing instrumentation is commonly the responsible for tagging spans | ||
| # with IP address to the labels mentioned above. | ||
| # If running on kubernetes, `k8s.pod.ip` can be automatically attached via the | ||
| # downward API. For example, if you're using OTel instrumentation libraries, set | ||
| # OTEL_RESOURCE_ATTRIBUTES=k8s.pod.ip=$(POD_IP) to inject spans with the sender | ||
| # pod's IP. | ||
| # | ||
| # By default, all methods are enabled, and evaluated in the order specified above. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe? I don't know. The current order is based on the previous implementation. I thought it'd be better to make it a non-op if relabelling was already working for someone with I'm happy to change the ordering to whatever is more common and useful to users though (if that's |
||
| # Order of evaluation is honored when multiple methods are enabled. | ||
| prom_sd_pod_association: | ||
| - [ <string>... ] | ||
|
|
||
| # spanmetrics supports aggregating Request, Error and Duration (R.E.D) metrics | ||
| # from span data. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.