-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[connector/spanmetrics] How to use spanmetrics together with grafana's service graph #26370
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hello @cmergenthaler, can you share the config you're using for this functionality? There are a couple of options, but it depends on how the collector is configured. |
Hey @crobert-1, appreciate your help! receivers:
otlp:
protocols:
grpc:
http:
connectors:
servicegraph:
latency_histogram_buckets: [0.1, 0.2, 0.4, 0.8, 1.6, 3.2, 6.4, 12.8]
spanmetrics:
namespace: traces.spanmetrics
histogram:
explicit:
buckets: [2ms, 4ms, 8ms, 16ms, 32ms, 64ms, 128ms, 256ms, 512ms, 1.02s, 2.05s, 4.10s]
processors:
batch:
exporters:
prometheusremotewrite:
endpoint: my-prom
target_info:
enabled: false
service:
pipelines:
metrics:
receivers: [otlp, servicegraph, spanmetrics]
processors: [batch]
exporters: [prometheusremotewrite]
traces:
receivers: [otlp]
processors: [batch]
exporters: [servicegraph, spanmetrics] In prometheus I have the following spanmetrics available:
As described, Grafana expects slightly different metrics to be present in prometheus. It also seems that the prometheusremotewrite does not add |
Perfect, the extra information helps! To get this working you need to enable the PR #26489 was also just merged which will enable this feature gate by default in the next release of the collector. #26488 is the tracking issue for this effort. Issue #26488 is the tracking issue for this change. Until release |
Thanks for the help! That indeed fixes the |
I don't have a good answer here, so I'll have to defer to the code owners. |
Pinging code owners for exporter/prometheusremotewrite: @Aneurysm9 @rapphil. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Have you looked at this doc https://grafana.com/docs/grafana-cloud/monitor-applications/application-observability/architecture/opentelemetry/head-sampling/ ? Describes the otel setup for head sampling with |
Thanks for the useful example! I think this solves my initial request, though the serice graph table is still not shown. But I think this issue can be closed for now |
Component(s)
connector/spanmetrics
Is your feature request related to a problem? Please describe.
From what I see, the changes introduced in #18760 made the spanmetrics connector incompatible with grafana's service graph.
As stated in grafana tempo docs:
Describe the solution you'd like
Allow customizing the name of the
duration
metric so that it can be used by grafana.Describe alternatives you've considered
Would be happy to know about other solutions
Additional context
No response
The text was updated successfully, but these errors were encountered: