Aliaksandr Valialkin
4ca082233a
all: go fmt
from Go1.19
2022-08-08 17:15:06 +03:00
Roman Khavronenko
be819551e3
summary: fix Unregister behaviour for summary metric type ( #16 )
...
The change covers two things:
1. Cleanup of Set.a metrics list from per-quantile metrics
for summary.
2. Register summary metric and per-quantile metrics in one take.
This prevents registry corruption when Unregister called in the
middle of metric register process.
2020-08-07 12:59:44 +03:00
Aliaksandr Valialkin
a494df3462
Properly unregister Summary metric in Set.UnregisterMetric
2020-02-26 20:37:47 +02:00
Aleksandr Razumov
42ee365914
all: fix typo lables -> labels ( #3 )
...
Thanks!
2019-09-30 00:06:17 +03:00
Aliaksandr Valialkin
b9f1652800
Marshal integer *_sum
metric for Summary without scientific notation
2019-08-13 13:24:46 +03:00
Aliaksandr Valialkin
2c308dd067
Properly handle metric names with lables when printing *_count and *_sum values for Summary
2019-06-28 14:14:47 +03:00
Aliaksandr Valialkin
d8a137bf94
Add <summary>_sum
and <summary>_count
values for Summary
...
This improves output compatibility with Prometheus Summary type
defined at https://prometheus.io/docs/concepts/metric_types/#summary
2019-06-28 13:58:41 +03:00
Aliaksandr Valialkin
6fc4c03c79
Update Summary quantiles before writing them to the output.
...
Previously Summary quantiles were updated after writing them to the output,
so the output contained old quantile values.
2019-06-28 11:13:39 +03:00
Aliaksandr Valialkin
ebce157dde
Add Set for controlling metric sets to be exported via WritePrometheus call
2019-06-01 23:18:41 +03:00
Aliaksandr Valialkin
bf93e5d810
Added GetOrCreateSummary*
2019-04-11 14:03:30 +03:00
Aliaksandr Valialkin
bfffe95d07
refactored and added tests
2019-04-11 13:03:32 +03:00
Aliaksandr Valialkin
b1d3992f35
Initial commit
2019-04-08 16:29:16 +03:00