Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Disabling collectors

Alexey Lesovsky edited this page Jun 8, 2021 · 4 revisions

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.

  1. 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
  1. 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.

  1. 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.