question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

alert :the query was executed at an incorrect time

See original GitHub issue

WHERE $timeFilter AND $to -$from<3601 This is my query.When I use Alert, I test that the values from and to are correct.But the rawQuery value is problematic.

logs[0].data : from:1605667726607 to:1605667846607 WHERE timestamp >= toDateTime(1605667340) AND 1605667640 -1605667340<3601 You can see that the values from and to are not used. I think the value of from and to is correct.But rawQuery USES window time

My alert : condition: query(A, 2m, now)

ps: At first I used it directly, but a few days later I noticed that there were some slow queries in the SQL, and the time seemed to be used instead of the alert execution time.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
Slachcommented, Nov 24, 2020

@shizhenchina

maybe alert features in grafana is not enough flexible for your use case maybe https://github.com/balerter/balerter will enough for your requirements for flexibility?

0reactions
kkrrsqcommented, Feb 22, 2021

@shizhenchina Hello, I have the same problem.What’s the reason? And what do you mean by some limitations?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot query time-out errors - SQL Server
This article describes how to troubleshoot the time-out errors when you run slow-running queries.
Read more >
unified alerting: "Failed to evaluate queries and expressions ...
So far I solved this problem like this: Suppose there is a request, which returns queries longer than 3 minutes: SELECT query_start as...
Read more >
Reviewing query alerts - Amazon Redshift
To use the STL_ALERT_EVENT_LOG system table to identify and correct potential performance issues with your query, follow these steps: Run the following to ......
Read more >
Create NRQL alert conditions - New Relic Documentation
In NRQL queries, the TIMESERIES clause is used to return data as a time series broken out by a specified period of time....
Read more >
MySQL Incorrect datetime value: '0000-00-00 00:00:00'
I wasn't able to do this: UPDATE users SET created = NULL WHERE created = '0000-00-00 00:00:00'. (on MySQL 5.7.13). I kept getting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found