metrics: refactor counters
The metrics daemon had counter classes that represented
persistent, tagged values, and UMA stats. To create some
derived UMA stats we need to separate persistency and UMA stats,
and the tagging doesn't help either.
This rewrite is supposed to keep the same functionality.
TEST=ran and checked a few histograms
Tested-by: Luigi Semenzato <firstname.lastname@example.org>
Reviewed-by: Luigi Semenzato <email@example.com>
Commit-Queue: Luigi Semenzato <firstname.lastname@example.org>
11 files changed