FreeBSD Prometheus Grafana

Help with operating systems, apps, and software-related issues.
User avatar
ccb056
Site Administrator
Posts: 1003
Joined: January 14th, 2004, 11:36 pm
Location: Texas

FreeBSD Prometheus Grafana

Post by ccb056 »

from here: https://blog.andreev.it/2019/04/freebsd ... d-grafana/

Code: Select all

pkg install prometheus3

Code: Select all

pkg install grafana

Code: Select all

pkg install node_exporter

Code: Select all

sysrc prometheus_enable=YES

Code: Select all

sysrc prometheus_args="--storage.tsdb.retention.time=1y"

Code: Select all

sysrc node_exporter_enable=YES

Code: Select all

sysrc grafana_enable=YES
add this to the bottom of /usr/local/etc/prometheus.yml

Code: Select all

- job_name: 'node_exporter'
  scrape_interval: 5s
  static_configs:
    - targets: ['localhost:9100']

Code: Select all

service prometheus start

Code: Select all

service node_exporter start

Code: Select all

service grafana start
prometheus: http://your_ip:9090
grafana: http://your_ip:3000 default creds = (admin : admin)