apm-agent-go
apm-agent-go copied to clipboard
Feature request: report database/sql connection metrics
I would like to monitor the database connection activity, like you can with ocsql.
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.
I want to metric the activity of connections, but apmsql not supported yet.
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.