Skip to content

Commit

Permalink
fix(monitoring): add kiosk for automatic height calculation to work
Browse files Browse the repository at this point in the history
passing `height=-1` for automatic calculation of height, was broken
for a few releases, in this release it should work when `kisok` parameter
is also being passed
  • Loading branch information
fruch committed Aug 7, 2024
1 parent c20448e commit 59e1355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdcm/logcollector.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def get_grafana_screenshot(self, node, local_dst):
node.name))
LOGGER.debug("Get screenshot for url %s, save to %s", grafana_url, screenshot_path)
with requests.get(grafana_url, stream=True,
params=dict(width=dashboard.resolution[0], height=dashboard.resolution[1])) as response:
params=dict(width=dashboard.resolution[0], height=-1, kiosk='')) as response:
response.raise_for_status()
with open(screenshot_path, 'wb') as output_file:
for chunk in response.iter_content(chunk_size=8192):
Expand Down

0 comments on commit 59e1355

Please sign in to comment.