Crates.io | snarkos-node-metrics |
lib.rs | snarkos-node-metrics |
version | |
source | src |
created_at | 2023-06-14 23:35:35.521776+00 |
updated_at | 2025-04-03 16:38:01.965687+00 |
description | A node for a decentralized operating system |
homepage | https://aleo.org |
repository | https://github.com/ProvableHQ/snarkOS |
max_upload_size | |
id | 890639 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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.