Hi,
I am new to watcher, sorry if it sounds silly.
Can you please help to make a single watcher in ELK to monitor all of my micro services(i have 7), currently i can get alerting, with one watcher per service.
I tried to apply * in place of service name, but then it searches for a service with name *
If i remove , the below filter
{
"match": {
"fields.service": "Service-1"
}
}
i am getting the results from one service each time i simulate, in a sequential manner, i.e., simulation-1, gets the metric from service-1 , simulation -2 gets the metric from service-2 and so on.
Kindly let me know, if there is a possible solution for getting single watcher to monitor all of my services
first, you can use markdown in here. Formatting your watch JSON marking it as a code snippet will make endlessly more readable.
So, if I understood you correctly, you want one watch for monitoring all of your services. My suggestion here would be to change the query to search for errors, but to aggregate on the service name using a terms aggregation. This way you will see all services having an error listed as part of the aggregation response.
If this is not what you want, correct me, where my interpretation failed.
i tried to aggregate services with terms aggregation , as well as get CPU utilization with metric aggregation. But still the watcher simulation, results with random services for each time we run it.
Below is the updated watcher, could you please check and tell, where i am wrong,
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.