I wish to use the sin function in an Influxdb query. I believe that I would need to use the raw editing mode in order to be able to do this in Grafana. However, whenever I edit the query using the Text Edit Mode, any changes that I make to the query are not saved, and the query itself is not modified. Am I missing something?
What does it mean that query is not saved? Beginers expect that they can toogle between edit modes and query will be the same. But thatâs not a true. Always use only raw mode and save dashboard in the raw mode and it should be ok.
I canât figure out how to save the dashboard in raw mode. Any pointers are most welcome.
In the documentation found at https://grafana.com/docs/grafana/latest/datasources/influxdb/ under the section âText Editor Mode (RAW)â it is stated that
âYou can switch to raw query mode by clicking hamburger icon and then Switch editor mode
.â
I donât see the hamburger icon, what I see is the pencil icon which toggles text edit mode. I suppose that the documentation is outdated?
I believe that this is a bug in Grafana (I am using version v7.5.4 (615c153b3a)). Or at least it is very counter intuitive. So you click on the pencil icon and you enter the query raw mode. You make changes to the query and click on the apply button. Nothing happens. If you save the dashboard at this point the new query is saved properly, but you need to exit the dashboard and re-enter it to actually see the new query in action. Very misleading.
One way how to make the raw query run immediately (in the absence of a working Apply button) and without saving the new query is to click on the pencil to âEdit query nameâ. As soon as you do this (without the need to actually change the query name), the new raw query is executed properly. But it would be proper to have the Apply button do this.
As @jangaraj has reported, once you switch back to the default query mode, you lose all raw query edits, so be careful!
Iâd like to +1 this. The workflow is very deficient in a few ways.
- When toggling text edit mode, the existing query will be translated and presented in text. But after making changes in the text, and toggling the input mode again, the changes are lost.
- Thereâs no âexecuteâ button for the written query. Thereâs an apply button for the entirety of the dashboard config form, but thatâs a macroperation that doesnât allow to debug the query (itâs like having to save, close and reopen an excel document to recalculate all the cells containing a dynamic formula)
This topic was automatically closed after 365 days. New replies are no longer allowed.