The instance field in the dashboard
alexanderek opened this issue · comments
Hi
How can the instance field (Grafana) see the System identity, or the hostname of the device instead of the IP address?
Hey! Try replacing the target's ip with its network name, by which it is available on the network
prometheus/prometheus.yml
Example:
......
- job_name: Mikrotik
static_configs:
- targets:
- myrouter.lan # <---- In this place
metrics_path: /snmp
.....
The host name may not always be resolved. Perhaps there are some aliases?
you can read how using relable in prometheus
google groups and official docs