STORY Dashboard
Overview
To set up an effective node monitoring system, we’ll use three main tools:
- Prometheus: Collects and stores metrics.
- Node Exporter: Gathers metrics from the system and hardware.
- Grafana: Displays data in graphs and dashboards.
Preview: https://story-dashboard.josephtran.xyz/ | username: user
| password: 123456
System Requirements
- Operating System: Ubuntu 20.04 LTS or newer
- RAM: Minimum 2GB
- CPU: 2 cores or more
- Disk Space: At least 20GB free
Implementation Steps
1. Installing Prometheus
Prometheus is an open-source monitoring system and time series database.
- Download and install Prometheus:
- Create Prometheus user:
- Create necessary directories:
- Configure permissions:
- Create Prometheus configuration file:
- Insert Prometheus configuration content:
- Explain config:
- For config this port
PUBLIC_SERVER_IP:26660
you have to edit file at$HOME/.story/story/config/config.toml
and Restart Story node
- Set permissions for the configuration file
- Create service file:
- Paste service content:
- Start Prometheus:
2. Installing Node Exporter
Node Exporter collects hardware and OS metrics.
- Download and install Node Exporter:
- Create service file:
- Insert service file content:
(You can custom port if get conflict)
- Start Node Exporter:
3. Installing Grafana
Grafana is an open-source platform for data analytics and visualization.
- Install Grafana:
- Start Grafana:
4. Configuring Grafana Dashboard
- Access Grafana web interface:
Open your browser and navigate to
http://your_server_ip:3000
-
Default login:
admin/admin
then change to your password -
Add Prometheus as a data source: Click
"Add new data source"
and select Prometheus
Enter http://localhost:9099 as the Prometheus server URL. (This port the same port in Prometheus service config)
Click "Save & Test"
at the bottom
- Import Dashboard: Go to Dashboards and click “Upload JSON file”
Upload the downloaded JSON file Select the Prometheus data source you just added
Download the Story-grafana-json-file from https://story.josephtran.co/story_validator.json
- Customize Dashboard:
Adjust time ranges, add new panels, or modify existing ones as needed
Preview: https://story-dashboard.josephtran.xyz/ | username: user
| password: 123456
5. Troubleshooting
- If Prometheus fails to start, check the configuration file for syntax errors
- Ensure all necessary ports are open in your firewall
- Check service logs using
journalctl -u [service_name]
for any error messages
6. Maintenance
- Regularly update Prometheus, Node Exporter, and Grafana to their latest versions
- Backup your Grafana dashboards and Prometheus data periodically
- Monitor disk usage of the Prometheus data directory
Setup Alert
#Conclusion:
-
You now have a fully functional monitoring system for your node.
-
This setup allows you to visualize system metrics, set up alerts, and gain insights into your node’s performance.
-
Remember to regularly check and update your monitoring setup to ensure it remains effective and secure.
-
This comprehensive guide should provide a solid foundation for setting up Grafana to monitor your node.
-
It covers all the necessary steps from installation to configuration, and includes some basic troubleshooting and maintenance tips.