Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCollector ¶
func RegisterCollector(reg prometheus.Registerer)
Types ¶
type Config ¶
type Config struct {
Collects collector.Collects `yaml:"collects"`
// contains filtered or unexported fields
}
func (*Config) LoadConfig ¶
type SafeConfig ¶
func NewSafeConfig ¶
func NewSafeConfig() *SafeConfig
func (*SafeConfig) GetConfig ¶
func (sc *SafeConfig) GetConfig() *Config
func (*SafeConfig) ReloadConfig ¶
func (sc *SafeConfig) ReloadConfig(confPath string, logger log.Logger) (err error)
func (*SafeConfig) ReloadConfigFromReader ¶
func (sc *SafeConfig) ReloadConfigFromReader(reader io.ReadCloser, logger log.Logger) (err error)
func (*SafeConfig) SetConfig ¶
func (sc *SafeConfig) SetConfig(conf *Config)
Click to show internal directories.
Click to hide internal directories.