node_exporter/collector/fixtures
Pranshu Srivastava ebddab47e1
collector/textfile: Avoid inconsistent help-texts (#2962)
Avoid metrics with inconsistent help-texts. The earlier behaviour has
been preserved in the sense that the first encountered instance is still
used to generate metrics, whereas the subsequent inconsistent ones are
ignored along with a few peripheral changes.

```
 # HELP node_scrape_collector_duration_seconds node_exporter: Duration of a collector scrape.
 #TYPE node_scrape_collector_duration_seconds gauge
 node_scrape_collector_duration_seconds{collector="textfile"} 0.0004005
 # HELP node_scrape_collector_success node_exporter: Whether a collector succeeded.
 # TYPE node_scrape_collector_success gauge
 node_scrape_collector_success{collector="textfile"} 1
 # HELP node_textfile_mtime_seconds Unixtime mtime of textfiles successfully read.
 # TYPE node_textfile_mtime_seconds gauge
 node_textfile_mtime_seconds{file="/Users/rexagod/repositories/misc/node_exporter/ne-bar.prom"} 1.710812009e+09
 node_textfile_mtime_seconds{file="/Users/rexagod/repositories/misc/node_exporter/ne-foo.prom"} 1.710811982e+09
 # 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 1
 # HELP promhttp_metric_handler_errors_total Total number of internal errors encountered by the promhttp metric handler.
 # TYPE promhttp_metric_handler_errors_total counter
 promhttp_metric_handler_errors_total{cause="encoding"} 0
 promhttp_metric_handler_errors_total{cause="gathering"} 0
 # HELP promhttp_metric_handler_requests_in_flight Current number of scrapes being served.
 # TYPE promhttp_metric_handler_requests_in_flight gauge
 promhttp_metric_handler_requests_in_flight 1
 # HELP promhttp_metric_handler_requests_total Total number of scrapes by HTTP status code.
 # TYPE promhttp_metric_handler_requests_total counter
 promhttp_metric_handler_requests_total{code="200"} 0
 promhttp_metric_handler_requests_total{code="500"} 0
 promhttp_metric_handler_requests_total{code="503"} 0
 # HELP tau_infrastructure_performing_maintenance_task At what timestamp a given task started or stopped, the last time it was run.
 # TYPE tau_infrastructure_performing_maintenance_task gauge
 tau_infrastructure_performing_maintenance_task{main_task="nightly",start_or_stop="start",sub_task="main"} 1.64728080198446e+09
```

Fixes: #2317

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2024-03-24 06:43:03 +01:00
..
ethtool ethtool: Prevent duplicate metric names (#2187) 2021-11-15 11:22:36 +01:00
proc Add TCPOFOQueue to default netstat metrics (#2867) 2023-12-08 18:24:07 +01:00
qdisc Add qdisc collector for Linux (#580) 2017-05-23 11:55:50 +02:00
textfile collector/textfile: Avoid inconsistent help-texts (#2962) 2024-03-24 06:43:03 +01:00
usr/lib Add os release collector 2021-08-19 14:04:21 +02:00
wifi Update wifi stats to support multiple stations (#977) (#980) 2018-07-16 16:02:25 +02:00
e2e-64k-page-output.txt Add new collector and metrics for watchdog (#2309) (#2880) 2024-03-09 10:00:06 +01:00
e2e-output.txt Add new collector and metrics for watchdog (#2309) (#2880) 2024-03-09 10:00:06 +01:00
ip_vs_result.txt Ipvs firewall mark (#1455) 2019-08-27 14:24:11 +02:00
ip_vs_result_lbs_local_address_local_port.txt Add flag to aggr ipvs metrics to avoid high cardinality metrics (#1709) 2020-06-02 10:52:00 +02:00
ip_vs_result_lbs_local_port.txt Add flag to aggr ipvs metrics to avoid high cardinality metrics (#1709) 2020-06-02 10:52:00 +02:00
ip_vs_result_lbs_none.txt Add flag to aggr ipvs metrics to avoid high cardinality metrics (#1709) 2020-06-02 10:52:00 +02:00
sys.ttar Add new collector and metrics for watchdog (#2309) (#2880) 2024-03-09 10:00:06 +01:00
udev.ttar Archived fixtures/udev similar to fixtures/sys to avoid go-get errors, fixes #2482 (#2485) 2022-09-27 23:07:57 +02:00