Query a metric from Prometheus and use current hostname as variable

Hello Mike!

Thanks for your reply, but it seems not to work. I get this error message:

PromQL expression (x509_cert_expiry{job="myjob",env="myenv",host="$HOSTNAME$"}/86400) does not produce a valid result

Any other ideas?

Kind regards

Jens