Versions in this module Expand all Collapse all v1 v1.0.3 Dec 9, 2021 Changes in this version + var DestConfigPath = "/etc/prometheus/prometheus.yml" + func CheckEnvs(envs []string) error + func GenerateConfigHandler(w http.ResponseWriter, r *http.Request) + func StartContainer(s *Service) error + func StartRoute(w http.ResponseWriter, r *http.Request) + func StopContainer(containerName string) + func StopRoute(w http.ResponseWriter, r *http.Request) + type BasicAuth struct + Password string + Username string + type Config struct + Services []Service + func (cfg *Config) LoadConfig(configName string) error + func (cfg *Config) SearchByName(name string) *Service + type Jobs struct + Interval string + Jobs []JsonData + Password string + Target string + Timeout string + func (j *Jobs) ConvertToYml() error + type JsonData struct + Interval string + Name string + Path string + type PrometheusConfig struct + Global struct{ ... } + ScrapeConfigs []ScrapeConfigs + func (p *PrometheusConfig) GenerateConfig(filepath string) error + type ScrapeConfigs struct + BasicAuth BasicAuth + JobName string + MetricsPath string + ScrapeInterval string + ScrapeTimeout string + StaticConfigs []StaticConfigs + type Service struct + Image string + Name string + Ports []string + Volumes []string + type StaticConfigs struct + Targets []string