Git Product home page Git Product logo

Comments (4)

mpostument avatar mpostument commented on May 29, 2024 1

Yes, it may be that not all values are pushed/pull when doing it with sdk for cloud watch data source. I will try to take a look once i have a chance but not able to give any ETA right now

from grafana-sync.

mpostument avatar mpostument commented on May 29, 2024

Did you have the same issue on grafana 8? Not sure if grafana SDK is supporting grafana 9. Maybe this is the issue

from grafana-sync.

iptizer avatar iptizer commented on May 29, 2024

I did a downgrade to Grafana 8.3.11 (changed image and restart deployment). This shows the same problems.

From the code I see no specific things done. So maybe this is an issue with the CloudWatch datasource. What do you think would be a good approach to tackle this?

from grafana-sync.

iptizer avatar iptizer commented on May 29, 2024

I did some further debugging. I made some findings that I would like to explain here.

The json pulled by grafana-sync and when clicking JSON Modelin the Grafana UI differ. The JSON in the WebUI seems to be longer (xx lines vs 1379 lines). One guess could be, that default values are ignored or sth.
I am wrangling the jsons with the following command cat ${i}_tmp | jq -S . > ${i} to get a diff-able json. This shows e.g. the following diff:

❯ git diff dashboards/status.json | cat
diff --git a/dashboards/status.json b/dashboards/status.json
index c2aaa5b..5772933 100644
--- a/dashboards/status.json
+++ b/dashboards/status.json
@@ -2,34 +2,31 @@
   "annotations": {
     "list": [
       {
+        "builtIn": 1,
         "datasource": {
           "type": "grafana",
           "uid": "-- Grafana --"
         },
         "enable": true,
-        "expr": "",
+        "hide": true,
         "iconColor": "rgba(0, 211, 255, 1)",
-        "iconSize": 0,
-        "lineColor": "",
         "name": "Annotations & Alerts",
-        "query": "",
-        "showLine": false,
-        "step": "",
-        "tagKeys": "",
-        "tags": null,
-        "tagsField": "",
-        "textField": "",
-        "textFormat": "",
-        "titleFormat": "",
+        "target": {
+          "limit": 100,
+          "matchAny": false,
+          "tags": [],
+          "type": "dashboard"
+        },
         "type": "dashboard"
       }
     ]
   },
   "editable": true,
+  "fiscalYearStartMonth": 0,
   "graphTooltip": 1,
-  "hideControls": false,
+  "id": 422,
   "links": [],
-  "originalTitle": "",
+  "liveNow": false,
   "panels": [
     {
       "collapsed": false,
@@ -43,10 +40,8 @@
       },
       "id": 23,
       "isNew": false,
-      "panels": null,
       "span": 0,
       "title": "Health",
-      "transparent": false,
       "type": "row"
     },
     {
@@ -62,6 +57,9 @@
             "mode": "palette-classic"
           },
           "custom": {
+            "axisCenteredZero": false,
+            "axisColorMode": "text",
+            "axisLabel": "",
             "axisPlacement": "auto",
             "barAlignment": 0,
             "drawStyle": "line",
@@ -91,6 +89,7 @@
               "mode": "off"
             }
           },
+          "mappings": [],
           "thresholds": {
             "mode": "absolute",
             "steps": [
@@ -105,7 +104,8 @@
             ]
           },
           "unit": ""
-        }
+        },
+        "overrides": []
[.....]

When manually pulling the JSON via WebUI. Then pushing it with grafana-sync, it seems that again the same key-value pairs are lost.

assumption)

Can it be that some values are "forgotten" by the sdk used?

One way to check would be to compare grafana-sync result with a manual query via the rest API of Grafana.

from grafana-sync.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.