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
35 lines
2.4 KiB
Plaintext
35 lines
2.4 KiB
Plaintext
# 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
|
|
# HELP prometheus_tsdb_compaction_chunk_range Final time range of chunks on their first compaction
|
|
# TYPE prometheus_tsdb_compaction_chunk_range histogram
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="bar",le="100"} 0
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="bar",le="400"} 0
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="bar",le="1600"} 0
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="bar",le="6400"} 0
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="bar",le="25600"} 7
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="bar",le="102400"} 7
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="bar",le="409600"} 1.412839e+06
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="bar",le="1.6384e+06"} 1.69185e+06
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="bar",le="6.5536e+06"} 1.691853e+06
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="bar",le="2.62144e+07"} 1.691853e+06
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="bar",le="+Inf"} 1.691853e+06
|
|
prometheus_tsdb_compaction_chunk_range_sum{foo="bar"} 6.71393432189e+11
|
|
prometheus_tsdb_compaction_chunk_range_count{foo="bar"} 1.691853e+06
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="baz",le="100"} 0
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="baz",le="400"} 0
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="baz",le="1600"} 0
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="baz",le="6400"} 0
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="baz",le="25600"} 7
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="baz",le="102400"} 7
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="baz",le="409600"} 1.412839e+06
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="baz",le="1.6384e+06"} 1.69185e+06
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="baz",le="6.5536e+06"} 1.691853e+06
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="baz",le="2.62144e+07"} 1.691853e+06
|
|
prometheus_tsdb_compaction_chunk_range_bucket{foo="baz",le="+Inf"} 1.691853e+06
|
|
prometheus_tsdb_compaction_chunk_range_sum{foo="baz"} 6.71393432189e+11
|
|
prometheus_tsdb_compaction_chunk_range_count{foo="baz"} 1.691853e+06
|