mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-01-30 07:12:35 -08:00
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
|
@ -3,6 +3,7 @@
|
||||||
### **Breaking changes**
|
### **Breaking changes**
|
||||||
|
|
||||||
* 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
|
* 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
|
||||||
|
* The label named `state` on `node_systemd_service_restart_total` metrics was changed to `name` to better describe the metric. #1393
|
||||||
|
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
@ -10,6 +11,7 @@
|
||||||
* [CHANGE] Add `--collector.netdev.device-whitelist`. #1279
|
* [CHANGE] Add `--collector.netdev.device-whitelist`. #1279
|
||||||
* [FEATURE]
|
* [FEATURE]
|
||||||
* [ENHANCEMENT]
|
* [ENHANCEMENT]
|
||||||
|
* [BUGFIX] Renamed label `state` to `name` on `node_systemd_service_restart_total`. #1393
|
||||||
|
|
||||||
## 0.18.1 / 2019-06-04
|
## 0.18.1 / 2019-06-04
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ func NewSystemdCollector() (Collector, error) {
|
||||||
"Summary of systemd unit states", []string{"state"}, nil)
|
"Summary of systemd unit states", []string{"state"}, nil)
|
||||||
nRestartsDesc := prometheus.NewDesc(
|
nRestartsDesc := prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(namespace, subsystem, "service_restart_total"),
|
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(
|
timerLastTriggerDesc := prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(namespace, subsystem, "timer_last_trigger_seconds"),
|
prometheus.BuildFQName(namespace, subsystem, "timer_last_trigger_seconds"),
|
||||||
"Seconds since epoch of last trigger.", []string{"name"}, nil)
|
"Seconds since epoch of last trigger.", []string{"name"}, nil)
|
||||||
|
|
Loading…
Reference in a new issue