Prometheus

Monitor metrics with Prometheus

Notice: The Prometheus integration is very primitive and doesn't contain many metrics yet. Pull requests are welcome!

You can use Prometheus to monitor metrics

Enabling metrics

Enable metrics in your hop node config file ~/.hop/config.json

  "metrics": {
    "enabled": true,
    "port": 8080
  }

Running Prometheus

Create prometheus.yml config

global:
  scrape_interval:     15s

  external_labels:
    monitor: 'hop-node-monitor'

scrape_configs:
  - job_name: 'prometheus'

    scrape_interval: 5s

    static_configs:
      - targets: ['localhost:8080']

Run Prometheus with docker

docker run -v $PWD/prometheus.yml:/etc/prometheus/prometheus.yml --net=host -p 9090:9090 prom/prometheus

Running Grafana

Run Grafana with docker

docker run --net=host -p 3000:3000 grafana/grafana

Last updated