Documentation
¶
Index ¶
Constants ¶
View Source
const ( PluginModeWhitelist = iota PluginModeAll )
Variables ¶
This section is empty.
Functions ¶
func InitPluginsConfig ¶
func InitPluginsConfig(cf *ConfYaml)
Types ¶
type CollectRuleSection ¶
type ConfYaml ¶
type ConfYaml struct {
CollectRule CollectRuleSection `yaml:"collectRule"`
Logger loggeri.Config `yaml:"logger"`
Report report.ReportSection `yaml:"report"`
WorkerProcesses int `yaml:"workerProcesses"`
PluginsConfig string `yaml:"pluginsConfig"`
HTTP HTTPSection `yaml:"http"`
}
var (
Config *ConfYaml
)
type HTTPSection ¶
type Metric ¶
type PluginConfig ¶
type PluginConfig struct {
Name string
Mode int
Metrics map[string]*Metric
ExprMetrics map[string]*Metric
}
func GetPluginConfig ¶
func GetPluginConfig(pluginName string) (c *PluginConfig, ok bool)
Click to show internal directories.
Click to hide internal directories.