IzakMarais / reporter

Service that generates a PDF report from a Grafana dashboard
Apache License 2.0
947 stars 307 forks source link

option grid-layout doesn't work with docker images #310

Open antoineNRB opened 2 years ago

antoineNRB commented 2 years ago

When using the option -grid-layout=1 with the docker image, no graph are shown.

Without the option, the sequential report works fine.

The logs says Populated dashboard datastructure: {Title:JVM (Micrometer) Description:Dashboard for Micrometer instrumented applications (Java, Spring Boot, Micronaut) VariableValues: Rows:[{Id:0 Showtitle:true Title:Quick Facts Panels:[{Id:63 Type:singlestat Title:Uptime GridPos:{H:0 W:0 X:0 Y:0}} ...

with the GridPos not looking ok

and when downloading the graph images

2021/09/16 09:48:45 Downloading image 63 http://host.docker.internal:3000/render/d-solo/YsBS41V7k/_?from=now-20m&height=0&panelId=63&theme=light&to=now&width=0

with height and width being at 0

Running the reporter locally with the same dashboard and the option -grid-layout=1 workfine.

antoineNRB commented 2 years ago

OK I found why, I was targeting an other dashboard with my docker app, which happened to be v4, and seems to not work with grid layout, with a v5 dashboard, it's all good 👍