8000 Update documentation for disabling _created metrics (#992) · suligap/client_python@147c9d1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 147c9d1

Browse files
authored
Update documentation for disabling _created metrics (prometheus#992)
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
1 parent 2dcd17e commit 147c9d1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/content/instrumenting/_index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@ on how to use them.
1313
By default counters, histograms, and summaries export an additional series
1414
suffixed with `_created` and a value of the unix timestamp for when the metric
1515
was created. If this information is not helpful, it can be disabled by setting
16< 521F code>-
the environment variable `PROMETHEUS_DISABLE_CREATED_SERIES=True`.
16+
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

Comments
 (0)
0