node_exporter/collector/fixtures
Benjamin Drung d85cbaa17c
ethtool: Prevent duplicate metric names (#2187)
Sanitizing the metric names can lead to duplicate metric names:

```
caller=level.go:63 level=error caller="error gathering metrics: [from Gatherer #2] collected metric \"node_ethtool_giant_hdr\" { label:<name:\"device\" value:\"ens192\" > untyped:<value:0" msg=" > } was collected before with the same name and label values"
```

Generate a map from the sanitized metric names to the metric names from
ethtool. In case of duplicate sanitized metric names drop both metrics,
because it is unknown which one to take.

Fixes: https://github.com/prometheus/node_exporter/issues/2185
Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
2021-11-15 11:22:36 +01:00
..
ethtool ethtool: Prevent duplicate metric names (#2187) 2021-11-15 11:22:36 +01:00
proc Lnstat: expose metrics from /proc/net/stat (#1771) 2021-09-28 10:24:18 +02:00
qdisc Add qdisc collector for Linux (#580) 2017-05-23 11:55:50 +02:00
textfile collector: Unwrap glob textfile directories (#1985) 2021-10-18 14:05:21 +02: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 DMI collector (#2131) 2021-10-27 13:56:37 +02:00
e2e-output.txt Add clocksource metrics to time collector (#2197) 2021-11-12 11:45:31 +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 clocksource metrics to time collector (#2197) 2021-11-12 11:45:31 +01:00