Comments (22)
Sorry for my delay.
It still doesn't work.
Version 1.4.1
2021/08/11 08:36:27 unmarshal board: json: cannot unmarshal object into Go struct field TemplateVar.templating.list.query of type string for db/kubernetes-networking-workload
2021/08/11 08:36:27 unmarshal board: json: cannot unmarshal object into Go struct field TemplateVar.templating.list.query of type string for db/kubernetes-persistent-volumes
2021/08/11 08:36:27 unmarshal board: json: cannot unmarshal object into Go struct field TemplateVar.templating.list.query of type string for db/kubernetes-pods
2021/08/11 08:36:27 unmarshal board: json: cannot unmarshal object into Go struct field TemplateVar.templating.list.query of type string for db/kubernetes-statefulsets
2021/08/11 08:36:27 unmarshal board: json: cannot unmarshal object into Go struct field TemplateVar.templating.list.query of type string for db/loki-quick-search
from grafana-sync.
This PR was merged yesterday. Potentially it should resolve issue. Will update code late today
from grafana-sync.
Aug 26 09:22:46 bastion teleport[6630]: SQLite configuration is invalid: failed to unmarshal map[data_dir:/var/lib/teleport path:/var/lib/teleport/backend sync:false] into **lite.Config, json: cannot un>
Aug 26 09:22:46 bastion teleport[6630]: "\tjson: cannot unmarshal bool into Go struct field Config.sync of type string"
config item :
storage:
type: sqlite
sync: OFF
when adding quote to OFF it's working :
storage:
type: sqlite
sync: "OFF"
from grafana-sync.
similar issue with grafana-sync 1.7.0 and grafana 10.2.3
2024/02/16 11:56:31 unmarshal board: json: cannot unmarshal object into Go struct field Target.targets.groupBy of type string (panel "CPU usage/s for $instance" of type "graph") (panel "Resources" of type "row") for db/alertmanager
2024/02/16 11:56:32 unmarshal board: json: cannot unmarshal object into Go struct field Target.targets.tags of type []struct { Key string "json:\"key,omitempty\""; Operator string "json:\"operator,omitempty\""; Value string "json:\"value,omitempty\"" } (panel "Global Samples Sent by Remote" of type "timeseries") for db/prometheus-remote-storage-stats
from grafana-sync.
Sorry, there is no fix yet. Looks like grafana sdk is no longer developed. I don't see any PR accepted in sdk repo. Don't have fix right now
from grafana-sync.
Hello, thank you for reporting an issue. I will check why some dashboards are not synced
from grafana-sync.
I found that if I remove grafana variables namespace
and pod
in loki-quick-search dashboard - I can pull this dashboard.
from grafana-sync.
I think that issue with fixed in the latest version of sdk. I Will try to update SDK and test
from grafana-sync.
@ingvarch can you try this version 1.1.1?
from grafana-sync.
Yes, I tried version 1.1.1 but the same problem
2021/03/05 13:27:41 unmarshal board: json: cannot unmarshal object into Go struct field TemplateVar.templating.list.query of type string for db/kubernetes-compute-resources-workload
2021/03/05 13:27:42 unmarshal board: json: cannot unmarshal number into Go struct field Board.panels of type string for db/kubernetes-networking-namespace-pods
2021/03/05 13:27:42 unmarshal board: json: cannot unmarshal number into Go struct field Board.panels of type string for db/kubernetes-networking-pod
2021/03/05 13:27:43 unmarshal board: json: cannot unmarshal object into Go struct field TemplateVar.templating.list.query of type string for db/loki-quick-search
from grafana-sync.
I opened issue for grafana sdk. Will try to look at it by myself once I have free time
from grafana-sync.
Hi @mpostument ,
i get the same Problem with one of my dashboards. How could this error be debuged? Is there a verbose oder debug function?
I use :
Grafana v7.3.7 (1e261642f4)
Grafana-sync - 1.2.0
2021/03/08 14:15:49 unmarshal board: json: cannot unmarshal number into Go struct field Board.panels of type string for db/aufteilung-Dashboard
from grafana-sync.
This this sdk issue. I will check if I can get additional information from sdk itself
from grafana-sync.
Hello, @mpostument
Any updates ?
from grafana-sync.
Try if this version works https://github.com/mpostument/grafana-sync/releases/tag/1.4.1
from grafana-sync.
same/similar issue:
2022/06/13 16:15:19 unmarshal board: json: cannot unmarshal number into Go struct field FieldConfigCustom.fieldConfig.defaults.custom.spanNulls of type bool (panel "$deployment" of type "timeseries") for db/deployment-network-io
from grafana-sync.
Please try this version https://github.com/mpostument/grafana-sync/releases/tag/1.4.8
It includes a new version of grafana SDK which may solve this issue
from grafana-sync.
I tried the most recent 1.4.8 release and I am getting these errors:
2022/07/29 11:18:16 unmarshal board: json: cannot unmarshal object into Go struct field Target.targets.group of type []struct { Type string "json:\"type,omitempty\""; Params []string "json:\"params,omitempty\"" } (panel "Metric" of type "graph") for db/aws-cloudwatch-browser
2022/07/29 11:18:16 unmarshal board: json: cannot unmarshal object into Go struct field Target.targets.group of type []struct { Type string "json:\"type,omitempty\""; Params []string "json:\"params,omitempty\"" } (panel "CPUUtilization" of type "graph") for db/aws-ec2
2022/07/29 11:18:16 unmarshal board: json: cannot unmarshal object into Go struct field Target.targets.group of type []struct { Type string "json:\"type,omitempty\""; Params []string "json:\"params,omitempty\"" } (panel "RequestCount / Latency" of type "graph") for db/aws-elb-classic-load-balancer
2022/07/29 11:18:16 unmarshal board: json: cannot unmarshal object into Go struct field Target.targets.group of type []struct { Type string "json:\"type,omitempty\""; Params []string "json:\"params,omitempty\"" } (panel "Healthy / Unhealthy Hosts Count" of type "graph") for db/aws-network-load-balancer-nlb
2022/07/29 11:18:16 unmarshal board: json: cannot unmarshal object into Go struct field Target.targets.group of type []struct { Type string "json:\"type,omitempty\""; Params []string "json:\"params,omitempty\"" } (panel "CPUUtilization/FailedSQLServerAgentJobsCount" of type "graph") for db/aws-rds
The errors looks somewhat different so maybe progress?
from grafana-sync.
Running 1.4.10, experiencing the same issue.
from grafana-sync.
I am having a similar problem with 1.7.0:
2024/02/14 11:51:44 unmarshal board: json: cannot unmarshal string into Go struct field Target.targets.groupBy of type []string (panel "Max Memory Usage (last 15m)" of type "bargauge") for db/gitlab-runners-metrics
Here is a JSON export of the dashboard in question: gitlab-runners-metrics.json
from grafana-sync.
@mpostument is there a chance to take a look into my comment
from grafana-sync.
@mpostument do you think that the grafana sdk is replaced with https://github.com/grafana/grafana-plugin-sdk-go or it's a different thing?
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
- 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
- pull & push with datasource CloudWatch breaks dashboards HOT 4
- 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.