Hello,
we are monitoring our systems and use Prometheus data beside the Check_MK Agent. The metric we want to retrieve has a label called “server” with the value of the current hostname. Since I do not want to create individual roles for every host where I have to write a query like my_prom_query{server=“myhostname”}, I would like to have a more generic query where I could use the current hostname as a variable like
my_prom_query{server=“$current_hostname”}
but I think that this is not possible. Or do I miss something?
Any help is appreciated.
Thanks and best regards
Jens