Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
I

influxdb-client-csharp

> 前端框架
Open source

InfluxDB 2.x C# Client

380 stars0 likes6 views
WebsiteGitHub

About

InfluxDB 2.x C# Client

influxdb-client-csharp

This repository contains the C# client library for use with InfluxDB 2.x and Flux. InfluxDB 3.x users should instead use the lightweight v3 client library. InfluxDB 1.x users should use the v1 client library.

For ease of migration and a consistent query and write experience, v2 users should consider using InfluxQL and the v1 client library.

  • Features
  • Documentation
  • How To Use
    • Writes and Queries in InfluxDB 2.x
    • Use Management API to create a new Bucket in InfluxDB 2.x
    • Flux queries in InfluxDB 1.7+
  • Contributing
  • License

Documentation

This section contains links to the client library documentation.

  • Product documentation, Getting Started
  • Examples
  • API Reference
  • Changelog
Client Description Documentation Compatibility
Client The reference C# client that allows query, write and InfluxDB 2.x management. readme 2.x
Client.Linq The library supports to use a LINQ expression to query the InfluxDB. readme 2.x
Client.Legacy The reference C# client that allows you to perform Flux queries against InfluxDB 1.7+. readme 1.7+

Features

  • Supports querying using the Flux language over the InfluxDB 1.7+ REST API (/api/v2/query endpoint)
  • InfluxDB 2.x client
    • Querying data using the Flux language
    • Writing data using
      • Line Protocol
      • Data Point
      • POCO
    • InfluxDB 2.x Management API client for managing
      • sources, buckets
      • tasks
      • authorizations
      • health check
      • ...

How To Use

Writes and Queries in InfluxDB 2.x

The following example demonstrates how to write data to InfluxDB 2.x and read them back using the Flux language:

Installation

Use the latest version:

.Net CLI
bash
dotnet add package InfluxDB.Client
Or when using Package Manager
bash
Install-Package InfluxDB.Client
…

Use Management API to create a new Bucket in InfluxDB 2.x

The following example demonstrates how to use a InfluxDB 2.x Management API. For further information see client documentation.

Installation

Use the latest version:

.Net CLI
bash
dotnet add package InfluxDB.Client
Or when using Package Manager
bash
Install-Package InfluxDB.Client
…

InfluxDB 1.8 API compatibility

InfluxDB 1.8.0 introduced forward compatibility APIs for InfluxDB 2.x. This allow you to easily move from InfluxDB 1.x to InfluxDB 2.x Cloud or open source.

The following forward compatible APIs are available:

API Endpoint Description
QueryApi.cs /api/v2/query Query data in InfluxDB 1.8.0+ using the InfluxDB 2.x API and Flux (endpoint should be enabled by flux-enabled option)
WriteApi.cs /api/v2/write Write data to InfluxDB 1.8.0+ using the InfluxDB 2.x API
PingAsync /ping Checks the status of InfluxDB instance and version of InfluxDB.

For detail info see InfluxDB 1.8 example.

Flux queries in InfluxDB 1.7+

The following example demonstrates querying using the Flux language.

Installation

Use the latest version:

.Net CLI
bash
dotnet add package InfluxDB.Client.Flux
Or when using Package Manager
bash
Install-Package InfluxDB.Client.Flux
…

Contributing

If you would like to contribute code you can do through GitHub by forking the repository and sending a pull request into the master branch.

License

The InfluxDB 2.x Clients are released under the MIT License.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#csharpfluxinfluxdatainfluxdb

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架