Update README
This commit is contained in:
@ -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
|
### Setup
|
||||||
|
|
||||||
@ -7,13 +7,16 @@ Start the local metric services:
|
|||||||
|
|
||||||
`$ ./start.sh`
|
`$ ./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`
|
`$ source ./enable.sh`
|
||||||
|
|
||||||
Once metrics have been started and you have an application running you can view the metrics at:
|
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:
|
metrics dashboard:
|
||||||
@ -34,7 +37,7 @@ adhoc metrics collection/viewing
|
|||||||
Simple example of pulling all airdrop measurements out of the `testnet` database:
|
Simple example of pulling all airdrop measurements out of the `testnet` database:
|
||||||
|
|
||||||
```sh
|
```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/
|
Reference: https://docs.influxdata.com/influxdb/v1.5/query_language/
|
||||||
|
@ -37,6 +37,8 @@ docker run \
|
|||||||
--env INFLUXDB_DB=testnet \
|
--env INFLUXDB_DB=testnet \
|
||||||
--env INFLUXDB_ADMIN_USER=admin \
|
--env INFLUXDB_ADMIN_USER=admin \
|
||||||
--env INFLUXDB_ADMIN_PASSWORD=admin \
|
--env INFLUXDB_ADMIN_PASSWORD=admin \
|
||||||
|
--env INFLUXDB_READ_USER=read \
|
||||||
|
--env INFLUXDB_READ_PASSWORD=read \
|
||||||
--env INFLUXDB_WRITE_USER=write \
|
--env INFLUXDB_WRITE_USER=write \
|
||||||
--env INFLUXDB_WRITE_PASSWORD=write \
|
--env INFLUXDB_WRITE_PASSWORD=write \
|
||||||
$INFLUXDB_IMAGE -config /etc/influxdb/influxdb.conf /init-influxdb.sh
|
$INFLUXDB_IMAGE -config /etc/influxdb/influxdb.conf /init-influxdb.sh
|
||||||
|
Reference in New Issue
Block a user