czerwonk / ping_exporter

Prometheus exporter for ICMP echo requests using https://github.com/digineo/go-ping
MIT License
530 stars 115 forks source link

additional target label #97

Open freedomwarrior opened 12 months ago

freedomwarrior commented 12 months ago

Hello. Is it possible to add functionality of additional label hostname for targets, for example:

targets:
  - 8.8.8.8|my-custom-hostname-for-google
  - 1.1.1.1|my-custom-hostname-for-cf
kgcgs commented 12 months ago

You could add your own label and replace it when scraping or just use that label instead of hostname in your dashboards.

aytugan commented 5 months ago

Unfortunately in my setup I cannot change the way it's scraping or add relabling, so I end up with unmeaninglul IP addresses without any option to add context.

Could you consider adding lables into the config?