Node Monitoring
Track and visualize JuneoGo node metrics using Prometheus and Grafana
Last updated
Track and visualize JuneoGo node metrics using Prometheus and Grafana
Last updated
If you wish to monitor your JuneoGo node, it is possible to do so by using the repository. This repository implements and to monitor, store, and display key JuneoGo node metrics.
It also assumes that you have a JuneoGo node running with the required endpoints for Prometheus and JuneoGo metrics.
First, open the command line on the machine running your node and execute the following command:
Create a .env
file in the root directory of the project with the following variables:
PROMETHEUS_USERNAME
: The username to access the Prometheus metrics endpoint.
PROMETHEUS_PASSWORD
: The password to access the Prometheus metrics endpoint.
Each juneogo node needs to have the same credentials. If you have different credentials for each server, you need to modify the prometheus.yml
file.
servers.json
To ensure proper monitoring and DNS configuration, you must configure the servers.json
file. Check the servers.example.json
file for an example.
Each server entry should include:
name
: A name to identify the server.
target
: The target address to fetch metrics from.
ip
: The IP address for DNS configuration.
Example:
The target needs to expose two endpoints:
/metrics
for Prometheus metrics.
/ext/metrics
for JuneoGo metrics.
Add the domain name to your DNS configuration with the IP address of the machine running the monitoring.
Create a .env
file in the root directory of the project with the following variables:
Ensure that SSL/TLS encryption mode is set to Full (strict) when using Cloudflare.
Create a .env
file in the root directory of the project with the following variables:
Ensure both tokens have access to all target DNS zones present in your servers.json
file.
Ensure your servers.json
file is correctly populated with your server details (in Socotra and/or Mainnet).
If you do not provide Cloudflare tokens, DNS will not be managed automatically.
Create a Telegram group and add the bot to the group.
Invite the @getmyid_bot
to the group and get the chat ID.
Create a .env
file in the root directory of the project with the following variables:
You can use the same chat ID for both Socotra and Mainnet or use different chat IDs for each.
If you do not provide Telegram tokens, notifications will not be sent.
Grafana should be accessible with user: admin
and password: admin
.
Follow the repository to deploy your JuneoGo node with the required endpoints.
Create a Telegram bot and get the bot token. Refer to the for instructions.