collectors

package
v2.17.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

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

func FilterOutCollectors(prefix string, args, disabledCollectors []string) []string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL