Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { web.HTTP `yaml:",inline"` Name string `yaml:"name"` Application string `yaml:"app"` BearerTokenFile string `yaml:"bearer_token_file"` Selector selector.Expr `yaml:"selector"` ExpectedPrefix string `yaml:"expected_prefix"` MaxTS int `yaml:"max_time_series"` MaxTSPerMetric int `yaml:"max_time_series_per_metric"` FallbackType struct { Counter []string `yaml:"counter"` Gauge []string `yaml:"gauge"` } `yaml:"fallback_type"` }
type Prometheus ¶
type Prometheus struct { module.Base Config `yaml:",inline"` // contains filtered or unexported fields }
func New ¶
func New() *Prometheus
func (*Prometheus) Charts ¶
func (p *Prometheus) Charts() *module.Charts
func (*Prometheus) Check ¶
func (p *Prometheus) Check() bool
func (*Prometheus) Cleanup ¶
func (p *Prometheus) Cleanup()
func (*Prometheus) Collect ¶
func (p *Prometheus) Collect() map[string]int64
func (*Prometheus) Init ¶
func (p *Prometheus) Init() bool
Click to show internal directories.
Click to hide internal directories.