Documentation ¶
Overview ¶
Package collectors contains function to work with list of collectors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterOutCollectors ¶
FilterOutCollectors removes from exporter's flags disabled collectors. DisableCollector values should match collector flag till end of string or till `=` sign. Examples: 1. if we pass `meminfo` then only "--collector.meminfo" but not "--collector.meminfo_numa" 2. if we pass `netstat.field` then "--collector.netstat.fields=^(.*_(InErrors|InErrs|InCsumErrors)..." should be disabled. 3. To disable "--collect.custom_query.hr" with directory ""--collect.custom_query.lr.directory" user should pass both names.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.