kittisuw / solos

0 stars 0 forks source link

10/07/2020 #1

Open kittisuw opened 3 years ago

kittisuw commented 3 years ago

- config alertmanager to webhook by target eg. SMS,MSTEAM,CFMS by using template

https://lapee79.github.io/en/article/prometheus-alertmanager-with-msteams/

https://blog.opstree.com/2019/12/03/prometheus-alertmanager-integration-with-ms-teams/

https://github.com/prometheus-msteams/prometheus-msteams

https://prometheus.io/docs/alerting/latest/notification_examples/

kittisuw commented 3 years ago

curl --request POST --header "Content-Type: application/json" --data '{ "module": "StandardFormat", "amoName": "sawit_test", "alarmName": "CPU Usage Over Threshold", "description": "sawit CPU Usage Over Threshold. Current value is 96.78%", "node": "sawit", "mcZone": "", "systemName": "Switchgirl", "emsName": "sawit_ems", "emsIp": "10.216.14.222", "siteCode": "tls", "severity": "critical", "region": "BKK", "nodeIp": "10.216.14.222", "networkType": "VASIT", "msisdns": "66822219992" }' http://127.0.0.1/apis/sms/v1 {"alarmName":"CPU Usage Over Threshold","amoName":"sawit_test","description":"sawit CPU Usage Over Threshold. Current value is 96.78%","emsIp":"10.216.14.222","emsName":"sawit_ems","mcZone":"","messageId":"558ca954-08a3-11eb-b2cb-0242c0a80004","module":"StandardFormat","msisdn":"66822219992","networkType":"VASIT","node":"sawit","nodeIp":"10.216.14.222","region":"BKK","severity":"critical","siteCode":"tls","systemName":"Switchgirl","timeStamp":"2020-10-07 13:45:17.281271"}

kittisuw commented 3 years ago

https://medium.com/zolo-engineering/configuring-prometheus-operator-helm-chart-with-aws-eks-c12fac3b671a