ovh / beamium

Prometheus to Warp10 metrics forwarder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add feature : filter metrics based on labels values

gregoiremahe opened this issue · comments

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

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

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