Hi everyone,

I'm using node-exporter on network-centric devices (routers, switches, etc) 
and would like to have an option add certain annotations to certain metrics 
that belong to network interfaces.

This would be meta-data indicating things like:
- name of remote device
- name of remove interface
- role of remote device
- location of remote device
- customer id
- etc. pp.

I've been using that concept in the bird-exporter 
(https://github.com/czerwonk/bird_exporter), the 
streaming-telemetry-exporter 
(https://github.com/exaring/openconfig-streaming-telemetry-exporter) and a 
few prorietary ones for a few years now and it has proven to be very useful 
when it comes to aggregating metrics or placing the right silences into 
alertmanager when it comes to maintenance work.

I've implemented a PoC that matches a netdev's name and adds a list of 
labels to the netdev's metric. The configuration is stored in a yaml file 
like this:
netdev:
  - name: "wlp0s20f3"
    labels:
      type: "lan"
      role: "internal"
  - name: "wg0"
    labels:
      type: "wifi"
      role: "untrusted"

This could also be extended to cover block devices as well.

Opinions?

Kind Regards
takt


-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/2636bd59-00e0-491d-8c5b-5af423d022b1n%40googlegroups.com.

Reply via email to