This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
prometheus [2021/10/13 05:12] – [Setup Alert Manager] vissie | prometheus [2021/10/18 03:47] (current) – vissie | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | =====The order of things===== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | - Install/ | ||
+ | - Install/ | ||
+ | - Install/ | ||
+ | - Install/ | ||
+ | - Install/ | ||
+ | |||
+ | |||
=====Create rules===== | =====Create rules===== | ||
sudo vim / | sudo vim / | ||
Line 73: | Line 85: | ||
| | ||
Open a new terminal, create a index.html: | Open a new terminal, create a index.html: | ||
+ | sudo pip3 install simple_http_server | ||
echo " | echo " | ||
- | python -m SimpleHTTPServer 8080 | + | python -m SimpleHTTPServer 8080 or |
+ | python3 -m http.server 8080 | ||
| | ||
Head back to the previous terminal session and restart prometheus: | Head back to the previous terminal session and restart prometheus: | ||
Line 132: | Line 147: | ||
sudo journalctl -u alertmanager -f | sudo journalctl -u alertmanager -f | ||
- | | + | =====Telegram Bot for Alertmanager===== |
+ | https:// | ||
+ | sudo pip3 install -r ./ | ||
+ | sudo pip3 install python-dateutil | ||
+ | |||
+ | |||
+ | =====Issues===== | ||
+ | ====ICMP==== | ||
+ | To get ping [icmp] to work, I had to do the following: | ||
+ | sudo setcap cap_net_raw+ep / | ||
+ |