Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildInfo ¶ added in v0.4.0
type BuildInfo struct { Version string Commit string Date string GoVersion string PythonVersion string GoreleaserVersion string // contains filtered or unexported fields }
func NewBuildInfo ¶ added in v0.4.0
func (*BuildInfo) Collect ¶ added in v0.4.0
func (b *BuildInfo) Collect(ch chan<- prometheus.Metric)
func (*BuildInfo) Describe ¶ added in v0.4.0
func (b *BuildInfo) Describe(ch chan<- *prometheus.Desc)
type Config ¶
type Config struct { Schedule string `envconfig:"SCHEDULE" default:"@every 120m"` Timezone string `envconfig:"TIMEZONE" default:"America/Vancouver"` PromExporterAddr string `envconfig:"PROM_EXPORTER_ADDR" default:":8080"` PromClientURL string `envconfig:"PROM_CLIENT_URL"` PromClientTLSCA string `envconfig:"PROM_CLIENT_TLS_CA"` PromClientTLSCert string `envconfig:"PROM_CLIENT_TLS_CERT"` PromClientTLSKey string `envconfig:"PROM_CLIENT_TLS_KEY"` PromClientInsecureSkipVerify bool `envconfig:"PROM_CLIENT_INSECURE_SKIP_VERIFY"` WatchList *WatchList `envconfig:"WATCH_LIST"` Models []string `envconfig:"MODELS" default:"Prophet"` DefaultChunkSize time.Duration `envconfig:"DEFAULT_CHUNK_SIZE" default:"120m"` RollingWindow time.Duration `envconfig:"ROLLING_WINDOW" default:"72h"` // contains filtered or unexported fields }
type WatchList ¶ added in v0.4.0
type WatchList struct {
// contains filtered or unexported fields
}
WatchList can decode either a YAML config or a comma separated list
- YAML config has a list of metric queries and model names for each everyone of them. When using YAML, MODELS (config.Models) env var is not needed.
- comma separated list doesn't specify model names for each metric query, models names come from MODELS (config.Models) env var and it will be set with fillEmpty method. When using comma separated list, MODELS env var is required
func (*WatchList) Decode ¶ added in v0.4.0
Decode either a YAML config or a comma separated list for backward compatibility
WATCH_LIST comma separated list or inline yaml sensehat_temperature,sensehat_humidity,sensehat_pressure {sensehat_temperature: [Prophet, LSTM], sensehat_humidity: [Prophet], sensehat_pressure: [LSTM]}
Click to show internal directories.
Click to hide internal directories.