Commit 7136156
committed
Export activerecord metrics via prometheus
- An existing collector already exsists we just need to start it
- Exported metrics are:
| `active_record_connection_pool_connections` | Total connections in pool |
| `active_record_connection_pool_busy` | Connections currently in use |
| `active_record_connection_pool_dead` | Dead connections |
| `active_record_connection_pool_idle` | Idle connections |
| `active_record_connection_pool_waiting` | Requests waiting for a connection |1 parent a6b3dc5 commit 7136156
2 files changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
0 commit comments