Commit 5e4d39d
committed
fix: Rename gauge to db.pool.connections to avoid Prometheus _total suffix
The new Prometheus Java client (used by PrometheusMeterRegistry in
micrometer 1.14.5) strips the _total suffix from metric names because
it is reserved for counters. The gauge db.connections.total was being
sanitized to db_connections, causing the test to fail when looking for
db_connections_total in the scrape output.
Renamed to db.pool.connections which exports as db_pool_connections
in Prometheus format, avoiding suffix conflicts.1 parent eff7b3f commit 5e4d39d
2 files changed
Lines changed: 9 additions & 9 deletions
File tree
- openmetadata-service/src
- main/java/org/openmetadata/service/monitoring
- test/java/org/openmetadata/service/monitoring
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
0 commit comments