瀏覽代碼

fix golint issues in core/prometheus (#506)

Kevin Wan 4 年之前
父節點
當前提交
6e4c98e52d
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      core/prometheus/agent.go
  2. 1 0
      core/prometheus/config.go

+ 1 - 0
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 {

+ 1 - 0
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"`