User Tools

Site Tools


prometheus

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
prometheus [2021/10/13 05:12] – [Setup Alert Manager] vissieprometheus [2021/10/18 03:47] (current) vissie
Line 1: Line 1:
 +=====The order of things=====
 +  * https://blog.ruanbekker.com/blog/2019/05/07/setup-prometheus-and-node-exporter-on-ubuntu-for-epic-monitoring/
 +  * https://blog.ruanbekker.com/blog/2019/05/17/install-blackbox-exporter-to-monitor-websites-with-prometheus/
 +  * https://www.scaleway.com/en/docs/tutorials/prometheus-monitoring-grafana-dashboard/
 +
 +  - Install/Configure Prometheus
 +  - Install/Configure Node Exporter
 +  - Install/Configure Nginx Reverse Proxy
 +  - Install/Configure Alert Manager
 +  - Install/Configure Blackbox Exporter
 +
 +
 =====Create rules===== =====Create rules=====
   sudo vim /etc/prometheus/uptime_rule.uml   sudo vim /etc/prometheus/uptime_rule.uml
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 "ok" > index.html   echo "ok" > index.html
-  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://github.com/nopp/alertmanager-webhook-telegram-python.git 
 +  sudo pip3 install -r ./requirements.txt 
 +  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 /usr/local/bin/blackbox_exporter  
 + 
prometheus.1634127140.txt.gz · Last modified: 2021/10/13 05:12 by vissie