Skip to content

pull & push with datasource CloudWatch breaks dashboards #75

@iptizer

Description

@iptizer

We have more going on, but I am restricting this PR to the essence. What I am describing here works perfectly for the datasource Prometheus. Also copy & paste from "json model" via WebUI seems to work fine. It seems that some options (default options or so) are not synced correctly.

Steps to reproduce:

  1. Create a new dashboard and add a metric that exists in CloudWatch.
  2. save & copy and paste "json model" to a file. before.json.txt
  3. Pull the dashboard to a json using grafana-sync, see README. Nothing special.
  4. Push the dashboard from the json using grafana-sync, see README. Nothing special.
  5. THE DASHBOARD IS BROKEN
  6. copy and paste "json model" to a file. after.json.txt

before.json.txt
after.json.txt

"Broken" is defined as: The panel just shows blank. See

after_dashboard

Also the Annotations seems to be duplicated.

after_annotations

Also some things have been removed when diffing.

before_after_diff

This can be "fixed" as follows:

  • Click on edit on panel.
  • Now "refresh dashboard".
  • Grafana seems to be doing something, as now, values start to appear.

Using Grafana v9.1.0. Deployed as part of prometheus-operator on k8s.

This could be an issue with Grafan itself, but could also be some "default value not sync"-optimization or so.

Would be great to get some insights, let me know where I can help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions