Comments (4)
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.
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.
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.
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 Model
in 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)
- Sync specific dashboards HOT 3
- Work with ServiceAccounts bearer tokens in place of API Keys HOT 5
- Missing `--folderId` option? HOT 2
- Docker image for grafana-sync HOT 4
- Connect to HTTPS encrypted source not working HOT 6
- Support for basic auth HOT 1
- Dashboard extraction failures do not result in a failure (non-zero) exit code HOT 7
- Transformations are lost during import/export HOT 6
- Document official docker image HOT 2
- Error when syncing: cannot unmarshal object into Go struct field Board.panels HOT 8
- cannot unmarshal number into Go struct field HOT 22
- Recursive directory push HOT 1
- feature request: Add darvin_arm64 as architecture to output artifacts of this github project (executable binary) HOT 2
- [feature request] support pulling and pushing alerts HOT 2
- Support grafana-sync push-dashboards with the same folder HOT 3
- Allow to specify the user when running the docker HOT 1
- version misconfiguration HOT 2
- Problem with pull/push dashoards with library-panels HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafana-sync.