Skip to content

Commit

Permalink
Update documentation for disabling _created metrics (#992)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
  • Loading branch information
csmarchbanks committed Jan 23, 2024
1 parent 2dcd17e commit 147c9d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/content/instrumenting/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ on how to use them.
By default counters, histograms, and summaries export an additional series
suffixed with `_created` and a value of the unix timestamp for when the metric
was created. If this information is not helpful, it can be disabled by setting
the environment variable `PROMETHEUS_DISABLE_CREATED_SERIES=True`.
the environment variable `PROMETHEUS_DISABLE_CREATED_SERIES=True` or in code:
```python
from prometheus_client import disable_created_metrics
disable_created_metrics()
```

0 comments on commit 147c9d1

Please sign in to comment.