Skip to content

Commit 590f366

Browse files
committed
Refactor ILM collector
Consolidate the ILM collector logic into a single collector using the new Collector interface Signed-off-by: Joe Adams <github@joeadams.io>
1 parent a85d0c7 commit 590f366

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

collector/ilm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var (
3434

3535
ilmStatus = prometheus.NewDesc(
3636
prometheus.BuildFQName(namespace, "ilm", "status"),
37-
"Current status of ilm. Status can be STOPPED, RUNNING, STOPPING.",
37+
"Current status of ILM. Status can be STOPPED, RUNNING, STOPPING.",
3838
[]string{"operation_mode"}, nil,
3939
)
4040
)

collector/ilm_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func TestILM(t *testing.T) {
4141
# TYPE elasticsearch_ilm_index_status gauge
4242
elasticsearch_ilm_index_status{action="",index="twitter",phase="",step=""} 0
4343
elasticsearch_ilm_index_status{action="complete",index="facebook",phase="new",step="complete"} 1
44-
# HELP elasticsearch_ilm_status Current status of ilm. Status can be STOPPED, RUNNING, STOPPING.
44+
# HELP elasticsearch_ilm_status Current status of ILM. Status can be STOPPED, RUNNING, STOPPING.
4545
# TYPE elasticsearch_ilm_status gauge
4646
elasticsearch_ilm_status{operation_mode="RUNNING"} 1
4747
elasticsearch_ilm_status{operation_mode="STOPPED"} 0

0 commit comments

Comments
 (0)