SquadJS/plugins/influxdb-log
2020-06-14 12:58:27 +01:00
..
index.js Increase line lengths 2020-06-14 12:58:27 +01:00
README.md SquadJS v1 2020-05-15 18:42:39 +01:00
schema.js SquadJS v1 2020-05-15 18:42:39 +01:00

Logo

SquadJS - InfluxDB Log

About

The InfluxDB log plugin logs event information into InfluxDB to allow it to be queried for analysis, monitoring, or stat tracking.. Works well with Grafana.

Requirements

  • InfluxDB database.

Installation

// Place the following two lines at the top of your index.js file.
import Influx from 'influx';
import { influxdbLog, influxdbLogDefaultSchema } from 'plugins';

// Place the following lines in your index.js file. Replace the credentials with the credentials of your InfluxDB database.
const influxDB = new Influx.InfluxDB({
host: 'host',
port: 8086,
username: 'squadjs',
password: 'password',
database: 'squadjs',
schema: influxdbLogDefaultSchema
});
influxdbLog(server, influxDB);