grafana/tempo

[Metrics-generator: span-metrics] Enable option to apply regex/wildcard on span attribute key

Open

#3,302 opened on Jan 17, 2024

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Go (727 forks)auto 404
component/metrics-generatorenhancementhelp wantedkeepalive

Repository metrics

Stars
 (5,370 stars)
PR merge metrics
 (PR metrics pending)

Description

I recently started to work on open telemetry, I have multiple attributes where key is prefixed with a string, for example, fruit_apple=3, fruit_orange=5, fruit_mango=10, etc,

Need a feature in span-metrics to apply wildcard on attribute key as below or suggest any workaround.

metricsGenerator: span_metrics: # -- Additional dimensions to add to the metrics along with the default dimensions. # -- Dimensions are searched for in the resource and span attributes and are added to the metrics if present. dimensions: - fruit_.*

Contributor guide