Skip to content

addpanel method in grafana wrapper - #91

Open
isabelfaulds wants to merge 1 commit into
SCE-Development:masterfrom
isabelfaulds:grafana-wrapper-addpanel
Open

addpanel method in grafana wrapper#91
isabelfaulds wants to merge 1 commit into
SCE-Development:masterfrom
isabelfaulds:grafana-wrapper-addpanel

Conversation

@isabelfaulds

@isabelfauldsisabelfaulds commented Jan 13, 2026

Copy link
Copy Markdown

Changes

Grafana Wrapper has AddPanel currently (which would add to row if defined, else panels). These updates add AddPanelToRow. No changes were needed for current dashboards. This makes it easier to switch back and forth between rows of multiple panels & stand alone panels.

Test Example Before Changes

Also if AddPanel() is used first, and Addrow() AddPanel() later then the initial AddPanels() might not get shown. This update prevents that from happening.
For example,
image

Test Example After Changes

After changes the gauge chart is no longer hidden and CPU Usage isn't placed into same row
image

SSH Tunnel Health Example After Changes

image
  • Other tested dashboards, like SSH Tunnel Health, not impacted

@isabelfaulds
isabelfauldsforce-pushed the grafana-wrapper-addpanel branch from e13e5c1 to fd49949CompareJanuary 15, 2026 20:28
@isabelfaulds

Copy link
Copy Markdown
Author

Test Example Dashboard Script After Changes
example.dashboard.py

@isabelfaulds

Copy link
Copy Markdown
Author

Test Example Dashboard Script Before Changes

example.dashboard.py

Comment threadgrafana/provisioning/dashboards/wrapper.py Outdated
Comment threadgrafana/provisioning/dashboards/wrapper.py Outdated
Sign up for freeto 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.

2 participants

@isabelfaulds@luuisabelle