#sre - July 2019

GFox)(AWSDevSecOps
GFox)(AWSDevSecOpsover 7 years ago
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)
Erik Osterman (Cloud Posse)over 7 years ago
Something more than jq?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
GFox)(AWSDevSecOps
GFox)(AWSDevSecOpsover 7 years ago
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
GFox)(AWSDevSecOpsover 7 years ago
will give jq a shot, thank you
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Yep, can totally use jq for that
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
The syntax is a little bit funky
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
But once you get it, very powerful
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
They have a lot of examples
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
If you get stuck let me know
GFox)(AWSDevSecOps
GFox)(AWSDevSecOpsover 7 years ago
Thank you!
GFox)(AWSDevSecOps
GFox)(AWSDevSecOpsover 7 years ago
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)
Erik Osterman (Cloud Posse)over 7 years ago(edited)

jq -r '.metrics[] | [.name, .evaluationPeriod, .comparisonOperator]| @csv' < example_snstopic_aws_json.js
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
produces
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago

"CPUUtilization","1","GreaterThanOrEqualToThreshold"
"StatusCheckFailed","1","GreaterThanOrEqualToThreshold"
JMC
JMCover 7 years ago
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.