-
Notifications
You must be signed in to change notification settings - Fork 80
Add ability to have monthly alerting history indices instead of daily. #138
Comments
Following up the issue I was able to change the number of shards in a newly created by using a template. Although would be nice to be able to customize upon setup of the plugin. FYI: the template that fixes the one portion of this feature request. {
"order": 0,
"index_patterns": [
".opendistro-alerting-alert-history-*"
],
"settings": {
"index": {
"number_of_shards": "1"
}
},
"aliases": {}
} |
I believe we have a This might not be exposed to the customer on the AmazonES service. |
@dbbaughe Yes i can confirm this could be a reasonable workaround to mitigate my issue, so I will apply it if available. But still having the ability to preset different cycles than the current in the initial setup could be nice enhancement. I 'll let you know if your suggestion worked for and then you can keep or close my feature request at your will. |
Hey @stafot, Can you clarify what you mean by preset different cycles? The rollover settings we have exposed are:
And in 7.4+ I believe we also have
|
@dbbaughe By |
Hi @stafot, Sure, how important is the name reflecting the daily, weekly, monthly, yearly option though? The functionality of having the index rollover being daily, weekly, monthly, yearly would be simple to add with the name just being the full date of when it was "created". Changing the name to reflect the chosen "preset" though complicates things when switching between presets. Going from smaller to larger to smaller etc. in terms of granularity causes weird behavior and probably unexpected behavior. So to sum up I think you have two asks:
Will #1 without #2 be confusing or would you find having #1 alone be fine for now? |
@dbbaughe Both options are totally acceptable. 1 is fine. 2 is ideal. Tomorrow i will try your first suggestion and I will let you know if worked as expected. |
@dbbaughe Unfortunately what you suggested is not allowed on
Response:
/cc @qreshi I didn't find any alternative way to do it with index template. I assume I can't. |
Hey @stafot, It looks like these settings are not exposed on the service. We can expose these as the first step and look into making it easier with things like presets. |
@dbbaughe It would be great. |
Since we upgraded to |
Hi @stafot, The alerting history settings are the same as the open source ones as of Meaning that history indices are rolled over every 30 days or 1000 documents (whichever happens first) and are retained for at most 60 days. I believe the 'Alerting Settings' section of the AWS docs mentions we use the default values as well. If you do see any discrepancy between the open source settings and the |
@qreshi Thank you very much, I ll monitor this and come back to you if any discrepancy get noticed. |
Feel free to mark this as done, as the functionality I asked for, now exists. There could be some minor UX improvements as mentioned already but the core requirements of this issue fulfilled. |
Is your feature request related to a problem? Please describe.
Right now the opendistro alerting plugin which is embed on the
AWS ES
Service creates an.opendistro-alerting-alert-history-{DATE}
index daily. Also uses the default number of shards which is not optimal for this use case.Describe the solution you'd like
I want to be able to customise this functionality and be able to change the "rotation" to weekly or monthly and also be able to change the number of shards right now uses 5 shards for a very small index while in this case 1 shard (for my use case) would be more than enough. ref. https://aws.amazon.com/blogs/database/get-started-with-amazon-elasticsearch-service-how-many-shards-do-i-need/. My current daily indices are ~300kb.
Describe alternatives you've considered
Additional context
I am using the latest available version of AWS ES service (
7.1.1
)Updated: Situation remains the same after upgrade to
7.4
The text was updated successfully, but these errors were encountered: