Counter metric
A counter is a metric that only increases during a process lifetime and resets when the process restarts. It records cumulative events such as successfully placed orders, and rate() can calculate the event rate over a time window.
Minimal example
ordersPlaced.Inc()Learn this concept
Lesson 6.3 · Prometheus metric registrationUsed in exercises
Exercise 6.4 · API and worker metricsPrerequisite conceptsPrometheus metrics