node_exporter/collector/fixtures/textfile
Shubheksha Jalan 1f2458f42c Filter out testfile metrics correctly when using collect[] filters (#763)
* 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
2017-12-23 20:21:58 +01:00
..
different_metric_types Filter out testfile metrics correctly when using collect[] filters (#763) 2017-12-23 20:21:58 +01:00
histogram Filter out testfile metrics correctly when using collect[] filters (#763) 2017-12-23 20:21:58 +01:00
histogram_extra_dimension Filter out testfile metrics correctly when using collect[] filters (#763) 2017-12-23 20:21:58 +01:00
inconsistent_metrics Filter out testfile metrics correctly when using collect[] filters (#763) 2017-12-23 20:21:58 +01:00
no_metric_files Fix mtime reporting in textfile collector, add tests. 2015-09-04 15:42:44 +02:00
summary Filter out testfile metrics correctly when using collect[] filters (#763) 2017-12-23 20:21:58 +01:00
summary_extra_dimension Filter out testfile metrics correctly when using collect[] filters (#763) 2017-12-23 20:21:58 +01:00
two_metric_files Fix mtime reporting in textfile collector, add tests. 2015-09-04 15:42:44 +02:00
different_metric_types.out Filter out testfile metrics correctly when using collect[] filters (#763) 2017-12-23 20:21:58 +01:00
histogram.out Filter out testfile metrics correctly when using collect[] filters (#763) 2017-12-23 20:21:58 +01:00
histogram_extra_dimension.out Filter out testfile metrics correctly when using collect[] filters (#763) 2017-12-23 20:21:58 +01:00
inconsistent_metrics.out Filter out testfile metrics correctly when using collect[] filters (#763) 2017-12-23 20:21:58 +01:00
no_metric_files.out Filter out testfile metrics correctly when using collect[] filters (#763) 2017-12-23 20:21:58 +01:00
nonexistent_path.out Filter out testfile metrics correctly when using collect[] filters (#763) 2017-12-23 20:21:58 +01:00
summary.out Filter out testfile metrics correctly when using collect[] filters (#763) 2017-12-23 20:21:58 +01:00
summary_extra_dimension.out Filter out testfile metrics correctly when using collect[] filters (#763) 2017-12-23 20:21:58 +01:00
two_metric_files.out Filter out testfile metrics correctly when using collect[] filters (#763) 2017-12-23 20:21:58 +01:00