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
Enable metrics in your hop node config file ~/.hop/config.json
~/.hop/config.json
"metrics": { "enabled": true, "port": 8080 }
Create prometheus.yml config
prometheus.yml
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
Run Grafana with docker
Last updated 3 years ago
docker run -v $PWD/prometheus.yml:/etc/prometheus/prometheus.yml --net=host -p 9090:9090 prom/prometheus
docker run --net=host -p 3000:3000 grafana/grafana