autometrics-dev / autometrics-shared

Resources used by all of the autometrics implementations
https://autometrics.dev
Apache License 2.0
11 stars 0 forks source link

Handle when counter metric has _total suffix #1

Closed emschwartz closed 1 year ago

emschwartz commented 1 year ago

Some of the Prometheus client libraries automatically append _total to the names of any counters. This makes the recording rules work, whether the metric is called function_calls_count or function_calls_count_total.

flenter commented 1 year ago

Tested this on my local python set up and finally did get the High Error Rate SLO