prometheus: Remove mgmt_process_start_time_seconds metric

That metric is useless as by default the prometheus golang client
provides the `process_start_time_seconds` metric.

This reverts commit 25e2af7c89.
This commit is contained in:
Julien Pivotto
2017-02-14 22:56:12 +01:00
parent ecbaa5bfc1
commit be5040e7a8
3 changed files with 1 additions and 16 deletions

View File

@@ -36,8 +36,7 @@ const DefaultPrometheusListen = "127.0.0.1:9233"
type Prometheus struct {
Listen string // the listen specification for the net/http server
checkApplyTotal *prometheus.CounterVec // total of CheckApplies that have been triggered
processStartTimeSeconds prometheus.Gauge // process start time in seconds since unix epoch
checkApplyTotal *prometheus.CounterVec // total of CheckApplies that have been triggered
}
@@ -60,16 +59,6 @@ func (obj *Prometheus) Init() error {
)
prometheus.MustRegister(obj.checkApplyTotal)
obj.processStartTimeSeconds = prometheus.NewGauge(
prometheus.GaugeOpts{
Name: "mgmt_process_start_time_seconds",
Help: "Start time of the process since unix epoch in seconds.",
},
)
prometheus.MustRegister(obj.processStartTimeSeconds)
// directly set the processStartTimeSeconds
obj.processStartTimeSeconds.SetToCurrentTime()
return nil
}