I have a grafana dashboard that have a variable namespace, my datasource is Loki. I use this query to get list of namespaces: label_values(namespace), it works well and results are like name1, name2, name3, name4, ..., nameN . but in my dashboard I don't want to see name2 and name4, is there anyway to exclude this 2 name from variable list?
Exclude some variables in Grafana
282 Views Asked by SMA At
1
There are 1 best solutions below
Related Questions in GRAFANA
- Creating and "Relating" variables with eachother, with tags from influxdb measurement on Grafana 10
- Creating variables on grafana version 10 from influxdb v2.7 fields
- Can't use panel with transformation as source panel
- Filtering for the Most Recent Log Entry Per System in Loki Over a Time Range
- K6 scenarios to generate specific request per second rate
- Data visualization on Grafana dashboard
- How to match a static list of system names against logs in Loki/Grafana to find inactive systems?
- sqlite error when migrating data from sqlite3 to postgresql using pgloader
- How can I collect metrics from a Node.js application running in a Kubernetes cluster to monitor HTTP requests with status codes 5xx or 4xx?
- KQL Query to filter Message based on Grafana Variable
- calculating availability of node using SysUpTime.0 variable collcted in prometheus and exposing to grafana
- Grafana error: function "humanize" not defined
- Loki on ecs crashes when cleaning up chunks
- SSO to Grafana embeded in iframe
- Plotly in grafana, avoid clashing plot and legend
Related Questions in GRAFANA-LOKI
- Filtering for the Most Recent Log Entry Per System in Loki Over a Time Range
- How to match a static list of system names against logs in Loki/Grafana to find inactive systems?
- How to have multiple rules file on Loki (Kubernetes)?
- Loki on ecs crashes when cleaning up chunks
- Unable to fetch alert rules. Is the Prometheus data source properly configured?
- Using Grafana flow agent - how do I add a custom label to logs being sent to Loki in river format
- Grouping like errors from Loki ineffective due to variables
- How to configure Grafana alerts with Loki
- otel-collector doesn't parse json logs
- Loki - how to filter on second field and expand context automatically
- How to handle dynamic values in request_uri from nginx access logs
- Extract data from Prometheus and Loki with No Internet Connection
- What's difference between "Total request time" and "Summary: exec time" in Grafana Query inspector?
- How to extract timestamp from log itself in Loki
- Grafana loki higher data is not getting displayed on my loki dashboard above 200mb logs
Related Questions in GRAFANA-VARIABLE
- Creating and "Relating" variables with eachother, with tags from influxdb measurement on Grafana 10
- Creating variables on grafana version 10 from influxdb v2.7 fields
- Filtering for the Most Recent Log Entry Per System in Loki Over a Time Range
- How to match a static list of system names against logs in Loki/Grafana to find inactive systems?
- Variable in "field from calculation"
- How to handle a Variable containg a NULL / None Value in grafana?
- receiving: ERROR: more than one row returned by a subquery used as an expression
- Grafana - How to Avoid Duplicate Dashboards When Using Different Variable Values
- How to extract timestamp from log itself in Loki
- PromQL if/else-like expression based on value of Grafana query variable
- Not able to change timeSeries column name to "current" in grafana v10.2.3
- How to filter via variable for substring in postgresql data source for grafana dashboard?
- grafana variable regex : grouping for name and value
- how do i pass a list of variable values to a SQL statement in a postgres dblink function?
- Grafana link variables together
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can filter variables with regex.
In your case regex will look like this:
Demo and details for that regex can be seen here.
In short, this is a regex that matches (and captures into group #1) anything (
.+), unless beginning of the string is immediately followed by one ofname2orname4and end of string after that.More details on matching everything except something specific here.