Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Loggregator Agent Certs ClientKeyPath string `env:"CLIENT_KEY_PATH, report, required"` ClientCertPath string `env:"CLIENT_CERT_PATH, report, required"` CACertPath string `env:"CA_CERT_PATH, report, required"` LoggregatorIngressAddr string `env:"LOGGREGATOR_AGENT_ADDR, report, required"` DefaultSourceID string `env:"DEFAULT_SOURCE_ID, report, required"` MetricPortCfg string `env:"METRIC_PORT_GLOB, report"` ScrapeInterval time.Duration `env:"SCRAPE_INTERVAL, report"` }
func LoadConfig ¶
type PromScraper ¶
type PromScraper struct {
// contains filtered or unexported fields
}
func NewPromScraper ¶
func NewPromScraper(cfg Config, log *log.Logger) *PromScraper
func (*PromScraper) Run ¶
func (p *PromScraper) Run()
Click to show internal directories.
Click to hide internal directories.