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 ¶
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)
Click to show internal directories.
Click to hide internal directories.