Skip to content

Initialize rest_requests_count_total to zero #6296

Open
@twthorn

Description

@twthorn

Feature or Problem Description

This counter is not initialized to zero which means that Prometheus cannot define rate functions cleanly on it.

Proposed Solution

This is a high cardinality metrics (all paths/methods). However status code group (common alerts for non 2xx errors) can be initialized to zero, ignoring the other labels. This allows for cleanly defined prometheus alerts.

Additional Context

You can see the metric goes from null to a value. We need it to be zero for rate of change functions to work cleanly.

Image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions