I am selecting a source / device via up{instance='$mac'} in Grafana from a Prometheus data source.
The Grafana variable $mac is a string representing the host name etc. which I generate depending on the user input from a (Postgre)SQL database.
This works. Now I want to do 2 things:
- Use a self set label (e.g. the location of the device instead of its mac address)
- Use a list / array of mac addresses for
instanceas well another variable for the labels in the legend.
The vectors mentioned on https://prometheus.io/docs/prometheus/latest/querying/basics/ seems to be for the time values only. Basically I am searching something equivalent to IN in SQL.