This repository was archived by the owner on Nov 28, 2022. It is now read-only.
Commit b4c7e21
authored
Reseting gauge on metrics
* Reseting gauge metrics
After some value is setted to metricss `postgresql_backends_by_wait_event_type_total`, `postgresql_backends_by_state_total` and `postgresql_locks_total `, the value is not updated if the query returns no rows.
To fix that, the gauge is reseted every time when the query is executed, thus grants that the old value was cleared.1 parent 91cb00c commit b4c7e21
2 files changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments