mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-21 11:58:17 +00:00
dd41e999c4
This reduces the boilerplate around declaring metrics (counters, histograms, gauges) in their various forms, and more or less standardizes them, making the syntax more regular regardless of how the metrics are actually stored. We move the help out to doc comments, making it easier to write a multi-line exposition on a given metric (in the future; we're not doing that yet). linkme is used to form a registry that can be used to eagerly collect metadata from the various metrics. This will be used to drive some automated documentation extraction for the various metrics in a future commit.