|
|
há 1 ano atrás | |
|---|---|---|
| .. | ||
| grafana-provisioning | há 1 ano atrás | |
| .gitignore | há 6 anos atrás | |
| README.md | há 6 anos atrás | |
| adjust-dashboard-for-channel.py | há 5 anos atrás | |
| enable.sh | há 6 anos atrás | |
| grafana.ini | há 6 anos atrás | |
| influxdb.conf | há 6 anos atrás | |
| start.sh | há 5 anos atrás | |
| status.sh | há 6 anos atrás | |
| stop.sh | há 6 anos atrás | |
| test.sh | há 6 anos atrás | |
This directory contains scripts to manage a local instance of InfluxDB OSS and Grafana
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
You may find it useful to install the InfluxDB client for adhoc metrics collection/viewing
sudo apt-get install influxdb-clientbrew install influxdbSimple 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/
To monitor activity, run one of:
$ docker logs -f influxdb
$ docker logs -f grafana