Hop
Search…
Prometheus Monitoring
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-node/config.json
1
"metrics": {
2
"enabled": true,
3
"port": 8080
4
}
Copied!

Running Prometheus

Create prometheus.yml config
1
global:
2
scrape_interval: 15s
3
4
external_labels:
5
monitor: 'hop-node-monitor'
6
7
scrape_configs:
8
- job_name: 'prometheus'
9
10
scrape_interval: 5s
11
12
static_configs:
13
- targets: ['localhost:8080']
Copied!
Run Prometheus with docker
1
docker run -v $PWD/prometheus.yml:/etc/prometheus/prometheus.yml --net=host -p 9090:9090 prom/prometheus
Copied!

Running Grafana

Run Grafana with docker
1
docker run --net=host -p 3000:3000 grafana/grafana
Copied!