Closed sed-i closed 1 year ago
Hmm. Looking at https://github.com/canonical/grafana-k8s-operator/pull/116
@rbarry82 how would you recommend going about inject_dropdowns=False
for cos-config?
Keep dashboards_path
as-is but then, on relation-changed, call add_dashboard(inject_dropdowns=False)
for all files?
How about adding inject_dropdowns=True
to the GrafanaDashboardProvider constructor's kwargs?
It was added to _reinitialize_dashboard_data
because that is the explicit backdoor used by cos-config
. I would somewhat expect cos_config
to add the argument there rather than polluting the constructor with another arg which is only used "globally" by a single charm, maintained by our own team
Ah yes, _reinitialize_dashboard_data
. Thanks!
@rbarry, shall we publish-lib grafana-dashboard? On charmhub it's LIBPATCH 13 (before inject_dropdowns
) vs 16 in main.
I expect that it fell out of sync due to the publish-to-edge action failing. I synced and it's published and up to date as 16 now
Bug Description
Until recently, a dashboard coming via cos-config was working.
Now, with the new dropdown (or the new grafana 9?), there is a new drop down in which I must choose an application
As a result, the dashboard no longer works.
To Reproduce
Deploy the load test and open the
sre mock 2 panels - 6 lines and 6 log sources
dashboard in grafana.Environment
COS bundle from edge, on GCP.
Relevant log output
Additional context
No response