Skip to content

Commit a5f33bb

Browse files
sysadmindjaimeyh
authored andcommitted
Fix ilm metric labels (prometheus-community#677)
The metric labels in the prometheus description were set to all 3 status options, instead of the name of the status label. The code exports a metric for each of the statuses individually, not all 3 at the same time. fixes prometheus-community#677 Signed-off-by: Joe Adams <[email protected]>
1 parent ad3c442 commit a5f33bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/ilm_status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func NewIlmStatus(logger log.Logger, client *http.Client, url *url.URL) *IlmStat
7979
Desc: prometheus.NewDesc(
8080
prometheus.BuildFQName(namespace, subsystem, "status"),
8181
"Current status of ilm. Status can be STOPPED, RUNNING, STOPPING.",
82-
ilmStatuses, nil,
82+
[]string{"operation_mode"}, nil,
8383
),
8484
Value: func(ilm *IlmStatusResponse, status string) float64 {
8585
if ilm.OperationMode == status {

0 commit comments

Comments
 (0)