Yihau Chen 05361a9ed6 metrics: remove optimistic_slot_elapsed (#2717) 1 an în urmă
..
grafana-provisioning 05361a9ed6 metrics: remove optimistic_slot_elapsed (#2717) 1 an în urmă
.gitignore 470debef16 Inline metrics/scripts dependencies 6 ani în urmă
README.md 3513f4ee84 Rename drone to faucet (#7508) 6 ani în urmă
adjust-dashboard-for-channel.py dbaebe101c Clean up metrics dashboard 5 ani în urmă
enable.sh 1cd8c1865e Generate random passwords and keep them out of the environment/program args 6 ani în urmă
grafana.ini 6042ccf496 Streamline grafana.ini 6 ani în urmă
influxdb.conf 453fdb9e28 Add support for local metric collection/viewing (#4170) 6 ani în urmă
start.sh 5f5824d78d Rework cluster metrics dashboard to support the modern clusters 5 ani în urmă
status.sh e1444a9b00 Add curl retries 6 ani în urmă
stop.sh 1cd8c1865e Generate random passwords and keep them out of the environment/program args 6 ani în urmă
test.sh 3513f4ee84 Rename drone to faucet (#7508) 6 ani în urmă

README.md

This directory contains scripts to manage a local instance of InfluxDB OSS and Grafana

Setup

Start the local metric services:

$ ./start.sh

Metrics are enabled on a per-shell basis which means you must source the following scripts in each shell in which you start an application you wish to collect metrics from. For example, if running a Solana validator you must run source ./enable.sh before starting the node:

$ source ./enable.sh

Once metrics have been started and you have an application running you can view the metrics at:

http://localhost:3000/dashboards

To test that things are working correctly you can send a test airdrop data point and then check the metrics dashboard:

$ ./test.sh

Stop metric services:

$ ./stop.sh

InfluxDB CLI

You may find it useful to install the InfluxDB client for adhoc metrics collection/viewing

  • Linux - sudo apt-get install influxdb-client
  • macOS - brew install influxdb

Simple example of pulling all airdrop measurements out of the testnet database:

$ influx -database testnet -username read -password read -execute 'SELECT * FROM "faucet-airdrop"'

Reference: https://docs.influxdata.com/influxdb/v1.5/query_language/

Monitoring

To monitor activity, run one of:

$ docker logs -f influxdb
$ docker logs -f grafana

Reference