The variable is created. But when i try on grafana dashboard filter variable dropdown. It only shows some of the 3500 Client_Name values. It truncates and show maybe 800 maybe 1000 of variable values.
I also have same data in Influxdb 1.8 version. If i add this variable with influxql with 1.8 version db the variable is created and grafana is showing 3500 of all Client_Names. With below sql.
SHOW TAG VALUES FROM "SEL_VALUES" WITH KEY = "Client_Name"
We are planning to close influxdb 1.8 and continue with influxdb 2.7.4. But why the dashboard is not showing all of 3500 client names in the filter with Flux in influxdb 2.7.4 version?
There is also something strange. If i create variable with below command, it show alittle more client names. 1600-1800 client names. But again not displaying all 3500 client name values in grafana dashborad filter variable dropdown.
Why i cannot see all of 3500 client name values in the filter. If i run flux command in influxdb explorer script area. I can see all 3500 client names there. But cannot see in grafana filter.
If i create variable from influx 1.8 with influxql, i can see 3500 client names at variable creation page by preview of values section at bottom of page.
If i create variable from influx v2.7.4, i can only see 1000 client names at variable creation page by preview of values section at bottom of page.
Note : Influxdb 1.8 db and influxdb 2.7.4 db has same test data in databases. We are planning to pass to 2.7.4 version. But couldnt do it because of this limitation yet.
@cslmschema.tagValues has a default time range (-30d) to limit the time range queried (this can be a very heavy query). I’m guessing the other tag values exist outside of the default time range.
You can set a custom time range using the start and stop parameters. But again, this can be a very heavy query. Try this and see if it makes a difference:
Actually totally i have 20 days data total. So 3500 client names are in this 20 days data.
I tried -30d and -1y. Nothing changed. Still filter data is truncated with variables created with flux. Filter variables created with old version influxql doesnt have problem and gives 3500 client names in filter area.
@cslm I must have read your initial post too quickly, because I missed this detail:
This means something is being limited by Grafana. I think what may be happening is that Grafana is treating each unique tag value as a separate series. When you configure your InfluxDB data source in Grafana, there is a “Max series” setting that defaults to 1000. Try upping that to 4000 and see if it makes a difference.
But how can i search 3500 client names in one dashboard. What kind of filter design mechanism should i create on dashboard to filter and search all 3500 client names?
@cslm With the limit Grafana places on variable values, the only other thing I could think of would be to split the client names into groups. I’m not sure if Grafana lets you build dashboard variables that are dependent on other dashboard variables, but if so, you could do something like this:
In Grafana, define a custom variable that selects an alphabetical range and assigns that range to be used in a regular expression string. Let’s call this variable “CustomerGroup”
Then, define another variable (let’s call it Customer) that uses the selected value of the CustomerGroup variable (hopefully this is possible) to filter tag values. You can use the regexp.compile() function to compile the selected range string into a regular expression:
Normally with flux i cannot get more than 1000 variable values as dashboard variable filter.
But if i define 8000 variable values by creating custom variable on grafana manually, dashboard filter can search all 8000 values and bring in the selectbox.
So i have to use manuel custom variable in grafana.
Now my problem is updating this custom variable in certain time period. Probably everyday.
How can i update custom grafana variable value dynamically everyday.
A script will run and write new custom values seperated by “,” like this : “Server1,Server2,Server3,…,Server7998,Server7999,Server8000”
I need to fill below area with my scripts dynamically.