Closed JenSeReal closed 1 month ago
Thanks for your error report. I could reproduce the problem and fixed it.
I will release a new version soon.
Issue is solved in 0.7.0. Let me know, if this case can be closed.
Works as expected. Thank you so much for your help and this project 👍
Describe the issue With Grafana you can specify semi-relative time ranges in your visualizations. This can be useful if you want to for example get the data of a business day. If you enter now/d+8h for From and To the time range is from 8:00AM yesterday to 8:00AM today. If these time ranges are used in the dashboard or specified in the template via :from: or :to: the dashboard won't be rendered and the application call will just run forever until you exit with Ctrl+C. When I switch the time range to :from: now-24h and :to: now everything works flawlessly.
Application call
Template file (if applicable)
:grafana_default_dashboard:
:grafana_default_from_timezone: Europe/Berlin
:from: now/d+8h :to: now/d+8h
[cols="1,1", frame=none, grid=none] |=== 2+|grafana_panel_image:2[render-height="400", render-width="1200"]
|grafana_panel_image:4[render-height="200"] |grafana_panel_image:5[render-height="200"]
|grafana_panel_image:7[render-height="200"] |grafana_panel_image:6[render-height="200"] |===
This configuration has been built with the configuration wizard.
grafana: default: host: http://localhost:3000 api_key:
grafana-reporter:
Specifies how often the reporter shall check for newer versions [number of days].
You may set check-for-updates to 0 to disable
check-for-updates: 1 report-class: GrafanaReporter::Asciidoctor::Report templates-folder: ./templates reports-folder: ./reports report-retention: 24 webservice-port: 8815
you may want to configure the following webhook callbacks to get informed on certain events
callbacks:
all:
- <>
- ...
on_before_create:
- <>
- ...
on_after_cancel:
- <>
- ...
on_after_finish:
- <>
- ...
default-document-attributes: imagesdir: ./images
feel free to add here additional asciidoctor document attributes which are applied to all your templates
I, [2024-05-14T15:55:47.566895 #40677] INFO -- : Report started at 2024-05-14 15:55:47 +0200 I, [2024-05-14T15:55:47.566920 #40677] INFO -- : You are running ruby-grafana-reporter version 0.6.6. D, [2024-05-14T15:55:47.789549 #40677] DEBUG -- : Document attributes: {"convert-backend"=>"pdf", "imagesdir"=>"./images", "var-template"=>""}
D, [2024-05-14T15:55:47.790306 #40677] DEBUG -- : Template ./templates/.adoc contains 5 calls of grafana reporter functions.
D, [2024-05-14T15:55:47.828220 #40677] DEBUG -- : Processing PanelImageInlineMacro (instance: default, dashboard: , panel: 2)
D, [2024-05-14T15:55:47.828444 #40677] DEBUG -- : Requesting http://localhost:3000/api/frontend/settings with '' and timeout '60'
D, [2024-05-14T15:55:47.839819 #40677] DEBUG -- : Received response #
D, [2024-05-14T15:55:47.840261 #40677] DEBUG -- : Requesting http://localhost:3000/api/dashboards/uid/ with '' and timeout '60'
D, [2024-05-14T15:55:47.846482 #40677] DEBUG -- : Received response #
^CI, [2024-05-14T16:03:48.625257 #40677] INFO -- : Report creation ended after 481 seconds with status 'finished'