Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.18.0
Describe the issue:
I use opensearch Operator deploy my openserach-cluster.
the opensearch Operator also brings a CRD “OpenSearchISMPolicy”, which helps to use a yaml to deinfe ISM.
In the Opensearch UI, if I manually setup an ISM policy, then I can choose a configured notification channel (email), and write an email template.
hoewver, in CR OpenSearchISMPolicy, I see the notifcation doesn’t has email option.
$ kc explain OpenSearchISMPolicy.spec.errorNotification.destination
GROUP: opensearch.opster.io
KIND: OpenSearchISMPolicy
VERSION: v1
FIELD: destination <Object>
DESCRIPTION:
The destination URL.
FIELDS:
amazon <Object>
<no description>
chime <Object>
<no description>
customWebhook <Object>
<no description>
slack <Object>
<no description>
Ideally, I’d like to set the OpenSearchISMPolicy like this:
apiVersion: opensearch.opster.io/v1
kind: OpenSearchISMPolicy
metadata:
name: logs-rollover-retention
spec:
opensearchCluster:
name: app-logging-opensearch
description: "set index rollover then wait and retension"
policyId: logs-rollover-retention
defaultState: young_indexes
ismTemplate:
indexPatterns:
- logs-*
priority: 1
errorNotification:
channel: my-email-channel # this email channel already configured and tested
# destination:
# here i don't know what to fill, may I refer an email receiver group name here?
messageTemplate:
source: "APP logging OpenSearch ISM job: The index {{ctx.index}} failed during ISM policy execution"
states:
- name: young_indexes
actions:
- rollover:
minIndexAge: 1d
minPrimaryShardSize: 5g
minSize: 30g
transitions:
- stateName: retention
conditions:
minIndexAge: "15d"
- name: retention
actions:
- delete: {}