mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-01-20 07:19:01 +01:00
Fix ganglia namespace
Remove double underscore usage.
This commit is contained in:
parent
139155a243
commit
0aacec2335
@ -17,10 +17,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
gangliaAddress = "127.0.0.1:8649"
|
gangliaAddress = "127.0.0.1:8649"
|
||||||
gangliaProto = "tcp"
|
gangliaProto = "tcp"
|
||||||
gangliaTimeout = 30 * time.Second
|
gangliaTimeout = 30 * time.Second
|
||||||
gangliaMetricsPrefix = "ganglia_"
|
gangliaNamespace = "ganglia"
|
||||||
)
|
)
|
||||||
|
|
||||||
type gmondCollector struct {
|
type gmondCollector struct {
|
||||||
@ -95,7 +95,7 @@ func (c *gmondCollector) setMetric(name, cluster string, metric ganglia.Metric)
|
|||||||
glog.V(1).Infof("Register %s: %s", name, desc)
|
glog.V(1).Infof("Register %s: %s", name, desc)
|
||||||
c.metrics[name] = prometheus.NewGaugeVec(
|
c.metrics[name] = prometheus.NewGaugeVec(
|
||||||
prometheus.GaugeOpts{
|
prometheus.GaugeOpts{
|
||||||
Namespace: gangliaMetricsPrefix,
|
Namespace: gangliaNamespace,
|
||||||
Name: name,
|
Name: name,
|
||||||
Help: desc,
|
Help: desc,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user