Disabling collectors - CHERTS/pgscv GitHub Wiki
Disabling collectors
TLDR: Disable specific collectors
Sometimes there is no need some metrics, and you would like to disable exposing them.
Disabling collectors is possible using YAML configuration or environment variable.
- Using YAML configuration, specify the list of collectors names in
disable_collectors
list. For example, the following example disables two collectors:
disable_collectors:
- postgres/storage
- system/filesystems
- The one can disable the whole subset of collectors using its primary name. The example below disables all system collectors.
disable_collectors:
- system
After editing YAML configuration, don't forget to restart pgSCV.
- List of disabled collectors also can be passed with
PGSCV_DISABLE_COLLECTORS
environment variable. This is possible since v0.6.0.
PGSCV_DISABLE_COLLECTORS="system/loadaverage,system/cpu" pgscv
The full list of available collectors and their names could be found here.