Skip to content

Commit d40adef

Browse files
mknapphrtoblitorum
authored andcommitted
Fix systemd restart counter label from state to name (prometheus#1393)
Signed-off-by: Mark Knapp <mknapp@hudson-trading.com>
1 parent 98fe8f7 commit d40adef

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
### **Breaking changes**
44

55
* The netdev collector CLI argument `--collector.netdev.ignored-devices` was renamed to `--collector.netdev.device-blacklist` in order to conform with the systemd collector. #1279
6+
* The label named `state` on `node_systemd_service_restart_total` metrics was changed to `name` to better describe the metric. #1393
67

78

89
### Changes
910

1011
* [CHANGE] Add `--collector.netdev.device-whitelist`. #1279
1112
* [FEATURE]
1213
* [ENHANCEMENT]
14+
* [BUGFIX] Renamed label `state` to `name` on `node_systemd_service_restart_total`. #1393
1315

1416
## 0.18.1 / 2019-06-04
1517

collector/systemd_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func NewSystemdCollector() (Collector, error) {
9090
"Summary of systemd unit states", []string{"state"}, nil)
9191
nRestartsDesc := prometheus.NewDesc(
9292
prometheus.BuildFQName(namespace, subsystem, "service_restart_total"),
93-
"Service unit count of Restart triggers", []string{"state"}, nil)
93+
"Service unit count of Restart triggers", []string{"name"}, nil)
9494
timerLastTriggerDesc := prometheus.NewDesc(
9595
prometheus.BuildFQName(namespace, subsystem, "timer_last_trigger_seconds"),
9696
"Seconds since epoch of last trigger.", []string{"name"}, nil)

0 commit comments

Comments
 (0)