Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Clone the node_tooling repo and descend into the monitoring folder:
In the Prometheus folder, modify cosmos.yaml, replace NODE_IP
with the IP of your node. (If your node is on the docker host machine, use 172.17.0.1
)
Replace the default Prometheus config with the modified cosmos.yaml
The docker images expose the following ports:
3000
Grafana. Your main dashboard. Default login is admin\admin.
9090
Prometheus. Access to this port should be restricted.
9100
Node Exporter. Access to this port should be restricted.
Your secret node metrics on port 26660
should also be restricted.
If you followed the basic security guide, these ports are already restricted. You will need to allow the grafana port:
sudo ufw allow 3000
You can also allow access from a specific IP if desired:
sudo ufw allow from 123.123.123.123 to any port 3000
Start the containers deploying the monitoring stack (Grafana + Prometheus + Node Exporter):
Login to Grafana at http://your-ip:3000
with username admin
and password admin
The containers will restart automatically after rebooting unless they are stopped manually.
The dashboard for Cosmos SDK nodes is pre-installed, to use it:
Enable Tendermint metrics in your secret-node
After restarting your node, you should be able to access the Tendermint metrics (default port is 26660): http://localhost:26660
If you did not replace NODE_IP
with the IP of your node in the Prometheus config, do so now. If your node is on the docker host machine, use 172.17.0.1
Login to Grafana and open the Cosmos Dashboard from the Manage Dashboards page.
Set the chain-id to secret-3
Docker and Docker Compose will allow you to run the required monitoring applications with a few commands. These instructions will run the following:
Grafana on port 3000
: An open source interactive analytics dashboard.
Prometheus on port 9090
: An open source metric collector.
Node Exporter on port 9100
: An open source hardware metric exporter.
You will need to install docker and docker-compose.
The following instructions assume Ubuntu 20.04 on an x86-64 CPU.
Test the installation:
Apply executable permissions to the binary:
Download the current stable release of Docker Compose:
Test the installation:
Install docker:
Setup the docker stable repository:
Add Docker’s official GPG key:
Update the apt package index and install packages to allow apt to use a repository over HTTPS:
From the node_tooling/monitoring
directory: