Code of MirrorZ monitor.
Use https://mirrorz.org/monitor to view one instance of such monitor.
Use node main.js
to insert data into one influxdb 2.x
You should configure those secrets in env.js
config
directory is from mirrorz-org/mirrorz-config
.
parser
directory is from mirrorz-org/mirrorz-parser
.
git clone git@github.com:mirrorz-org/mirrorz-config.git config
pushd config && ln -sf config/localhost.1234.json config.json && popd
git clone git@github.com:mirrorz-org/mirrorz-parser.git parser
pushd parser && ln -sf ../config/config.json config.json && npm i && popd
Use influxdb 2.x. Make sure you have a bucket named mirrorz
.
# influx setup
> Welcome to InfluxDB 2.0!
? Please type your primary username mirrorz
? Please type your password
? Please type your password again
? Please type your primary organization name mirrorz
? Please type your primary bucket name mirrorz
? Please type your retention period in hours, or 0 for infinite 0
? Setup with these parameters?
Username: mirrorz
Organization: mirrorz
Bucket: mirrorz
Retention Period: infinite
Yes
User Organization Bucket
mirrorz mirrorz mirrorz
# influx bucket list
ID Name
deadbeaf mirrorz
# influx auth create -u mirrorz -o mirrorz --write-bucket deadbeaf
# influx auth create -u mirrorz -o mirrorz --read-bucket deadbeaf
Grafana uses influxdb as data source. You may import grafana.json
as a new dashboard.
Note: queries are saved in the json, if you do not find them after importing, manually import them.