Open monitoringit opened 7 years ago
Hmm.. I think the issue here is that you cannot use compound query_key with aggregations.
Try setting query_key: tag.host
rather than host/path/vpc etc.
It worked when i use query_key: tag.host. But i also see that it fails to populate Subject properly: My rule:
alert_subject: 'ELK Alert: "{1},{2},MINOR" on {0}'
alert_subject_args:
- tag.host
- tag.AppId
- tag.StackName
Message posted to SNS ==>
Subject = ELK Alert: "
Because when you are making aggregations, you don't get the values of those fields. It's taking an average across all StackNames and across all AppIDs. You only know the value of query_key
.
ok makes sense! thanks for sharing the info. Is there plan for compound query_key for aggregation rule? Also can you refer doc link to me talking about all different aspects of aggregation rule? Thanks for being such a good Samaritan! :-) Appreciate your help
see #1328
Hi, I have telegraf agent report metrics data to ELK 5.2.1 Doc in ES/Kibana looks like this: ======================Kibana copy/paste=============
================================================================= I created a metric_aggregation rule but it doesnt match. Query hit shows right number of docs which tells it finds the message but fails to match:
---------------------------On running elastalert-test-rule i getthis -----------------------------------