Closed naveenkumarthangaraj closed 2 years ago
HI Team,
can you please help us on this issue?
Thanks, Naveen T
HI Team,
can you please help us on this issue?
Thanks, Naveen T
Hello @naveenkumarthangaraj, I'll investigate, thanks for reporting :+1:
Please fix your collector configuration, it is not indented. How are you running the collector?
@ocelotl the description contained indentation that werent showing up in markdown, i just added a codeblock around it
@naveenkumarthangaraj Please check your configuration, there are some invalid keys, like insecure
below otlp:
.
If I understand right, you're using the example to send metrics to the collector with OTLP exporter. The example sends two points and then the script ends. Then you have prometheus scraping the collector's Prometheus exporter?
it is exporting the last passed value automatically.
@naveenkumarthangaraj this is how prometheus works, it will keep exposing the previous cumulative value even if no new points come in. I imagine this is happening in the collector's prometheus exporter in this case.
It will stop after 8 - 10 mins.
That sounds like a bug in the collector's prometheus exporter maybe? Or possibly that exporter is reclaiming memory by dropping metrics it hasn't seen for several minutes?
Hey @naveenkumarthangaraj :v:
From what @aabmass mentions, this looks like expected behavior. I am closing this issue, please reopen if you are still facing difficulties.
HI Team,
I am referring the examples for Python Metric from the sample from below link but it is exporting the last passed value automatically. It will stop after 8 - 10 mins.
is it problem in the python sdk or collector or exporter?
https://github.com/open-telemetry/opentelemetry-python/tree/main/docs/examples/metrics
Here is Code
here is Collector Configuration
Collector Logs (it looks like every 2 sec it is automatic severing\recieving the Metric to Exporter) :
Here is the screen shot of the Exported Metrics