chore: update alerting template with index health change (#38)

This commit is contained in:
silenceqi 2024-12-16 15:54:23 +08:00 committed by GitHub
parent 318ba82eed
commit 5ad4ebd92f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 6 deletions

View File

@ -397,14 +397,10 @@ POST $[[SETUP_INDEX_PREFIX]]alert-rule/$[[SETUP_DOC_TYPE]]/builtin-calavvp7h710d
"resource_name": "$[[SETUP_RESOURCE_NAME]]", "resource_name": "$[[SETUP_RESOURCE_NAME]]",
"type": "elasticsearch", "type": "elasticsearch",
"objects": [ "objects": [
".infini_index" ".infini_metrics"
], ],
"filter": {}, "filter": {},
"raw_filter": { "raw_filter": {"bool":{"must":[{"match":{"payload.elasticsearch.index_health.status":"red"}},{"term":{"metadata.name":{"value":"index_health"}}}]}},
"match": {
"metadata.labels.health_status": "red"
}
},
"time_field": "timestamp", "time_field": "timestamp",
"context": { "context": {
"fields": null "fields": null