Coder Social home page Coder Social logo

Comments (6)

chengshiwen avatar chengshiwen commented on July 25, 2024

目前适配 influxdb 2.x 的分支influxdb-v2 支持 flux 查询语法,主分支master 适配 influxdb 1.x,目前不支持,如果需要,我可以适配 flux

from influx-proxy.

lcwSeven avatar lcwSeven commented on July 25, 2024

使用influxdb-v2时 使用的是官方提供的flux-dsl Java Api
Flux.from("test") .range(-1L,ChronoUnit.DAYS) .filter(Restrictions.measurement().equal("measure"));
解析出的语句为:
from(bucket:"test") |> range(start:-1d) |> filter(fn: (r) => r["_measurement"] == "measure")

测试发现 r["_measurement"] 在influx-proxy中不能解析,要写成 r._measurement
希望大佬能够适配下官方的flux-dsl Api:https://github.com/influxdata/influxdb-client-java/tree/master/flux-dsl

from influx-proxy.

chengshiwen avatar chengshiwen commented on July 25, 2024

没注意到这种情况,我今晚修复下

from influx-proxy.

chengshiwen avatar chengshiwen commented on July 25, 2024

b201356 已经支持修复

新的编译版本如下:

from influx-proxy.

chengshiwen avatar chengshiwen commented on July 25, 2024

欢迎试用 2.5.10-preview 版本,支持 /api/v2 接口及 flux-dsl:

from influx-proxy.

chengshiwen avatar chengshiwen commented on July 25, 2024

@lcwSeven
v2.5.10 已经正式发布:https://github.com/chengshiwen/influx-proxy/releases/tag/v2.5.10
docker 镜像:https://hub.docker.com/r/chengshiwen/influx-proxy
docker 命令:docker pull chengshiwen/influx-proxy:2.5.10
helm chart:https://github.com/influxtsdb/helm-charts/tree/master/charts/influx-proxy

from influx-proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.