Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1007 Bytes

prometheus-monitoring.md

File metadata and controls

54 lines (36 loc) · 1007 Bytes
description
Monitor metrics with Prometheus

Prometheus Monitoring

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