Grafana Dashboard

Install Grafana on our instance which queries our Prometheus server.

wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_8.1.4_amd64.deb
sudo apt-get install -y adduser libfontconfig
sudo dpkg -i grafana_8.1.4_amd64.deb

Enable the automatic start of Grafana by systemd:

sudo systemctl daemon-reload && sudo systemctl enable grafana-server && sudo systemctl start grafana-server

Grafana is running now, and we can connect to it at http://your.server.ip:3000. The default user and password is admin / admin.

Now you have to create a Prometheus data source:

  • Click the Grafana logo to open the sidebar.

  • Click “Data Sources” in the sidebar.

  • Choose “Add New”.

  • Select “Prometheus” as the data source

  • Set the Prometheus server URL (in our case: http://localhost:9090/)

  • Click “Add” to test the connection and to save the new data source

Installing Cosmos SDK Grafana Dashboard

Finally, we're going to install a basic dashboard for Cosmos SDKs. For further reference in these steps, see: https://github.com/zhangyelong/cosmos-dashboard

Enable Tendermint Metrics

sed -i 's/prometheus = false/prometheus = true/g' <YOUR-NODE-HOMEDIR>/config/config.toml

After restarting your node, you should be able to access the tendermint metrics(default port is 26660): http://localhost:26660

Configure Prometheus Targets

Append a job under the scrape_configs of your prometheus.yml

  - job_name: secret-network
	static_configs:
	- targets: ['<Validator-IP>:26660']
	  labels:
		instance: validator
	- targets: ['<Sentry-0-IP>:26660']
	  labels:
		instance: sentry-0
	- targets: ['<Sentry-1-IP>:26660']
	  labels:
		instance: sentry-1

Reload Prometheus Config

curl -X POST http://<PROMETHEUS-IP>:9090/-/reload

Import Grafana Dashboard

Copy and paste the Grafana Dashboard ID 11036 OR content of cosmos-dashboard.json, click on Load to complete importing.

  1. Set chain-id to secret-3

  2. You're done!\

Last updated