influxdb

Crystal client for InfluxDB

influxdb

TODO: Write a description here

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      influxdb:
        github: jgaskins/influxdb
    
  2. 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

  1. Fork it (https://github.com/jgaskins/influxdb/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

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