influxdb
influxdb
TODO: Write a description here
Installation
-
Add the dependency to your
shard.yml:dependencies: influxdb: github: jgaskins/influxdb -
Run
shards install
Usage
require "influxdb"
influxdb = InfluxDB::Client.new(
token: ENV["INFLUXDB_TOKEN"], # This env var is used as the default
uri: URI.parse("https://influxdb.example.com"),
)
# Note that we use `3.calendar_months` instead of `3.months`. This comes from
# the [`duration`](https://github.com/jgaskins/duration) shard. We use this
# because `90d` and `3mo` are two different lengths of time.
influxdb.create_db "test", retention_period: 3.calendar_months
influxdb.write_lp "test
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/jgaskins/influxdb/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
- Jamie Gaskins - creator and maintainer
Repository
influxdb
Owner
Statistic
- 0
- 0
- 0
- 0
- 3
- about 7 hours ago
- August 11, 2026
License
MIT License
Links
Synced at
Tue, 11 Aug 2026 03:29:17 GMT
Languages