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 Logs
- type Postgres
- type Profiles
- type Project
- type Prometheus
- type Traces
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
TTL timeseries.Duration `yaml:"ttl"`
GCInterval timeseries.Duration `yaml:"gc_interval"`
}
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"`
LicenseKey string `yaml:"license_key"`
Cache Cache `yaml:"cache"`
Traces Traces `yaml:"traces"`
Logs Logs `yaml:"logs"`
Profiles Profiles `yaml:"profiles"`
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 Logs ¶ added in v1.8.9
type Logs struct {
TTL timeseries.Duration `yaml:"ttl"`
}
type Profiles ¶ added in v1.8.9
type Profiles struct {
TTL timeseries.Duration `yaml:"ttl"`
}
type Prometheus ¶
type Prometheus struct {
Url string `yaml:"url"`
RefreshInterval timeseries.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"`
RemoteWriteUrl string `yaml:"remote_write_url"`
}
func (*Prometheus) Validate ¶
func (p *Prometheus) Validate() error
type Traces ¶ added in v1.8.9
type Traces struct {
TTL timeseries.Duration `yaml:"ttl"`
}
Click to show internal directories.
Click to hide internal directories.