spring-attic / spring-cloud-gcp

Integration for Google Cloud Platform APIs with Spring
Apache License 2.0
704 stars 694 forks source link

Stackdriver Monitoring Exporter for Micrometer #1761

Open saturnism opened 5 years ago

saturnism commented 5 years ago

Explore/add idiomatic integration w/ Stackdriver Monitoring and custom metrics. Typically in GKE deployments, users can use Micrometer and export metrics via Prometheus, and have Prometheus agents scrape & propagate metrics to Stackdriver Monitoring.

However, there are cases where it's better to propagate metrics directly to the service (e.g., when running in App Engine/serverless environment) to export metrics directly to Stackdriver Monitoring.

Micrometer can have custom exporters, it's possible to have a monitoring starter that automatically configure Micrometer and export to Stackdriver.

Remaining tasks:

bbzg commented 4 years ago

Does anyone know the status of this? Is it still not provided out of the box? Thanks.

meltsufin commented 4 years ago

I haven't tired it, but there's Stackdriver integration in the Micrometer project.

bbzg commented 4 years ago

Yes I am using those, but I can't get them to "autowire" by just having them on the class path like other spring-cloud-gcp things. Would be nice if they could be detected and autowired. Unless someone already did that and I just missed some dependency...

meltsufin commented 4 years ago

We certainly don't have a Spring Boot Starter for it yet. Contributions are welcomed!

meltsufin commented 4 years ago

Related: https://github.com/micrometer-metrics/micrometer-docs/pull/115

eddumelendez commented 4 years ago

there is currently support for stackdriver in spring-boot you can see the docs here

2391 tries to solve the project-id and credentials auto-detection.