Closed vaish1707 closed 1 year ago
Thank for you reporting this bug, I write a ut to test the spanmetric side, base on the result, I think the bug is coming from exporter/prometheus.
@vaish1707 The exporter/prometheus
side also seems fine. I think you have to query the exporter as follows to see exemplars:
curl -H 'Accept: application/openmetrics-text' 0.0.0.0:8889/metrics
enable_open_metrics
must be set to true in the Prometheus exporter as well.
@vaish1707 have you tried that?
@kovrus , I'm seeing the exemplar data in the latency_bucket metric if I use the above curl posted. If I want to scrape the metrics with this exemplar data from another prometheus instance what should be done? Btw from this another prometheus instance I'm sending the metrics to Amazon managed prometheus and trying to get something out of this in grafana.
The flow goes like this.. OTEL collector prometheus(prometheus 1) -----> prometheus instance scraping otel collector RED metrics(prometheus-2) ---> Amazon managed prometheus ---> grafana.. In this case how do I send the exemplar data successfully from otel collector prometheus to grafana? Should we enable this flag https://prometheus.io/docs/prometheus/latest/feature_flags/#exemplars-storage in prometheus-2 config?
Should we enable this flag https://prometheus.io/docs/prometheus/latest/feature_flags/#exemplars-storage in prometheus-2 config?
yes, that should be enabled.
Should we enable this flag https://prometheus.io/docs/prometheus/latest/feature_flags/#exemplars-storage in prometheus-2 config?
yes, that should be enabled.
From prometheus-2 I'm sending the metrics to Amazon Managed Prometheus with remote_write configuration (https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_write)enabled with send_exemplars to true. In this case I'm seeing the exemplars data in prometheus-2 but not in Amazon Managed Prometheus. Because of this I'm unable to visualise exemplars data in grafana keeping Amazon Managed Prometheus as datasource
Pinging code owners for exporter/prometheus: @Aneurysm9. See Adding Labels via Comments if you do not have permissions to add labels yourself.
Pinging code owners for processor/spanmetrics: @albertteoh. See Adding Labels via Comments if you do not have permissions to add labels yourself.
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers
. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
This issue has been closed as inactive because it has been stale for 120 days with no activity.
Component(s)
exporter/prometheus, processor/spanmetrics
What happened?
Hi Team, I'm trying to generate metrics from span using span metrics processor which I'm able to successfully generate. The exporter is set to prometheus for the metrics generated out of span metrics processor.
I'm using helm charts to deploy opentelemetry collector in kubernetes and following is my configuration
Following is an example metric which I see in locahost:8889/metrics and it doesn't have any exemplar data. Do I need to change any configuration in prometheus exporter or span metrics processor for me to see the exemplars data in prometheus exporter?
Can someone please help me?
Collector version
0.67.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04") Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response