Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Conversation

@dmitriy-lukyanchikov
Copy link

No description provided.

@dmitriy-lukyanchikov dmitriy-lukyanchikov deleted the INFRA-5947-fix-node-exporter-netdev-collector branch April 11, 2018 14:57
kirandark pushed a commit that referenced this pull request Jan 10, 2022
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: prometheus#2185
Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants