flux
Version, currently 1.0.512 versions
- 3.1.0latestAug 10, 2026
- 3.0.2not indexedAug 10, 2026
- 3.0.1not indexedAug 10, 2026
- 2.0.0not indexedAug 10, 2026
- 1.1.3not indexedAug 10, 2026
- 1.1.2not indexedAug 10, 2026
- 1.1.1not indexedAug 10, 2026
- 1.1.0not indexedAug 10, 2026
- 1.0.5not indexedAug 10, 2026
- 1.0.4not indexedAug 10, 2026
- 1.0.1not indexedAug 10, 2026
- 1.0.0not indexedAug 10, 2026
github.com/place-labs/flux
InfluxDB v2.x crystal-lang client / Flux query language tools
Nothing has been indexed for 1.0.5 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
flux:
github: place-labs/flux
version: ~> 1.0.5Then run:
shards installshard.yml
No shard.yml has been indexed for 1.0.5. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
flux
Client library for pushing data to, and querying information from InfluxDB v2.x.
Installation
- Add the dependency to your
shard.yml:
dependencies:
flux:
github: place-labs/flux
- Run
shards install
Usage
require "flux"
Configure the client
Define your client configuration with Flux.configure. This yields an
Options object
with appriopriate setters.
Flux.configure do |settings|
settings.uri = ENV["INFLUX_HOST"]? || abort "INFLUX_HOST env var not set"
settings.api_key = ENV["INFLUX_API_KEY"]? || abort "INFLUX_API_KEY env var not set"
settings.org = ENV["INFLUX_ORG"]? || "vandelay-industries"
settings.bucket = ENV["INFLUX_BUCKET"]? || "latex-sales"
end
NOTE: INFLUX_HOST is expected to be a well-formed URI.
Writing data
Use Flux.write to enqueue a point. Writes are automatically buffered and
flushed after either a time delay or optimal write size.
Running queries
Once information is available in the bucket, queries are executed with
Flux.query. This accepts a Flux
expression.
Parallel clients
If your application requires connectivity with more that one InfluxDB instance
or bucket, clients can be directly created with Flux::Client.new.
Contributing
- Fork it (https://github.com/place-labs/flux/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Kim Burgess - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.0.5- Tagged
- Aug 10, 2026
- Commit
48e8774bb07e- Indexed
- not yet
Dependents
Repository
github.com/place-labs/flux
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 12