Skip to content

Commit 6eeba71

Browse files
committedJun 14, 2024
chore(docs): add information about new opt-in metric
1 parent 3f6e98a commit 6eeba71

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
 

‎docs/Verify-Reloader-Working.md

+13
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,16 @@ When Reloader is unable to reload, `reloader_reload_executed_total{success="fals
6060
reloader_reload_executed_total{success="false"} 15
6161
reloader_reload_executed_total{success="true"} 12
6262
```
63+
64+
### Opt-in Granular Metrics
65+
66+
Reloader can also export a metric to show the number of reloads by namespace. This feature is disabled by default, as it can lead to high cardinality in clusters with many namespaces.
67+
68+
The metric will have both `success` and `namespace` as attributes:
69+
70+
```text
71+
reloader_reload_executed_total{success="false", namespace="some-namespace"} 2
72+
reloader_reload_executed_total{success="true", namespace="some-namespace"} 1
73+
```
74+
75+
To opt-in, set the environment variable `METRICS_COUNT_BY_NAMESPACE` to `enabled` or set the Helm value `reloader.enableMetricsByNamespace` to `true`.

0 commit comments

Comments
 (0)
Please sign in to comment.