$ wf g -w /path/to/warp10 io.warp10 warp10-ext-influxdb
/path/to/warp10/is where Warp 10 is physically located.
warp10-ext-influxdb extension allows WarpScript to interact with InfluxDB instances.
This extension is compatible with InfluxDB version
Build the extension jar by issueing the following command:
./gradlew -Duberjar shadowJar
.jar file will be created in the
build/libs directory. Copy this file into the
lib directory of your Warp 10 installation and proceed with the configuration.
Add the following line to your Warp 10 configuration to enable the extension:
warpscript.extension.influxdb = io.warp10.script.ext.influxdb.InfluxDBWarpScriptExtension
then restart your Warp 10 instance, the extension will be automagically added.
Three functions are provided by this extension,
INFLUXDB.UPDATE to store data in InfluxDB,
INFLUXDB.FETCH to retrieve data from a
1.x InfluxDB instance and
INFLUXDB.FLUX to execute a flux query on a flux enabled InfluxDB instance.
There is no control of the provided endpoint URLs, so a rogue user could issue calls to internal services this way. Consider opening an issue or submitting a PR if you would like to have configuration options to further restrict the list of allowed URLs.