apm-agent-go icon indicating copy to clipboard operation
apm-agent-go copied to clipboard

Feature request: report database/sql connection metrics

Open koolay opened this issue 5 years ago • 3 comments

I would like to monitor the database connection activity, like you can with ocsql.

koolay avatar May 21 '20 02:05 koolay

ocsql only works with OpenCensus agents, and is not compatible with the Elastic APM agent.

Which metrics are you looking for?

apmsql creates spans for SQL queries. You can calculate the number of calls and latency metrics from those. The other metrics (number of open/idle/active connections, etc.) are not available, but could be added.

axw avatar May 21 '20 05:05 axw

I want to metric the activity of connections, but apmsql not supported yet.

koolay avatar May 21 '20 15:05 koolay

OK, I think it would be reasonable to add those metrics. I'll turn this into a feature request. I don't know when it will be prioritised - feel free to send a PR if you would like to.

axw avatar May 24 '20 02:05 axw