Currently, it is not possible to give a full service including a path to Lens for the Prometheus Metrics.
I have the problem, that I use Grafana Mimir which exposes - by default - all Metrics like this:
http://grafana-mimir-gateway.default.svc:80/prometheus
In Lens, I cannot add the path. I can only provide a Namespace, Service and Port. If I temporarily change the path in Mimir so it is http://grafana-mimir-gateway.default.svc:80/
and put that in Lens which in turn would be default/grafana-mimir-gateway:80
, it works! But I don’t want to change the path because on the one hand, it breaks other pieces in my cluster that expect it. And on the other hand this is a freely configurable setting. Lens should honor this, IMHO.
I’d be happy to see this (little) feature added in future versions.