An open source npm package to collect data to InfluxDB for Node.js and express server .
Helps monitoring application with DataCat.
- Send request method, host, status code, duration time to InfluxDB when sending every response.
- Collecting customized data to InfluxDB.
npm install @weigen393/datacatpaw
Put this in front of API routes.
Set InfluxDB parameters so that data can be sent to the specified database.
const express = require('express');
const app = express();
const DataCatPaw = require('./dataCatPaw');
const cat = new DataCatPaw({
token: INFLUXDB_TOKEN,
org: INFLUXDB_ORG,
bucket: INFLUXDB_BUCKET,
url: INFLUXDB_URL,
});
app.use(cat.dataCat());cat.catPaw(SEND_TAG, SEND_DATA);Tag name and Data will be sent to InfluxDB.
Thanks for using DataCatPaw 😸 🐾
Email: weigen393@gmail.com