You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In continuation from #1153, this issue is to additionally support indices and policies as dimensions.
GET _plugins/_ism/stats/<dimension>/<target>/<action>/statName1,statName2?pretty
{
"cumulative": {
"actions": {
"rollover": {
"total_executions": 100,
"total_successes": 190,
"total_failures": 5,
"total_execution_time": "5ms"
},
},
"indices": {
"<index_name>": {
"policy_name": "<policy_name>",
"actions": {
"rollover": {
"total_executions": 100,
"total_successes": 190,
"total_failures": 5,
"last_execution_time": "2024-03-20T12:00:00Z",
"total_execution_time": "5ms"
}
// Other ISM actions and their statistics
}
},
// Other indices and their statistics
},
"policies": {
"<policy_name>": {
"indices_managed": 10,
"total_executions": 200,
"total_successes": 190,
"total_failures": 10,
"total_execution_time": "7ms"
},
// Other policies and their statistics
}
}
Note:
Dimension: Cluster, nodes, indices, policies
Target: cumulative or _all, node ids, index names, policy IDs (comma separated values for multiple values)
Pros:
Provides stats at a much more granular level.
We can maybe segregate the levels as policy, indices, cumulative stats to different levels of granularity, alongside the feasibility of _all to return all the stats.
Cons:
The response of this stats framework, if implemented without the levels of granularity, could be huge to process. Might have some unintended affects on the memory of the nodes if the API is not polled judiciously.
We would need to handle scenarios were policies or indices are deleted.
The text was updated successfully, but these errors were encountered:
Granular Index Management Stats
In continuation from #1153, this issue is to additionally support indices and policies as dimensions.
Note:
Pros:
Cons:
The text was updated successfully, but these errors were encountered: