lens icon indicating copy to clipboard operation
lens copied to clipboard

Support for getting metrics from Google Managed Prometheus (GMP)

Open kettenbach-it opened this issue 2 years ago • 5 comments

Google offers a managed service for Prometheus: https://cloud.google.com/stackdriver/docs/managed-prometheus which is internally based on their own big data solution "Monarch" but has PromQL compatible interfaces so it can replace a self-hosted Prometheus. There is a frontend that looks and feels like a regular Prometheus server. It primarily serves as a target URL for a Prometheus datasource in Grafana and to access GMP via the well-known Prometheus UI. https://github.com/GoogleCloudPlatform/prometheus-engine/tree/main/cmd/frontend

It would be nice if Lens could get its metrics from this frontend. I tried it, but couldn't get it to work.

kettenbach-it avatar Dec 24 '22 12:12 kettenbach-it

I have tried a few things to get the whole thing to work. With the "frontend" provided by Google Grafana works, but Lens does not work with it. I also found out that Google deploys "collector" pods in the cluster. They are a special Prometheus versions - probably with a different storage backend - with the known PromQL frontend. I created a service for it and checked if Lens "likes" it. It doesn't. I also made sure that the node-exporters and the kube-state-metrics are processed - you should have that anyway, even if you use GMP. Unfortunately everything was unsuccessful. Lens does not want this service.

How can I find out/debug what is wrong with Lens?

kettenbach-it avatar Dec 24 '22 15:12 kettenbach-it

I tried the same above with the Google provided frontend, and also could not get it to work with Lens. Works standalone though.

With Google pushing for managed Prometheus as standard, it'd be great to see it supported in Lens. New standard clusters in GKE now enable it by default.

bradam12 avatar Jul 07 '23 15:07 bradam12

I tried many different things and couldn't get this to work either. Is this planned?

kamushadenes avatar Oct 28 '23 11:10 kamushadenes

+1 to everything that has been said

dels78 avatar Feb 09 '24 02:02 dels78

need this feature +1

DavidHsaiou avatar Feb 19 '24 05:02 DavidHsaiou