Documentation
¶
Index ¶
- type Auth
- type Cache
- type Clickhouse
- type Config
- func (cfg *Config) Bootstrap(database *db.DB) error
- func (cfg *Config) GetBootstrapClickhouse() *db.IntegrationClickhouse
- func (cfg *Config) GetBootstrapPrometheus() *db.IntegrationPrometheus
- func (cfg *Config) GetGlobalClickhouse() *db.IntegrationClickhouse
- func (cfg *Config) GetGlobalPrometheus() *db.IntegrationPrometheus
- func (cfg *Config) GetProjects() []db.Project
- type Postgres
- type Project
- type Prometheus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clickhouse ¶
type Clickhouse struct {
Address string `yaml:"address"`
User string `yaml:"user"`
Password string `yaml:"password"`
Database string `yaml:"database"`
TlsEnable bool `yaml:"tls_enable"`
TlsSkipVerify bool `yaml:"tls_skip_verify"`
}
func (*Clickhouse) Validate ¶
func (c *Clickhouse) Validate() error
type Config ¶
type Config struct {
ListenAddress string `yaml:"listen_address"`
UrlBasePath string `yaml:"url_base_path"`
DataDir string `yaml:"data_dir"`
Cache Cache `yaml:"cache"`
Postgres *Postgres `yaml:"postgres"`
GlobalPrometheus *Prometheus `yaml:"global_prometheus"`
GlobalClickhouse *Clickhouse `yaml:"global_clickhouse"`
Auth Auth `yaml:"auth"`
Projects []Project `yaml:"projects"`
DoNotCheckSLO bool `yaml:"do_not_check_slo"`
DoNotCheckForDeployments bool `yaml:"do_not_check_for_deployments"`
DoNotCheckForUpdates bool `yaml:"do_not_check_for_updates"`
DisableUsageStatistics bool `yaml:"disable_usage_statistics"`
DeveloperMode bool `yaml:"developer_mode"`
BootstrapClickhouse *Clickhouse `yaml:"-"`
BootstrapPrometheus *Prometheus `yaml:"-"`
}
func (*Config) GetBootstrapClickhouse ¶
func (cfg *Config) GetBootstrapClickhouse() *db.IntegrationClickhouse
func (*Config) GetBootstrapPrometheus ¶
func (cfg *Config) GetBootstrapPrometheus() *db.IntegrationPrometheus
func (*Config) GetGlobalClickhouse ¶
func (cfg *Config) GetGlobalClickhouse() *db.IntegrationClickhouse
func (*Config) GetGlobalPrometheus ¶
func (cfg *Config) GetGlobalPrometheus() *db.IntegrationPrometheus
func (*Config) GetProjects ¶
type Prometheus ¶
type Prometheus struct {
Url string `yaml:"url"`
RefreshInterval time.Duration `yaml:"refresh_interval"`
TlsSkipVerify bool `yaml:"tls_skip_verify"`
User string `yaml:"user"`
Password string `yaml:"password"`
ExtraSelector string `yaml:"extra_selector"`
CustomHeaders map[string]string `yaml:"custom_headers"`
}
func (*Prometheus) Validate ¶
func (p *Prometheus) Validate() error
Click to show internal directories.
Click to hide internal directories.