Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

add feature : filter metrics based on labels values #85

Open
gregoiremahe opened this issue Nov 12, 2018 · 2 comments
Open

add feature : filter metrics based on labels values #85

gregoiremahe opened this issue Nov 12, 2018 · 2 comments

Comments

@gregoiremahe
Copy link
Contributor

Could we have feature for filtering labels in beamium.yaml file ?
i.e. filter ethX and lo devices labels, but not others

Manipulate labels during scraping phase, for example
filtering on label value, drop labels, etc

@StevenLeRoux
Copy link
Contributor

Hi Greg.

In the Sink conf area, you can set a "selector: metrics.* ".
As I understand your issue. There could be an improvement that would precise :

  • remove series containing these labels
  • remove this label in the series, but keep the series

As a workaround, if you use Noderig, you can already select only interfaces you need :

net-opts:
interfaces: # Give a filtering list of interfaces for which you want metrics
- eth0
- eth1

@gregoiremahe
Copy link
Contributor Author

Hi Steven

I'm unfortunately using node_exporter

Further information concerning the improvements :

  • Remove labels in the series, but keep the series : Yes, could be done this way. Example :
    in the series matched with node_network_.*, remove series which doesn't match with device=(eth[0-9]|lo)

  • Remove series containing these labels : Not very usefull I guess... Because the first improvement above fix the problem by setting the following regex : ^$ (empty)

@PierreZ has the same problematics, he has a label which change on every restart

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants