diff --git a/README.md b/README.md index ec2d244a..0b78e76c 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,8 @@ Further Information | elasticsearch_filesystem_io_stats_device_write_operations_count | gauge | 1 | Count of disk write operations | | elasticsearch_filesystem_io_stats_device_read_size_kilobytes_sum | gauge | 1 | Total kilobytes read from disk | | elasticsearch_filesystem_io_stats_device_write_size_kilobytes_sum | gauge | 1 | Total kilobytes written to disk | +| elasticsearch_ilm_status | gauge | 3 | Current status of ILM. Status can be `STOPPED`, `RUNNING`, `STOPPING`. | +| elasticsearch_ilm_index_status | gauge | | Status of ILM policy for index | | elasticsearch_indices_active_queries | gauge | 1 | The number of currently active queries | | elasticsearch_indices_docs | gauge | 1 | Count of documents on this node | | elasticsearch_indices_docs_deleted | gauge | 1 | Count of deleted documents on this node | diff --git a/collector/ilm_status.go b/collector/ilm_status.go index 57fda408..e1630e6c 100644 --- a/collector/ilm_status.go +++ b/collector/ilm_status.go @@ -63,7 +63,7 @@ func NewIlmStatus(logger log.Logger, client *http.Client, url *url.URL) *IlmStat Type: prometheus.GaugeValue, Desc: prometheus.NewDesc( prometheus.BuildFQName(namespace, subsystem, "status"), - "Current status of ilm. Status can be STOPPED, RUNNING, STOPPING.", + "Current status of ILM. Status can be STOPPED, RUNNING, STOPPING.", []string{"operation_mode"}, nil, ), Value: func(ilm *IlmStatusResponse, status string) float64 { diff --git a/collector/ilm_status_test.go b/collector/ilm_status_test.go index 56254ba9..ede82ddd 100644 --- a/collector/ilm_status_test.go +++ b/collector/ilm_status_test.go @@ -39,7 +39,7 @@ func TestILMStatus(t *testing.T) { name: "6.6.0", file: "../fixtures/ilm_status/6.6.0.json", want: ` -# HELP elasticsearch_ilm_status Current status of ilm. Status can be STOPPED, RUNNING, STOPPING. +# HELP elasticsearch_ilm_status Current status of ILM. Status can be STOPPED, RUNNING, STOPPING. # TYPE elasticsearch_ilm_status gauge elasticsearch_ilm_status{operation_mode="RUNNING"} 1 elasticsearch_ilm_status{operation_mode="STOPPED"} 0