Устанавливаем Prometheus, Grafana и Node Exporter

# pkg ins -y prometheus node_exporter grafana6

Включаем сервисы.

# sysrc prometheus_enable="YES" # sysrc node_exporter_enable="YES" # sysrc grafana_enable="YES"

 

Создаем конфиг Prometheus.

# vi /usr/local/etc/prometheus

global: scrape_interval: 15s evaluation_interval: 15s #alerting: # alertmanagers: # - static_configs: - targets: ['localhost:9093'] #rule_files: #- alert_rules.yml scrape_configs: - job_name: 'prometheus' static_configs: - targets: ['localhost:9090'] - job_name: 'node_exporter' scrape_interval: 5s static_configs: - targets: ['localhost:9100']


Стартуем сервисы.

# service prometheus start<br/> # service node_exporter start<br/> # service grafana start