Hop
Search…
Hop
Welcome
JS SDK
Hop Node
Getting started
Requirements
Configuration
Keystore
Staking
Installing Docker
Docker image
Running Docker container
EC2 Setup
Monitoring
Docker CloudWatch Logs
Prometheus Monitoring
AWS Parameter Store Setup
Running in Production
Securing Cloud Instance
Securing Server
SSH 2FA
Additional Security & Node Best Practices
CLI Commands
Contract State
Additional questions
TheGraph Subgraphs
Contract Addresses
Smart Contracts
RPC Endpoints
Fee Calculation
On the web
FAQ
Assets
Powered By
GitBook
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!
Previous
Docker CloudWatch Logs
Next
AWS Parameter Store Setup
Last modified
5mo ago
Copy link
Contents
Enabling metrics
Running Prometheus
Running Grafana