elastic / elastic/apm-agent-java

Capture database connection pool metrics

Open
#3,155 0 comments 1 reaction 0 assignees View on GitHub
agent-java new-feature
Dominant language
Java
Stars
594
Forks
338
Avg merge
1d 13h
Merged PRs (30d)
25

Description

Agent should be able to capture the database pool metrics in a generic way, hence allowing to create dashboards more easily.

This was reported quite a few times already and discussed recently [in our forum](https://discuss.elastic.co/t/spring-boot-jdbc-pool-metrics/332549)

### Proposal

- use the OpenTelemetry [semantic conventions for database metrics](https://github.com/open-telemetry/semantic-conventions/blob/main/specification/metrics/semantic_conventions/database-metrics.md) for metric names & labelling
- attempt to use our own metrics implementation as an attempt to minimize allocation
- cover only a few common database connection pool implementations as a 1st step
- tomcat dbcp
- hikaricp
- optionally cover common relational database drivers
- mysql / mariadb
- postgresql
- h2
- follow-up with dashboard creation with those metrics

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.