User Tools

Site Tools


software:service:prometheus

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
software:service:prometheus [2021/12/31 15:44] – ↷ Page moved from vm:monitor:prometheus to software:service:prometheus warnaudsoftware:service:prometheus [2022/01/01 08:17] (current) – [References] warnaud
Line 1: Line 1:
 +====== Prometheus ======
 +Configs/things to do
 +===== Things to monitor =====
 +==== CPU/Disk/RAM/Load ====
 +=== Client(s) ===
 +  * Archlinux<code bash>yay -S prometheus-node-exporter
 +systemctl enable --now prometheus-node-exporter</code>
  
 +=== Server ===
 +<code bash>
 +vi /etc/prometheus/prometheus.yml
 +</code><code perl>
 +- job_name: "Nodes"
 +    static_configs:
 +      - targets: ["dns2.fortier-family.com:9100","localhost:9100"]</code>
 +
 +==== DNS (unbound) ====
 +=== Client(s) ===
 +  * configure the unbound server <code bash>vi /etc/unbound/unbound.conf</code> then add<code perl> server:
 +    extended-statistics: yes</code><code bash>systemctl restart unbound</code>
 +  * On archlinux:<code bash>yay prometheus-unbound
 +systemctl enable --now prometheus-unbound-exporter</code>
 +
 +=== Server ===
 +<code bash>
 +vi /etc/prometheus/prometheus.yml
 +</code>
 +<code perl>
 +  - job_name: "DNS2"
 +      - targets: ["dns2.fortier-family.com:9167"]</code>
 +
 +<code bash>systemctl restart prometheus</code>
 +==== network ====
 +
 +
 +
 +
 +
 +====== References ======
 +  * https://github.com/letsencrypt/unbound_exporter
 +  * https://www.youtube.com/watch?v=h4Sl21AKiDg
 +  * https://prometheus.io/docs/instrumenting/exporters/
 +  * https://prometheus.io/docs/prometheus/latest/getting_started/