This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| prometheus [2021/10/13 04:00] – [Blackbox Exporter] 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 27: | Line 39: | ||
| valid_status_codes: | valid_status_codes: | ||
| method: GET | method: GET | ||
| + | preferred_ip_protocol: | ||
| </ | </ | ||
| | | ||
| Line 72: | 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 128: | Line 144: | ||
| ## Access alertmanager on your endpoint on port 9093 | ## Access alertmanager on your endpoint on port 9093 | ||
| | | ||
| - | | + | To Debug: |
| - | | + | |
| + | |||
| + | =====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 / | ||
| + | |||