Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
raphink committed Jul 28, 2016
1 parent 40cee9a commit a4df7aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/camptocamp/conplicity/handler"
)

// PrometheusMetrics is a struct to push metrics to Prometheus
type PrometheusMetrics struct {
Handler *handler.Conplicity
}
Expand All @@ -22,7 +23,7 @@ func NewMetrics(c *handler.Conplicity) *PrometheusMetrics {
}
}

// PushToPrometheus sends metrics to a Prometheus push gateway
// Push sends metrics to a Prometheus push gateway
func (p *PrometheusMetrics) Push() (err error) {
c := p.Handler
if len(c.Metrics) == 0 || c.Config.Metrics.PushgatewayURL == "" {
Expand Down

0 comments on commit a4df7aa

Please sign in to comment.