Skip to content

ILM policies execution stats #306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed

ILM policies execution stats #306

wants to merge 5 commits into from

Conversation

mokrinsky
Copy link

I added some stats for ILM policies execution using _all/_ilm/explain API endpoint.

Example of returning metrics:

elasticsearch_ilm_index_status{action="completed",index="foo_1",phase="completed",step="completed"} 1
elasticsearch_ilm_index_status{action="rollover",index="foo_1",phase="hot",step="check-rollover-ready"} 1
elasticsearch_ilm_index_status{action="shrink",index="foo_1",phase="warm",step="shrunk-shards-allocated"} 1
elasticsearch_ilm_index_status{action="complete",index="foo_1",phase="warm",step="complete"} 1
elasticsearch_ilm_index_status{action="complete",index="foo_1",phase="hot",step="complete"} 1
elasticsearch_ilm_index_status{action="complete",index="foo_1",phase="new",step="complete"} 1
elasticsearch_ilm_index_status{action="",index="foo_1",phase="",step=""} 0

Numeric value represents if index is managed by ILM (I found it unique parameter that could be represented by number in that case), everything other is in tags.

It servers my needs in the way it is, but suggestions are welcome.

mguggi added a commit to infonova/elasticsearch_exporter that referenced this pull request Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant