Инструменты пользователя

Инструменты сайта


сервис_grafana

Сервис Grafana

Установка

# apt install -y apt-transport-https software-properties-common wget

# wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -

# echo "deb https://packages.grafana.com/oss/deb stable main" | tee -a /etc/apt/sources.list.d/grafana.list

# apt update

# apt install grafana

# systemctl enable grafana-server.service

# systemctl start grafana-server

Интеграция с Prometheus

Configuratin->Data Source->Prometheus 
  URL: http://localhost:9090

Grafana dashboard

Import

+ Import->Import via grafana.com
    prometheus-node-exporter: 1860
    prometheus-blackbox-exporter: 7587
  Data Source: Prometheus

Create

+ Create-Add New Panel

Настройка уведомлений

# cat /etc/grafana/grafana.ini
...
[smtp]
enabled = true
host = mail.isp.un:25
from_address = grafana@server.corpX.un
ehlo_identity = server.corpX.un
startTLS_policy = NoStartTLS
...
# service grafana-server restart
Alerting->Notification Channels ...

Dashboard->Panel (name)->Edit->Alert->...->

Send To ...

Apply->Save Dashboard!!!!
сервис_grafana.txt · Последние изменения: 2021/02/23 10:40 — val