Skip to content

Commit

Permalink
missed Prometheus stats
Browse files Browse the repository at this point in the history
  • Loading branch information
lomik committed Feb 9, 2018
1 parent 3be9dea commit 90a0de1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion carbon-clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
)

// Version of carbon-clickhouse
const Version = "0.7.0-alpha2"
const Version = "0.7.0-alpha3"

func httpServe(addr string) (func(), error) {
tcpAddr, err := net.ResolveTCPAddr("tcp", addr)
Expand Down
4 changes: 4 additions & 0 deletions carbon/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ func NewCollector(app *App) *Collector {
c.stats = append(c.stats, moduleCallback("udp", app.UDP))
}

if app.Prometheus != nil {
c.stats = append(c.stats, moduleCallback("prometheus", app.Prometheus))
}

for n, u := range app.Uploaders {
c.stats = append(c.stats, moduleCallback(fmt.Sprintf("upload.%s", n), u))
}
Expand Down

0 comments on commit 90a0de1

Please sign in to comment.