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

Minimum Sample By Interval #113

Open
1 task done
nicholas-a-guerra opened this issue Dec 10, 2024 · 1 comment
Open
1 task done

Minimum Sample By Interval #113

nicholas-a-guerra opened this issue Dec 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@nicholas-a-guerra
Copy link

To reproduce

When configuring this plugin, it would be very helpful to be able to set a minimal interval used by the sample by variable. As of now, if you you zoom into enough and it reduces the sample by interval smaller than the frequency of ingestion, then aggregate functions will likely have unintended consequences. This is can be shown in this use case below:

image
image

If you view the queries that the sample by variable creates, it shows that the first image corresponds to a 1s sample by and the second is a 500T. The data ingestion rate it only once per second though. And as such the aggregate calculations come back incorrect for 500T.

The postgres grafana plugin fixes this by having a minimum interval option in the configuration like below:

image

https://grafana.com/docs/grafana/latest/datasources/postgres/#min-time-interval

QuestDB version:

8.2.1

Grafana version:

11.3.0

Plugin version:

0.1.3

OS, in case of Docker specify Docker and the Host OS:

Docker | Ubuntu

Full Name:

Nick Guerra

Affiliation:

Kronus Engineering

Have you followed Linux, MacOs kernel configuration steps to increase Maximum open files and Maximum virtual memory areas limit?

  • Yes, I have

Additional context

No response

@nicholas-a-guerra nicholas-a-guerra added the bug Something isn't working label Dec 10, 2024
@javier
Copy link
Contributor

javier commented Dec 11, 2024

Thanks! Just a note that this is not a bug of the plugin, and that the postgresql config options goes at the connection level, in case we want to replicate it

@javier javier added enhancement New feature or request and removed bug Something isn't working labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants