-
Notifications
You must be signed in to change notification settings - Fork 351
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
Add some Prometheus metrics: #501
Conversation
- cloudsql_proxy_active_connections - cloudsql_proxy_max_connections - cloudsql_proxy_connections_total - cloudsql_proxy_connections_errors_total Signed-off-by: Tom Wilkie <[email protected]>
2 quick high level thoughts:
|
Just so that we are clear about what the impact of adding this dependency is, do you mind reporting the before/after size of the binary? |
I thought Opencensus was deprecated and Opentelemetry wasn't ready yet... Either way not super familiar with either. I think there are plenty of ways to get Prometheus metrics into stackdriver.
Done!
|
Signed-off-by: Tom Wilkie <[email protected]>
OpenCensus isn't deprecated, but most of the feature work is focused on OpenTelemetry. OpenTelemetry is currently in Beta and is supposed to GA sometime before the end of the year. You can export Prometheus metrics to Stackdriver, but requires you to collect them in a prometheus server and export them. Using OpenCensus means we could provide users an option to specify an exporter to either Prometheus or Stackdriver (or one of the other supported exporters). |
Signed-off-by: Tom Wilkie <[email protected]>
Is this PR dead now? It was going to provide really useful visibility |
As mentioned in #600, we're working on some major structural improvements in addition to waiting for OpenTelemetry to go GA. Once those are done, we're going to circle back and add first-class support for metrics and tracing to the proxy. For now, I'd like to leave this PR open for reference in case others need Prometheus support with the caveat that we're not going to merge it. |
As of #1215, we have support for Prometheus metrics in the v2 branch. We're working on a migration guide and making v2 the main branch, but until then I'm going to close this. |
Change Description
Add some Prometheus metrics:
Checklist
bug/issue
before writing your code! That way we can discuss the change, evaluate
designs, and agree on the general idea.
Relevant issues: