Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically add info to welcome.json on boot #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HarmtH
Copy link

@HarmtH HarmtH commented Oct 14, 2024

Hi Martin,

For venus-grafana-deployer I would also like to add a link to the admin interface.

As you stated Grafana doesn't support dynamic info in text fields, so I worked around it.

(of course this doesn't work with the current examples/docker-compose.yaml, as the version needs to be updated first)

Fixes #20

fi

cp $GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH /tmp/welcome.json.tmpl
awk '{gsub("__WELCOME_TEXT__", ENVIRON["WELCOME_TEXT"]); print}' < /tmp/welcome.json.tmpl > $GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I chose this over a simple sed, so $WELCOME_TEXT can contain all characters.

@mman
Copy link
Collaborator

mman commented Oct 21, 2024

Great idea @HarmtH, let me please take a look at this when I finish the Influx Loader expiry implementation...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: include link to Admin UI on the Welcome panel.
2 participants