Crates.io | snarkos-node-metrics |
lib.rs | snarkos-node-metrics |
version | 3.0.0 |
source | src |
created_at | 2023-06-14 23:35:35.521776 |
updated_at | 2024-09-18 12:46:36.230645 |
description | A node for a decentralized operating system |
homepage | https://aleo.org |
repository | https://github.com/AleoNet/snarkOS |
max_upload_size | |
id | 890639 |
size | 82,191 |
The snarkos-node-metrics
crate provides access to metrics for the snarkos
node.
To start up Grafana and Prometheus, run the following command:
cd node/metrics
docker-compose up --detach
To check that the metrics are running, go to http://localhost:9000.
Lastly, go to http://localhost:3000/ to see the metrics dashboard.
The initial login is admin
and the password is admin
.
Start snarkOS with Metrics Enabled
--metrics
flag to enable metrics tracking.Navigate to Metrics Directory
node/metrics
using the command cd node/metrics
.Deploy Prometheus and Grafana with Docker
docker-compose up --detach
. This command uses the docker-compose.yml
file to set up two containers: Prometheus and Grafana, eliminating the need for direct installation.Verify Metrics Accessibility
curl http://localhost:9000
to check if the metrics are accessible at the specified URL.Access Grafana Dashboard
http://localhost:3000
. This is the Grafana user interface.Grafana Login Process
admin
and password admin
. On first login, you'll be prompted to change the password, but you can choose to skip this step.Configure Prometheus Data Source
Datasources
.Prometheus
as the data source.http://prometheus:9090
as the server URL.Save and Test
. You should see a message confirming successful connection to the Prometheus API.Import snarkOS Dashboard
Home
in the top breadcrumb navigation.+
icon in the top right corner.Import dashboard
.node/metrics/snarkOS-grafana.json
file into the top panel of the import interface.Import
.Following these steps will successfully set up and configure a monitoring environment for your snarkOS nodes using Docker, Prometheus, and Grafana.