#sre (2019-07)
Prometheus, Prometheus Operator, Grafana, Kubernetes
Archive: https://archive.sweetops.com/monitoring/
2019-07-11
![GFox)(AWSDevSecOps avatar](https://avatars.slack-edge.com/2020-09-09/1350677900901_7fc87ee194554700bbcf_72.jpg)
Hi, anyone have any tips and tricks for a fast way to go through a hundred config.json files in a repo pulling out the threshold values of metrics for monitoring config???
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
Something more than jq?
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
![GFox)(AWSDevSecOps avatar](https://avatars.slack-edge.com/2020-09-09/1350677900901_7fc87ee194554700bbcf_72.jpg)
looking for changes and pulling out thresold data points to alarm evaluation period name period statistic to compare, maybe extract to spreadsheet for comparison ??
![GFox)(AWSDevSecOps avatar](https://avatars.slack-edge.com/2020-09-09/1350677900901_7fc87ee194554700bbcf_72.jpg)
will give jq a shot, thank you
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
Yep, can totally use jq for that
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
The syntax is a little bit funky
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
They have a lot of examples
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
If you get stuck let me know
![GFox)(AWSDevSecOps avatar](https://avatars.slack-edge.com/2020-09-09/1350677900901_7fc87ee194554700bbcf_72.jpg)
Thank you!
![GFox)(AWSDevSecOps avatar](https://avatars.slack-edge.com/2020-09-09/1350677900901_7fc87ee194554700bbcf_72.jpg)
Hi Erik, do you have an ex or could point me to an example, not strong in running code query, nor parsing. Want to run see if there’s a way to run jq against my repo or local folder to see any differences in the objects for these monitoring config.json files …and I don’t know if I’m saying asking it correctly, kind of know what I want but fuzzy at the same time
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
jq -r '.metrics[] | [.name, .evaluationPeriod, .comparisonOperator]| @csv' < example_snstopic_aws_json.js
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
produces
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
"CPUUtilization","1","GreaterThanOrEqualToThreshold"
"StatusCheckFailed","1","GreaterThanOrEqualToThreshold"
2019-07-15
![JMC avatar](https://secure.gravatar.com/avatar/7c3ebddc22c24acb1a9b25d210fadc0c.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0024-72.png)
Has anyone found a way to configure alerting for Kibana with the latest version, without using the pricey Watchers functionality ? Seems ElastAlert and SentiNL is not working really great with ES 7.x.