apache / apache/iotdb

[Feature request] Add COUNT NODE query on grafana visualization

Open
#11,874 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
115

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.

### Motivation

On grafana variables you have the choice to write an entire query without limitations has shown below:

![image](https://github.com/apache/iotdb/assets/126893672/b0685b32-ca26-4f68-8689-1dc78a904954)
(i use this query to count the number of cores of a virtual machine, each of which i take data from)

i can't use this syntax on the grafana visualization because i'm forced to use a SELECT statement:

![image](https://github.com/apache/iotdb/assets/126893672/2672512a-10cf-485f-bec6-8ad2c201f5fd)
![image](https://github.com/apache/iotdb/assets/126893672/b280f427-81df-4e30-a009-1f6ad2ea6ad2)

### Solution

Add another drop-down selection with a full-customized query editior that allows you to use all the language provided queries as in the grafana variables

### Alternatives

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start by comparing the Grafana visualization query editor with the unrestricted Grafana variables query input described in the issue. Define the full-query flow, including COUNT NODE, and verify that visualization no longer forces a SELECT statement while retaining the existing query behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
grafana
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.