Fix systemd restart counter label from state to name (#1393)
Signed-off-by: Mark Knapp <mknapp@hudson-trading.com>
This commit is contained in:
parent
76a37a6816
commit
3108a50fb6
2 changed files with 3 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ func NewSystemdCollector() (Collector, error) {
|
|||
"Summary of systemd unit states", []string{"state"}, nil)
|
||||
nRestartsDesc := prometheus.NewDesc(
|
||||
prometheus.BuildFQName(namespace, subsystem, "service_restart_total"),
|
||||
"Service unit count of Restart triggers", []string{"state"}, nil)
|
||||
"Service unit count of Restart triggers", []string{"name"}, nil)
|
||||
timerLastTriggerDesc := prometheus.NewDesc(
|
||||
prometheus.BuildFQName(namespace, subsystem, "timer_last_trigger_seconds"),
|
||||
"Seconds since epoch of last trigger.", []string{"name"}, nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue