diff --git a/core/prometheus/agent.go b/core/prometheus/agent.go index 780ca1ed..d3d67cb0 100644 --- a/core/prometheus/agent.go +++ b/core/prometheus/agent.go @@ -12,6 +12,7 @@ import ( var once sync.Once +// StartAgent starts a prometheus agent. func StartAgent(c Config) { once.Do(func() { if len(c.Host) == 0 { diff --git a/core/prometheus/config.go b/core/prometheus/config.go index 29887bbd..2ef5f996 100644 --- a/core/prometheus/config.go +++ b/core/prometheus/config.go @@ -1,5 +1,6 @@ package prometheus +// A Config is a prometheus config. type Config struct { Host string `json:",optional"` Port int `json:",default=9101"`