Skip to content

About

An InfluxDB client: line-protocol writes for 1.x, 2.x and 3.x, InfluxQL and Flux queries

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

@deckyard/influxdb

test Documentation release

A Jennifer deck for InfluxDB™: build line-protocol points, write them, and query them back: InfluxDB 1.x with InfluxQL™, 2.x with token auth and Flux™, and 3.x with 2.x writes and InfluxQL queries.

It was Jennifer's bundled influxdb.j module until 0.27; the surface is the same, so moving over changes only the import:

import "@deckyard/influxdb/" as influxdb;   # was: import "influxdb.j" as influxdb;

Up to 0.3.0 this deck was @jennifer/influxdb. To switch, change the [decks] entry to "@deckyard/influxdb" = "^0.4.0" and the imports to "@deckyard/influxdb/".

Documentation

Install

jvc add @deckyard/influxdb

This vendors the deck to vendor/<scope>/influxdb/. Without jvc, unpack the src/ subtree of a release archive (<scope>-influxdb-<version>.tar.gz) there.

Usage

import "@deckyard/influxdb/" as influxdb;

def c as influxdb.Client init influxdb.clientWith("http://localhost:8086", "metrics", "user", "pass");
def p as influxdb.Point init influxdb.field(influxdb.tag(influxdb.point("cpu"), "host", "srv1"), "value", 0.64);
influxdb.write($c, [$p]);

Requirements

Jennifer 0.27.0 or newer, the default jennifer binary (net), not jennifer-tiny.

Development

tools/check-all.sh                   # the full gate, as CI runs it
jennifer test src/influxdb_test.j      # the test overlay
tools/check-docs.sh                  # docs against the code
tools/pack.sh dist                   # build the release archive

Licence

LGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <mplx@jennifer-lang.dev>.

tools/check-headers.sh checks every source file's SPDX header against deck.toml.

Trademarks

InfluxDB™ is a trademark of InfluxData Inc. InfluxQL™, Flux™ and other product and company names may be trademarks of their respective owners. They are used only to identify the products this deck works with. This deck is an independent project, not affiliated with, sponsored or endorsed by InfluxData Inc.

About

An InfluxDB client: line-protocol writes for 1.x, 2.x and 3.x, InfluxQL and Flux queries

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors