syepes / network_exporter

ICMP / Ping & MTR & TCP Port & HTTP Get - Network Prometheus exporter
Apache License 2.0
336 stars 60 forks source link

Add an option to add static labels #3

Closed guyellen closed 2 years ago

guyellen commented 4 years ago

It would be great if we can add static labels for each target to enrich metadata:

for example:

targets:

syepes commented 4 years ago

This is something I had partially implemented but forgotten to complete :-) I'll finish it in the following weeks. https://github.com/syepes/network_exporter/blob/master/config/config.go#L45

cleonello commented 4 years ago

Would be great to have this feature. I would like to replace blackbox exporter with Network Exporter, but need to have this feature as we reference devices back to a unique host name and not the IP for monitoring purposes.

Sangshaai commented 3 years ago

Looking forward to this feature, may I ask when this feature will be available?

syepes commented 3 years ago

Last time I tried it was a bit more complex, I need to review how it could be done without changing everything :-)

syepes commented 2 years ago

Finally found some time to implement the target label support. https://github.com/syepes/network_exporter/releases/tag/1.5.0