service: fix label name in windows_service_state (#1625)

This commit is contained in:
Jan-Otto Kröpke
2024-09-12 19:35:12 +02:00
committed by GitHub
parent 064ea74b6f
commit fb275a06fe
3 changed files with 22 additions and 22 deletions

View File

@@ -122,7 +122,7 @@ func (c *Collector) Build(logger *slog.Logger, _ *wmi.Client) error {
c.state = prometheus.NewDesc(
prometheus.BuildFQName(types.Namespace, Name, "state"),
"The state of the service (State)",
[]string{"name", "status"},
[]string{"name", "state"},
nil,
)
c.startMode = prometheus.NewDesc(