Gauge Panel Issue with Range/Instant type

Hello, we are having strange issue, basicly we have gauge panels with has type of instant and they return below error:

status:500
statusText:"Internal Server Error"
data:Object
message:"Query data error"
traceID:"00000000000000000000000000000000"
config:Object
url:"api/ds/query"
method:"POST"
data:Object
requestId:"Q103"
retry:0
headers:Object
hideFromInspector:false
message:"Query error: 500 Internal Server Error"

But if change from instant to range, it works normal and takes latest value. Then I just switch back to instant and it continues to work normally with instant too. Bug?

Hi @aahmadzada,

Thanks for opening this post.

Please review the submission template and include more details:

  • What Grafana version and what operating system are you using?
  • What is your datasource?
  • What visualization panel you are using e.g. time-series, bar chart, histogram etc?
  • What are you trying to achieve?
  • How are you trying to achieve it?
  • What happened?
  • What did you expect to happen?
  • Can you copy/paste the configuration(s) that you are having problems with?
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
  • Did you follow any online instructions? If so, what is the URL?