You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
It would be great to be able to track metrics from the proxy (connections, disconnects, etc) in prometheus. If you're open to a PR on this, I can create one
We intend to add metrics to the proxy, we were thinking of first starting with pushing metrics to stackdriver, but it makes sense to try to make it pluggable so others can write to different places.
Reacted by Kyle White, Mitsuhiro Tanda and Pau Ruŀlan Ferragut
We are hoping to have something available in October. The proxy client allows for some interesting setups that are a bit hard to express with the existing stackdriver library, namely reporting metrics to multiple projects simultaneously (as you could connect to instances in different projects), so progress has been a bit slower than expected.
Reacted by tanuck, Devan Patel and Garrett Everding
Sorry for the delay, we had hoped to get something done by October. We had built a prototype, but actually getting it to a releasable state has dragged on quite a bit. We are still working on this though.
@bergquist to clarify, the proxy only touches the connection layer (and not the protocol layer).
You would see metrics around how often connections connect / disconnect but wouldn't see things like what queries were performed or if they were successful for not.
changed the title [-]Feature Request: Add support for metrics (stackdriver, prometheus)[/-][+]Feature Request: Add support for metrics / tracing[/+]on Feb 10, 2021
At the moment, we're a little hesitant to add support for metrics and tracing given the state of the two in the Go ecosystem. Presently, we're waiting on two things:
Some major refactoring of the dialer functionality in the proxy (work currently in progress), and
Activity
hfwang commentedon May 31, 2018
We intend to add metrics to the proxy, we were thinking of first starting with pushing metrics to stackdriver, but it makes sense to try to make it pluggable so others can write to different places.
[-]Add prometheus metrics[/-][+]Feature Request: Add support for metrics (stackdriver, prometheus)[/+]hfwang commentedon Jul 24, 2018
Just wanted to reach back out on this issue, we plan to add monitoring to the proxy client using the OpenCensus library which has pluggable exports.
Nothing yet that we are ready to show publicly though.
chainlink commentedon Jul 24, 2018
Great news! @hfwang any idea on ETA for that?
tanuck commentedon Aug 14, 2018
If there's work already underway for this, is there an ETA yet?
hfwang commentedon Aug 21, 2018
We are hoping to have something available in October. The proxy client allows for some interesting setups that are a bit hard to express with the existing stackdriver library, namely reporting metrics to multiple projects simultaneously (as you could connect to instances in different projects), so progress has been a bit slower than expected.
hfwang commentedon Nov 15, 2018
Sorry for the delay, we had hoped to get something done by October. We had built a prototype, but actually getting it to a releasable state has dragged on quite a bit. We are still working on this though.
oliveiraVG commentedon Feb 6, 2019
Any updates on this issue?
sergio-fleetsmith commentedon Apr 1, 2019
Is progress still being made on this front? Would love to have metrics for CloudSQL to see performance and be able to debug potential issues.
kishendas commentedon Apr 15, 2019
Is there any progress on this one ? We definitely need metrics for CloudSQL, as its in our critical path.
marcosrmendezthd commentedon May 8, 2019
+1
jbradleynh commentedon Aug 15, 2019
Hoping this feature is underway, metrics from cloudsql-proxy would be super valuable
3 remaining items
kurtisvg commentedon Oct 12, 2020
@bergquist to clarify, the proxy only touches the connection layer (and not the protocol layer).
You would see metrics around how often connections connect / disconnect but wouldn't see things like what queries were performed or if they were successful for not.
[-]Feature Request: Add support for metrics (stackdriver, prometheus)[/-][+]Feature Request: Add support for metrics / tracing[/+]enocom commentedon Feb 10, 2021
Note: this issue likewise includes support for Cloud Trace. See #600 for context.
withnale commentedon Apr 23, 2021
Any update on this? I'd love to see this feature but it seems to keep getting knocked back due to some dependency or other?
Can we not separate the metrics and tracing cards and get them delivered independently?
enocom commentedon Apr 23, 2021
I agree this is one of the top feature requests.
At the moment, we're a little hesitant to add support for metrics and tracing given the state of the two in the Go ecosystem. Presently, we're waiting on two things:
The refactoring will make adding support for metrics and tracing much, much less painful.
[-]Feature Request: Add support for metrics / tracing[/-][+]Add support for metrics / tracing[/+]enocom commentedon Sep 30, 2021
See https://github.com/kurtisvg/cloud-sql-go-connector#enabling-tracing where we've added support for tracing and metrics in the new dialer.
enocom commentedon Aug 29, 2022
The v2 release (currently in public preview) has support for Prometheus, Cloud Monitoring, and Cloud Trace.
Get the release here: https://github.com/GoogleCloudPlatform/cloud-sql-proxy/releases/tag/v2.0.0.preview.0.
Docs here: https://github.com/GoogleCloudPlatform/cloud-sql-proxy#support-for-metrics-and-tracing.
Merge pull request GoogleCloudPlatform#169 from dlorenc/unkaniko