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

Some sql queries are taking time to execute, cause of which none of the queries are scraping data in time. #413

Open
raspriyasharma opened this issue Feb 15, 2024 · 0 comments

Comments

@raspriyasharma
Copy link

I'm submitting a ...

issue:

What is the current behavior?

I have 22 metrices in my toml file in which most of them have the execution time of 1-2 seconds but 2 of the queries are taking around 30-40 seconds. Because of this when I'm accessing the port it keeps on loading and after some time when completed, I'm getting an error for those 2 sqls that Nometricsfoundwhileparsing=(MISSING).

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

What is the expected behavior?

Maybe you can provide an environment variable on how often it should access database.
The default time interval is 0s in your code. As for some queries I don't want continuous data to show and some interval will be fine.

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

My server is hosted on my companies server and protocol SSH version. I am using docker.

Version: X.Y.Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant