Open cbartz opened 3 days ago
Thanks for the detailed report @cbartz!
In the upstream issue you linked it was said that both uid and title must be unique within a folder, but currently, as you point out, both name and uid of the System Resources
dashboard are the same.
Currently, we dedupe the dashboard filename, but nothing else.
The thing is, that the we should in fact only have one System Resources
dashboard on grafana's filesystem: we do not want the same dashboard to appear multiple times.
We should try to reproduce to see if a revision bump doesn't help. If one charm gets a dashboard update (and a revision bump), then we'd have two dashboards that differ in content but not in uid/title.
For example:
graph LR
ga1["agent1 (grafana-agent-k8s)"] --- grafana
ga2["agent2 (grafana-agent-k8s)"] --- grafana
ga3["agent3 (grafana-agent)"] --- grafana
Bug Description
We have a deployment where a
grafana-agent
and agrafana-agent-k8s
application are integrated with grafana:grafana-dashboard . Both provide dashboards with the title "System Resources" (https://github.com/canonical/grafana-agent-operator/blob/6eb1938895f5c31704917832d7d84ca9afaed799/src/grafana_dashboards/node-exporter-full.json#L23196 and https://github.com/canonical/grafana-agent-operator/blob/d77e500625a75318f16eff5fad7bb8878da141fc/src/grafana_dashboards/node-exporter-full.json#L23196). This leads to warnings likeand the provisioning of some other dashboards failed in our production environment (they did not appear in Grafana). Grafana seems to remove write access to the database in this case: https://github.com/grafana/grafana/issues/43530
Besides this, we also have an application deployed with three units, which provides two times the same dashboard in the relational data, which leads to
A
juju show unit grafana/0
gives:and
To Reproduce
Deploy a grafana instance and relate two different grafana agent deployments to. This should produce the log warnings.
Environment
grafana-k8s latest/edge rev 112 , juju 3.1.8
Relevant log output
Additional context
No response