
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
sand-influx
Advanced tools
An InfluxDB sand grain. This module is a wrapper for node-influx.
npm install sand-influx
Add influx to your sand config
const sand = require('sand');
const influx = require('influx');
new sand()
.use(influx)
.start();
A list of configuration values can be found below
| Option | Description |
|---|---|
| username | username |
| password | password |
| database | database name |
| hostname | hostname, e.g. 'localhost' |
| port [optional] | influx db port, defult: 8086 |
| requestTimeout [optional] | number of ms to wait before request times out. defaults to 'null' (waits until connection is closed). Use with caution ! |
| maxRetries[optional] | max number of retries until a request raises an error (e.g 'no hosts available'), default: 2 |
Writes a point to a series
let point = {value: 100};
sand.influx.writePoint(seriesName, point, options, callback);
Write multiple points to a series
let points = [{value: 100}, {value: 200}];
sand.influx.writePoints(seriesName, points, options, callback);
Please note that there's a POST limit at about 2MB per request. Do not submit too many points at once
Queries the database, This function manipulates the data that comes back and returns an array of series rows with columns and values mapped automatically.
let query = 'SELECT mean(column) FROM my_series WHERE time > now() - 24h';
sand.influx.query(query, function(err, rows) {
// Rows should be an array of objects
});
Queries the database using raw influx
let query = 'SELECT mean(column) FROM my_series WHERE time > now() - 24h';
sand.influx.queryRaw(query, callback);
FAQs
Influx DB support
We found that sand-influx 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.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.