Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google-managed prometheus ingestion for metrics #259

Open
lstanczak opened this issue Jul 28, 2023 · 5 comments
Open

Google-managed prometheus ingestion for metrics #259

lstanczak opened this issue Jul 28, 2023 · 5 comments
Labels
enhancement New feature or request priority: p3

Comments

@lstanczak
Copy link

Hello
Java applications need to be able to export metrics using manage prometheus interface:
https://cloud.google.com/stackdriver/docs/managed-prometheus

Similar solution is done for Go (and used in otel-collector)
https://github.com/GoogleCloudPlatform/opentelemetry-operations-go/tree/main/exporter/collector/googlemanagedprometheus

@aabmass
Copy link
Contributor

aabmass commented Jul 31, 2023

For now, we don't plan to support this in individual language SDK exporters. There are a few other options you could try:

  • Configure the OTel Java Prometheus exporter with Google Managed Prometheus agent scraping it
  • Send OTLP to an OTel collector and use the googlemanagedprometheus exporter than you mentioned to send to Google Managed Prometheus

Would either of these work for your use case?

@aabmass aabmass added the enhancement New feature or request label Jul 31, 2023
@lstanczak
Copy link
Author

For now, we don't plan to support this in individual language SDK exporters. There are a few other options you could try:

  • Configure the OTel Java Prometheus exporter with Google Managed Prometheus agent scraping it
  • Send OTLP to an OTel collector and use the googlemanagedprometheus exporter than you mentioned to send to Google Managed Prometheus

Would either of these work for your use case?

It would be more efficient to integrate directly. Do you know if there is a documentation for this protocol/format?

@aabmass
Copy link
Contributor

aabmass commented Aug 1, 2023

It would be more efficient to integrate directly.

Are you using GKE or GCE? It would be good to know some more details of your use case and what you mean by "efficient" here.

Do you know if there is a documentation for this protocol/format?

We don't publicly document the format and it could be subject to change. I don't think we would want to take on maintenance of such an exporter right now, but I'll leave this open as a feature request.

@evantorrie
Copy link

One use-case for wanting direct integration of exporter is when running as a Cloud Function. In that case, having to deploy an Otel Collector somewhere just in order to receive the OTLP metrics and then use the Collector to translate to googlemanagedprometheus seems somewhat contrary to the promise of "serverless" code.

It would probably be better if Google Monitoring just had a direct OTLP endpoint, rather than providing googlecloud or googlemanagedprometheus endpoints.

@psx95
Copy link
Contributor

psx95 commented Oct 2, 2024

@evantorrie
Would something like #377 work for you in the meantime ? (As a workaround)

The example showcase exporting metrics from a Google Cloud Run Function (formerly known as Cloud Function) to Google Managed Prometheus using an OTel Collector.

Granted it still uses an OpenTelemetry Collector, but it leverages Cloud Run's multi-container support, so you don't need to manage a separate persistent server (GCE instance or something similar) constantly running that hosts a collector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: p3
Projects
None yet
Development

No branches or pull requests

4 participants