Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. InfluxDB
  3. Ruby

Ruby

MITRubyv0.8.1

Official Ruby client library for InfluxDB 1.x, providing data writing, querying, and administrative capabilities.

GitHubGitHub
370 stars132 forks0 contributors

What is Ruby?

influxdb-ruby is the official Ruby client library for InfluxDB 1.x, designed to integrate Ruby applications with the InfluxDB time-series database. It provides methods for writing time-series data, executing queries, and performing administrative tasks like managing databases and users. The library solves the problem of programmatically interacting with InfluxDB from Ruby code, offering a clean and efficient API.

Target Audience

Ruby developers building applications that require time-series data storage and analysis, such as monitoring systems, IoT platforms, or analytics dashboards. It's also suitable for DevOps engineers managing InfluxDB instances through automation scripts.

Value Proposition

Developers choose influxdb-ruby because it's the officially maintained client for InfluxDB 1.x, ensuring compatibility and reliability. It offers a comprehensive feature set, including batch writes, async operations, and administrative functions, with a Ruby-friendly API that reduces boilerplate code.

Overview

Ruby client for InfluxDB

Use Cases

Best For

  • Writing time-series data from Ruby applications to InfluxDB
  • Building monitoring dashboards with Ruby backends
  • Automating InfluxDB database and user management
  • Ingesting IoT sensor data using Ruby scripts
  • Querying InfluxDB with parameterized InfluxQL statements
  • Handling large query results with streaming responses

Not Ideal For

  • Projects using InfluxDB 2.x or the Flux query language
  • Applications requiring UDP writes with retention policies (not supported per README)
  • Teams needing nanosecond precision without meticulous timestamp handling (due to default second precision and duplicate point risks)
  • Environments with legacy Ruby versions below 2.3.0 (officially unsupported)

Pros & Cons

Pros

Official and Actively Maintained

Maintained by InfluxData with regular updates and support for Ruby >= 2.3.0, ensuring reliability and compatibility with InfluxDB 1.x.

Comprehensive Feature Set

Supports data writing (single/batch, async), querying with parameterization, administrative tasks, and connection management with load balancing and retry logic, covering most InfluxDB 1.x needs.

Ruby-Idiomatic API

Offers denormalized query results by default, parameterized queries, and clean methods for common operations, reducing boilerplate code and improving developer experience.

Advanced Configuration Options

Extensive customization for time precision, SSL, proxies, async writing with configurable queues, and UDP support, allowing fine-grained control over client behavior.

Cons

Limited to InfluxDB 1.x

Does not support InfluxDB 2.x or the Flux query language, forcing users to migrate to influxdb-client-ruby for newer versions, as stated in the README note.

Time Precision Pitfalls

Default second precision and complex timestamp handling can lead to duplicate points if not configured correctly, requiring careful attention to avoid data corruption, as warned in the README.

Complex Async Setup

Asynchronous writing requires detailed configuration of max_post_points, queue size, and worker threads, which can be overwhelming and error-prone for simple use cases.

Frequently Asked Questions

Quick Stats

Stars370
Forks132
Contributors0
Open Issues9
Last commit3 years ago
CreatedSince 2013

Tags

#iot#ruby-gem#monitoring#database-client#time-series#influxdb#data-ingestion#time-series-database#ruby

Built With

R
Ruby

Included in

InfluxDB817
Auto-fetched 20 minutes ago

Related Projects

JavaJava

Java client for InfluxDB

Stars1,195
Forks471
Last commit2 months ago
PHPPHP

influxdb-php: A PHP Client for InfluxDB, a time series database

Stars427
Forks126
Last commit3 years ago
C#C#

A .NET library for efficiently sending points to InfluxDB 1.x

Stars198
Forks60
Last commit2 years ago
GoGo

The old clientv2 for InfluxDB 1.x

Stars192
Forks110
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub