Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug + Feature Request] Zenoh REST plugin always return one measurement for influxdb #1515

Open
arsh09 opened this issue Oct 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@arsh09
Copy link

arsh09 commented Oct 6, 2024

Describe the bug

I have an InfluxDB running and its relevant plugin running on a Zenoh-router as well as a REST plugin.

From the influxdb-client, I can see that the key-expression has multiple rows for the series in the database. Unfortunately, when I run the following:

curl -g "http://<router-ip>:8000/test/**?_time[..]"

I only get the last timeseries row instead of all of the data. When setting the RUST_LOG=debug, and looking at the terminal output, I noticed the following SQL run on the influxdb:

Get all entries with Influx query: SELECT * FROM /^.*$/ ORDER BY time DESC LIMIT 1

Where 'limit 1' is limiting the output to 1. I do not find any documentation where the REST API can send the 'limit' in the query. I think adding a selector such as '_limit' similar to '_time' might be helpful.

To reproduce

  1. Start a router with influxdb and rest api
  2. Publish a few measurements via curl command
  3. Try to get all the measurements (it will return only the last one).

System info

Zenoh - zenohd v1.0.0-beta.4 built with rustc 1.75.0 (82e1608df 2023-12-21)
Influx - InfluxDB shell version: 1.6.7~rc0
System - Ubuntu 20.04 - Digital Ocean Droplet

@arsh09 arsh09 added the bug Something isn't working label Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant