You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to count the number of logs generated by my application and create a new metric in OpenTelemetry Collector that reflects this count
I am using a count connector to generate the metrics
Then metrics are pushed to a Prometheus instance using the Prometheus Remote Write exporter
Actual Result
An error is generated by the Prometheus Remote Write exporter stating: "invalid temporality and type combination for metric 'my.count'".
The metric generated seems to have Aggregation Temporality set to Delta, but I dont' know how to change it to Cumulative in the count connector configuration.
Thanks
Hello @sswieton, you can use the deltatocumulative processor to convert delta temporality metrics to cumulative. This would be added in your metrics pipeline.
Component(s)
connector/count
What happened?
Description
I'd like to count the number of logs generated by my application and create a new metric in OpenTelemetry Collector that reflects this count
I am using a count connector to generate the metrics
Then metrics are pushed to a Prometheus instance using the Prometheus Remote Write exporter
Actual Result
An error is generated by the Prometheus Remote Write exporter stating: "invalid temporality and type combination for metric 'my.count'".
The metric generated seems to have Aggregation Temporality set to Delta, but I dont' know how to change it to Cumulative in the count connector configuration.
Thanks
Collector version
open-telemetry/opentelemetry-collector 0.115.1
Environment information
Environment
Kubernetes Version: v1.28.12+f154a54
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: