Closed merusso-regions closed 2 years ago
@merusso-regions the metrics are collected and aggregated over an interval in your case 5 seconds. So in the last 5 seconds if there are no new http requests, it will reset. So its up to the backend system downstream from prometheus to treat this information appropriately.
will be addressed in #299
Resolved by https://github.com/SteeltoeOSS/Steeltoe/pull/828
Describe the bug
Prometheus metrics are being reset every ~5 seconds, preventing Prometheus server from collecting accurate metrics.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Counters like http_server_requests_count should continually increment. Instead, these counters are resetting after ~5 seconds, discarding these counter metrics. This results in incorrect metrics data in Prometheus server.
Environment (please complete the following information):
Screenshots
Example output from /actuator/prometheus: