Hide confidential variables from Grafana viewer

Kun-Hung Tsai
Jul 16, 2021

Recently, I was trying to add a new variable to Grafana dashboard from Postgres SQL query. However, the query result was a confidential value (ex. API key) that I don’t want to expose to dashboard viewer like following.

Then I tried to use “Hide: Variable” option from variable configuration and limited the query to return only one result.

The one returned result will be default variable and will not appear in the dashboard. It’s not a perfect solution since it won’t work if we have more than two return result, but it definitely solve my problem.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Kun-Hung Tsai
Kun-Hung Tsai

No responses yet

Write a response