Commit 413f889
Add clear() method into PrometheusRegistry to unregister all collectors (#1158)
* Add clear() method into PrometheusRegistry to unregister all collectors
Signed-off-by: Petr Holubec <[email protected]>
* format
Signed-off-by: Gregor Zeitlinger <[email protected]>
* test
Signed-off-by: Gregor Zeitlinger <[email protected]>
---------
Signed-off-by: Gregor Zeitlinger <[email protected]>
Co-authored-by: Petr Holubec <[email protected]>1 parent 38188b9 commit 413f889
File tree
2 files changed
+18
-0
lines changed- prometheus-metrics-model/src
- main/java/io/prometheus/metrics/model/registry
- test/java/io/prometheus/metrics/model/registry
2 files changed
+18
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
148 | 160 | | |
0 commit comments