Skip to content

Commit

Permalink
Fix metric prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
discordianfish committed Nov 3, 2015
1 parent 35b41d9 commit 333daa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func snapshotCollect(ch chan<- prometheus.Metric, r io.Reader) {
}

for name, value := range metrics {
mn := strings.Join(append([]string{"mesos_master"}, strings.Split(name, "/")...), "_")
mn := strings.Join(append([]string{"mesos"}, strings.Split(name, "/")...), "_")
desc := prometheus.NewDesc(mn, "Exposed from /metrics/snapshot", nil, nil)
ch <- prometheus.MustNewConstMetric(desc, prometheus.UntypedValue, value)
}
Expand Down

0 comments on commit 333daa1

Please sign in to comment.