@felipefischmann what do the errors say? Can you hover over the red triangle when a query fails? Can you use your browser’s developer tools to see what is happening (maybe check the network tab while reproducing a failure)? Do you see anything interesting if you view the raw request and response using the inspect drawer on the panel dropdown?
There’s nothing too unusual about the query, I have however noticed that it is very long. I also tested with another panel which has 7 queries but only works with 6. This makes me wonder if there is a character limit for the panel query, is that a possibility?
FWIW I’ve experienced something like this with long Influx queries, where the GET query string ends up being too long. You can try switching the request method to POST (in the Influx datasource settings) and see if that helps.
The above isn’t an inherent Grafana limitation by the way; in our case it was happening due to a limit on the AWS CloudFront proxy running in front of Grafana (which has a limit of 8192 characters in the URL). I think Grafana’s limit is far higher than that.