When I run this query in the InfluxDB data explorer, it gives me a nice result, with each host on its own line. However, when I execute the same query in Grafana, I only see the first point in the graph for each host, so there is no line. In the query inspector, I can see that all the data is there and categorized by the respective hosts. Does anyone have an idea?
That’s pretty perplexing. I can only speculate that maybe one of these settings is affecting the results in Grafana. Maybe try changing some and see if it displays more than 1 point for each host.
The output still consists of a point per host. However, when I check the “Query inspector,” I can see the correct result in the table selector dropdown. I also noticed a dropdown selection called “series joined by time,” where I can see a single line result with additional columns for each host. I believe this is the desired output for the line graph. How can I skip this step and directly use the other tables to obtain the line graph result?
I got it working! Although I can’t pinpoint the exact reason, when I reduced the fields to the essentials, I achieved the desired result. I added |> keep(columns: ["_time", "_value", "host"]) to the mainQuery , and now it’s working.
thx for the attention!