Update README
This commit is contained in:
parent
bdd95b2286
commit
c147dc3028
|
@ -1,5 +1,5 @@
|
|||
|
||||
This directory contains scripts to manage a local instance of [InfluxDB OSS](https://docs.influxdata.com/influxdb/v1.5/) and [Grafana](https://grafana.com/docs/v5.2/)
|
||||
This directory contains scripts to manage a local instance of [InfluxDB OSS](https://docs.influxdata.com/influxdb/v1.6/) and [Grafana](https://grafana.com/docs/v5.2/)
|
||||
|
||||
### Setup
|
||||
|
||||
|
@ -7,15 +7,18 @@ 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 fullnode you must call `source ./enable.sh` before starting the node:
|
||||
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/d/local/local-monitor
|
||||
http://localhost:3000/dashboards
|
||||
|
||||
To test that things are working correctly you can send a test airdrop data point and then check the
|
||||
To test that things are working correctly you can send a test airdrop data point and then check the
|
||||
metrics dashboard:
|
||||
|
||||
`$ ./test.sh`
|
||||
|
@ -34,7 +37,7 @@ adhoc metrics collection/viewing
|
|||
Simple example of pulling all airdrop measurements out of the `testnet` database:
|
||||
|
||||
```sh
|
||||
$ influx -database testnet -username admin -password admin -execute 'SELECT * FROM "drone-airdrop"'
|
||||
$ influx -database testnet -username read -password read -execute 'SELECT * FROM "drone-airdrop"'
|
||||
```
|
||||
|
||||
Reference: https://docs.influxdata.com/influxdb/v1.5/query_language/
|
||||
|
|
|
@ -37,6 +37,8 @@ docker run \
|
|||
--env INFLUXDB_DB=testnet \
|
||||
--env INFLUXDB_ADMIN_USER=admin \
|
||||
--env INFLUXDB_ADMIN_PASSWORD=admin \
|
||||
--env INFLUXDB_READ_USER=read \
|
||||
--env INFLUXDB_READ_PASSWORD=read \
|
||||
--env INFLUXDB_WRITE_USER=write \
|
||||
--env INFLUXDB_WRITE_PASSWORD=write \
|
||||
$INFLUXDB_IMAGE -config /etc/influxdb/influxdb.conf /init-influxdb.sh
|
||||
|
|
Loading…
Reference in New Issue