#monitoring (2019-07)

Prometheus, Prometheus Operator, Grafana, Kubernetes

Archive: https://archive.sweetops.com/monitoring/

2019-07-15

Jean-Michael Cyr avatar
Jean-Michael Cyr

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.

2019-07-11

Garrett (PlanoCloudDude) avatar
Garrett (PlanoCloudDude)

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 avatar
Erik Osterman

Something more than jq?

Garrett (PlanoCloudDude) avatar
Garrett (PlanoCloudDude)
07:38:15 PM

looking for changes and pulling out thresold data points to alarm evaluation period name period statistic to compare, maybe extract to spreadsheet for comparison ??

Garrett (PlanoCloudDude) avatar
Garrett (PlanoCloudDude)

will give jq a shot, thank you

Erik Osterman avatar
Erik Osterman

Yep, can totally use jq for that

Erik Osterman avatar
Erik Osterman

The syntax is a little bit funky

Erik Osterman avatar
Erik Osterman

But once you get it, very powerful

:--1:1
Erik Osterman avatar
Erik Osterman

They have a lot of examples

Erik Osterman avatar
Erik Osterman

If you get stuck let me know

Garrett (PlanoCloudDude) avatar
Garrett (PlanoCloudDude)

Thank you!

Garrett (PlanoCloudDude) avatar
Garrett (PlanoCloudDude)

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 avatar
Erik Osterman
jq -r '.metrics[] | [.name, .evaluationPeriod, .comparisonOperator]| @csv' < example_snstopic_aws_json.js
1
Erik Osterman avatar
Erik Osterman

produces

Erik Osterman avatar
Erik Osterman
"CPUUtilization","1","GreaterThanOrEqualToThreshold"
"StatusCheckFailed","1","GreaterThanOrEqualToThreshold"
    keyboard_arrow_up