mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-29 23:30:08 +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
29 lines
1.8 KiB
Plaintext
29 lines
1.8 KiB
Plaintext
# 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
|
|
# HELP node_textfile_mtime Unixtime mtime of textfiles successfully read.
|
|
# TYPE node_textfile_mtime gauge
|
|
node_textfile_mtime{file="metrics.prom"} 1
|
|
# HELP node_textfile_scrape_error 1 if there was an error opening or reading a file, 0 otherwise
|
|
# TYPE node_textfile_scrape_error gauge
|
|
node_textfile_scrape_error 0
|