It can seem like a good idea to use recording rules to make more explicit the content of a time series, particularly for those not used to labels. However this usually leads to confusing names and losing the benefits of labels.
I’ve previously mentioned that you shouldn’t have the version of your software as either a target label, or exposed via a label on all metrics of your server as it’ll make using the metrics more challenging. What should you do instead?
There are four standard types of metric in Prometheus instrumentation: Gauge, Counter, Summary and Histogram. Today we’ll have look at the principles around Counters, and how Prometheus differs from other monitoring systems.