Howto grafana prometheus: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= archlinux = install grafana: pacman -Sy grafana --noconfirm install prometheus packages: pacman -Sy prometheus prometheus-node-exporter --noconfirm add the following to prometheus config file /etc/prometheus/prometheus.yml: - job_name: "linux" static_configs: - targets: ["localhost:9100"] start and enable prometheus services: systemctl start prometheus systemctl enable prometheus systemctl start prometheus-node-exporter.service systemctl enable prome...") |
Mandulete1 (talk | contribs) m (Protected "Howto grafana prometheus" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
(One intermediate revision by one other user not shown) | |||
Line 6: | Line 6: | ||
add the following to prometheus config file /etc/prometheus/prometheus.yml: | add the following to prometheus config file /etc/prometheus/prometheus.yml: | ||
- job_name: "linux" | - job_name: "linux" | ||
static_configs: | |||
- targets: ["localhost:9100"] | |||
start and enable prometheus services: | start and enable prometheus services: | ||
systemctl start prometheus | systemctl start prometheus |
Latest revision as of 14:01, 1 March 2023
archlinux
install grafana:
pacman -Sy grafana --noconfirm
install prometheus packages:
pacman -Sy prometheus prometheus-node-exporter --noconfirm
add the following to prometheus config file /etc/prometheus/prometheus.yml:
- job_name: "linux" static_configs: - targets: ["localhost:9100"]
start and enable prometheus services:
systemctl start prometheus systemctl enable prometheus systemctl start prometheus-node-exporter.service systemctl enable prometheus-node-exporter.service
start and enable grafana service:
systemctl start grafana systemctl enable grafana
commands
reset grafana admin password:
grafana-cli --homepath /usr/share/grafana --config /etc/grafana.ini admin reset-admin-password admin