
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@autobits/influxdb-client
Advanced tools
This module provide and usefull client to ship structured data to influxDB v2.0
Library to send metrics to InfluxDB
To allow javascript developers to send metrics in a easy way without worring about how to connect and how to build the metrics in the influxdb format, also the library has middleware for the developers that use expressjs, this middlewares will generate metrics default metrics that will allow us to collect data about the request like, latency, number of request, error, etc.
To use the library you just need to follow the following steps Install the library with npm
npm install @autobits/influxdb-client
Import the library
const influxdb_client = require('@autobits/influxdb-client');
Init client
influxdbClient.init({
influxdbToken: `9as7XXX==`,
influxdbOrg: `autobits.XXX`,
influxdbBucket: `autobits.systems's Bucket`,
influxdbURL: `https://XXX`,
appname: `MyAPP`,
debugMode: true
});
Collect default metrics
// Track server health
influxdbClient.trackServerHealth();
// Add Middlewares to track API requests
app.use(influxdbClient.requestMiddleware());
app.use(influxdbClient.errorMiddleware());
Collect custom metrics
fields = [
{ name: 'field1', value: 'OK', datatype: influxdbClient.FIELD_DATA_TYPES.STRING },
{ name: 'field2', value: 1234, datatype: influxdbClient.FIELD_DATA_TYPES.INT },
{ name: 'field3', value: '123.987', datatype: influxdbClient.FIELD_DATA_TYPES.FLOAT },
{ name: 'field4', value: true, datatype: influxdbClient.FIELD_DATA_TYPES.BOOLEAN }
];
tags = [
{ name: 'tag1', value: 'OK' },
{ name: 'tag2', value: 'THIS_IS_FINE' }
];
influxdbClient.writePoint('MyCustomPoint', fields, tags);
Close conection (should be invoked in the SIGTERM, SIGINT, SHUTDOWN handlers)
// close connection to influx
await influxdbClient.close();
});
The original author and current lead maintainer of this module is the @autobits development team.
FAQs
This module provide and usefull client to ship structured data to influxDB v2.0
We found that @autobits/influxdb-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.