mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-25 11:49:58 +01:00
1f2458f42c
* remove injection hook for textfile metrics, convert them to prometheus format * add support for summaries * add support for histograms * add logic for handling inconsistent labels within a metric family for counter, gauge, untyped * change logic for parsing the metrics textfile * fix logic to adding missing labels * Export time and error metrics for textfiles * Add tests for new textfile collector, fix found bugs * refactor Update() to split into smaller functions * remove parseTextFiles(), fix import issue * add mtime metric directly to channel, fix handling of mtime during testing * rename variables related to labels * refactor: add default case, remove if guard for metrics, remove extra loop and slice * refactor: remove extra loop iterating over metric families * test: add test case for different metric type, fix found bug * test: add test for metrics with inconsistent labels * test: add test for histogram * test: add test for histogram with extra dimension * test: add test for summary * test: add test for summary with extra dimension * remove unnecessary creation of protobuf * nit: remove extra blank line
23 lines
1.5 KiB
Promela
23 lines
1.5 KiB
Promela
# HELP event_duration_seconds_total Query timings
|
|
# TYPE event_duration_seconds_total summary
|
|
event_duration_seconds_total{baz="inner_eval",quantile="0.5"} 1.073e-06
|
|
event_duration_seconds_total{baz="inner_eval",quantile="0.9"} 1.928e-06
|
|
event_duration_seconds_total{baz="inner_eval",quantile="0.99"} 4.35e-06
|
|
event_duration_seconds_total_sum{baz="inner_eval"} 1.8652166505091474e+06
|
|
event_duration_seconds_total_count{baz="inner_eval"} 1.492355615e+09
|
|
event_duration_seconds_total{baz="prepare_time",quantile="0.5"} 4.283e-06
|
|
event_duration_seconds_total{baz="prepare_time",quantile="0.9"} 7.796e-06
|
|
event_duration_seconds_total{baz="prepare_time",quantile="0.99"} 2.2083e-05
|
|
event_duration_seconds_total_sum{baz="prepare_time"} 840923.7919437207
|
|
event_duration_seconds_total_count{baz="prepare_time"} 1.492355814e+09
|
|
event_duration_seconds_total{baz="result_append",quantile="0.5"} 1.566e-06
|
|
event_duration_seconds_total{baz="result_append",quantile="0.9"} 3.223e-06
|
|
event_duration_seconds_total{baz="result_append",quantile="0.99"} 6.53e-06
|
|
event_duration_seconds_total_sum{baz="result_append"} 4.404109951000078
|
|
event_duration_seconds_total_count{baz="result_append"} 1.427647e+06
|
|
event_duration_seconds_total{baz="result_sort",quantile="0.5"} 1.847e-06
|
|
event_duration_seconds_total{baz="result_sort",quantile="0.9"} 2.975e-06
|
|
event_duration_seconds_total{baz="result_sort",quantile="0.99"} 4.08e-06
|
|
event_duration_seconds_total_sum{baz="result_sort"} 3.4123187829998307
|
|
event_duration_seconds_total_count{baz="result_sort"} 1.427647e+06
|