prometheus

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortConfigs

func SortConfigs(scrapeConfigs []*config.ScrapeConfig)

Types

type Config

type Config struct {
	GlobalConfig   *config.GlobalConfig   `yaml:"global"`
	AlertingConfig config.AlertingConfig  `yaml:"alerting,omitempty"`
	RuleFiles      []string               `yaml:"rule_files,omitempty"`
	ScrapeConfigs  []*config.ScrapeConfig `yaml:"scrape_configs,omitempty"`

	RemoteWriteConfigs []*config.RemoteWriteConfig `yaml:"remote_write,omitempty"`
	RemoteReadConfigs  []*config.RemoteReadConfig  `yaml:"remote_read,omitempty"`
}

type Config config.Config

func (*Config) AddScrapeConfigs

func (cfg *Config) AddScrapeConfigs(scrapeConfigs []*config.ScrapeConfig) int

returns number of added

func (*Config) RemoveScrapeConfigs

func (cfg *Config) RemoveScrapeConfigs(namePrefix string) int

returns number of removed

type PrometheusConfig

type PrometheusConfig struct {
	Metadata core.Metadata `yaml:"metadata"`
	Config   `yaml:"config"`
	Alerts   string `yaml:"alerts"` // inline as a string, not processed by supergloo
	Rules    string `yaml:"rules"`  // inline as a string, not processed by supergloo
}

func (*PrometheusConfig) Clone

func (c *PrometheusConfig) Clone() *PrometheusConfig

func (*PrometheusConfig) Equal

func (c *PrometheusConfig) Equal(that interface{}) bool

func (*PrometheusConfig) GetMetadata

func (c *PrometheusConfig) GetMetadata() core.Metadata

func (*PrometheusConfig) SetMetadata

func (c *PrometheusConfig) SetMetadata(meta core.Metadata)

Jump to

Keyboard shortcuts

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