feat(agent): add service monitors configuration
This commit is contained in:
@@ -20,6 +20,11 @@ type AgentConfig struct {
|
|||||||
Label string `yaml:"label"`
|
Label string `yaml:"label"`
|
||||||
CertDir string `yaml:"cert_dir"`
|
CertDir string `yaml:"cert_dir"`
|
||||||
Services []ServiceConfig `yaml:"services"`
|
Services []ServiceConfig `yaml:"services"`
|
||||||
|
|
||||||
|
MonitorDocker bool `yaml:"monitor_docker"`
|
||||||
|
|
||||||
|
MonitorKubernetes bool `yaml:"monitor_kubes"`
|
||||||
|
KubernetesNamespace *string `yaml:"kubernetes_namespace"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func Load(path string) (*AgentConfig, error) {
|
func Load(path string) (*AgentConfig, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user