Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 147c9d1

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

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎docs/content/instrumenting/_index.md

Copy file name to clipboardExpand all lines: docs/content/instrumenting/_index.md
+5-1Lines 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-
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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.