8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dcd17e commit 147c9d1Copy full SHA for 147c9d1
docs/content/instrumenting/_index.md
@@ -13,4 +13,8 @@ on how to use them.
13
By default counters, histograms, and summaries export an additional series
14
suffixed with `_created` and a value of the unix timestamp for when the metric
15
was created. If this information is not helpful, it can be disabled by setting
16
-the environment variable `PROMETHEUS_DISABLE_CREATED_SERIES=True`.
+the environment variable `PROMETHEUS_DISABLE_CREATED_SERIES=True` or in code:
17
+```python
18
+from prometheus_client import disable_created_metrics
19
+disable_created_metrics()
20
+```
0 commit comments