GoogleCloudPlatform / k8s-stackdriver

Apache License 2.0
390 stars 212 forks source link

prometheus-to-sd deprecation? #343

Open logicbomb421 opened 4 years ago

logicbomb421 commented 4 years ago

Hello,

I just landed on this project again after a few months away and notice the big message at the top of the README basically saying not to use this utility anymore, and to instead prefer Google Cloud Monitoring.

I am slightly confused, as I have successfully used this in the past to export some RabbitMQ metrics to Stackdriver, which was incredibly handy because it meant I did not need to run my own Prometheus system.

Now looking at the alternative to this, I see we do need to be running our own Prometheus instance now? It seems this incredibly simple, easy to configure tool has been replaced in favor of a much more robust, but also much more complex alternative?

I am in a position where I want to eventually run my own Prometheus system, but do not have the time now and was planning on using prometheus-to-sd in the interim, since I have a lot of monitoring already configured in Stackdriver.

Just trying to understand the goal here.

huydinhle commented 4 years ago

Yeah, it seems like no one is responding to this repo any more

ocervell commented 4 years ago

@logicbomb421 @huydinhle yes this tool is for internal use only. You can use the OpenTelemetry collector deployed as a daemonset to scrape Prometheus metrics, see an example here: https://github.com/ocervell/gunicorn-opentelemetry-poc/blob/master/k8s/otel-agent.yaml