Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrometheusConfigMap ¶
PrometheusConfigMap returns k8s configmap containing Prometheus configuration.
Types ¶
type PrometheusConfig ¶
type PrometheusConfig struct { Global globalConfig `yaml:"global"` ScrapeConfigs []ScrapeConfig `yaml:"scrape_configs"` }
PrometheusConfig contains the prometheus configuration
func GetPrometheusConfig ¶
func GetPrometheusConfig(t *miniov2.Tenant, accessKey, secretKey string) *PrometheusConfig
GetPrometheusConfig returns configuration for Prometheus.
func (*PrometheusConfig) ConfigFile ¶
func (p *PrometheusConfig) ConfigFile() string
ConfigFile returns the prometheus config yaml
type ScrapeConfig ¶
type ScrapeConfig struct { JobName string `yaml:"job_name"` BearerToken string `yaml:"bearer_token"` MetricsPath string `yaml:"metrics_path"` Scheme string `yaml:"scheme"` TLSConfig tlsConfig `yaml:"tls_config"` StaticConfigs []staticConfig `yaml:"static_configs"` }
ScrapeConfig contains the scrape configuration for prometheus
Click to show internal directories.
Click to hide internal directories.