Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[analyse] grafana unmarshal errors #241

Closed
AkashSirimanna opened this issue Feb 9, 2022 · 4 comments · Fixed by #248
Closed

[analyse] grafana unmarshal errors #241

AkashSirimanna opened this issue Feb 9, 2022 · 4 comments · Fixed by #248
Assignees
Labels
bug Something isn't working

Comments

@AkashSirimanna
Copy link

Problem

Running analyse grafana on version 0.10.7 of cortextool does not complete 100% successfully. The tool has difficulties trying to unmarshal panel json, most likely due to the tool not being compatible with Grafana 8.3.4.

The errors are along the lines of

unmarshal board: json: cannot unmarshal object into Go struct field Board.panels of type []struct { Type string "json:\"type,omitempty\""; Params []string "json:\"params,omitempty\"" }

OR

unmarshal board: json: cannot unmarshal number 4.8 into Go struct field Board.panels of type int ...
unmarshal board: json: cannot unmarshal object into Go struct field Board.panels of type string ...

Due to this, the metricsUsed list the analyse commands returns is incomplete.

@eamonryan eamonryan changed the title analyse grafana unmarshal errors [analyse] grafana unmarshal errors Mar 1, 2022
@eamonryan
Copy link
Member

Tagging @hjet per our discussion today - I'm seeing this issue also against Grafana 8.4.x

@hjet hjet added the bug Something isn't working label Mar 10, 2022
@hjet hjet self-assigned this Mar 10, 2022
@hjet
Copy link
Contributor

hjet commented Mar 10, 2022

Related: grafana-tools/sdk#190
And: grafana-tools/sdk#201

Temporary workaround (uses grafana-tools/sdk#190 branch of sdk):

git clone git@github.com:grafana/cortex-tools.git
git checkout temp-update-grafana-sdk
make cortextool

The binary will be at cmd/cortextool/cortextool. Move that to inside your path.

@gilreathjw
Copy link

This error appears to still be happening

@m4vr0x
Copy link

m4vr0x commented Jul 7, 2023

Indeed, still failing (using with Grafana v10.0.1 - 5a30620b85)

friedrichg pushed a commit to cortexproject/cortex-tools that referenced this issue Aug 1, 2023
* Update Helm release memcached to v5.15.5

Signed-off-by: Renovate Bot <bot@renovateapp.com>

* fix helm

Signed-off-by: ShuzZzle <niclas.schad@gmail.com>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: ShuzZzle <niclas.schad@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
5 participants