File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -278,6 +278,18 @@ metadata about the JVM in use is also included. This information is available as
278
278
labels on the ` python_info ` metric. The value of the metric is 1, since it is the
279
279
labels that carry information.
280
280
281
+ ### Disabling Default Collector metrics
282
+
283
+ By default the collected ` process ` , ` gc ` , and ` platform ` collector metrics are exported.
284
+ If this information is not helpful, it can be disabled using the following:
285
+ ``` python
286
+ import prometheus_client
287
+
288
+ prometheus_client.REGISTRY .unregister(prometheus_client.GC_COLLECTOR )
289
+ prometheus_client.REGISTRY .unregister(prometheus_client.PLATFORM_COLLECTOR )
290
+ prometheus_client.REGISTRY .unregister(prometheus_client.PROCESS_COLLECTOR )
291
+ ```
292
+
281
293
## Exporting
282
294
283
295
There are several options for exporting metrics.
You can’t perform that action at this time.
0 commit comments