html rendering
Describe the bug When generating html, incorrect rendering occurs
To Reproduce Steps to reproduce the behavior: - name: krr image: robustadev/krr:v1.23.0 command: - "/bin/bash" - "-c" - "while true; do /usr/local/bin/python krr.py simple --prometheus-url http://prometheus:9090 --allow-hpa --formatter html --fileoutput /shared/report.html -q; done"
Expected behavior Correct table generation.
Screenshots
Are you interested in contributing a fix for this? No
Desktop (please complete the following information):
- OS: image krr
- Browser chrome
- Version 136.0.7103.114
Additional context Add any other context about the problem here.
in the video at 20:38 the same problem, tell me why it doesn't work the first time? https://www.youtube.com/watch?v=DKiso9i5ctk&t=713s
the html formatted was created with [1.17.0] with docker.io/robustadev/krr:v1.23.0 the table width is not correct and the --width parameter seems to be ignored
ok . I solved it with the COLUMNS variable in the container
Hi @jorgelon, thank you! If I understand correctly, you're saying that --widthdoes not work, but COLUMNS does?
I wonder if there is some difference between running locally in a proper terminal vs in a headless container.
Hi @jorgelon, thank you! If I understand correctly, you're saying that
--widthdoes not work, but COLUMNS does? I wonder if there is some difference between running locally in a proper terminal vs in a headless container.
Yep. At least with the html format, COLUMNS did the trick. Try to get the $COLUMNS variable from both places...
Got it, thanks.
ok . I solved it with the COLUMNS variable in the container
Hi, could you please show how to use COLUMNS variables, I face this problem and cannot find COLUMNS variable 🥲
ok . I solved it with the COLUMNS variable in the container
Hi, could you please show how to use COLUMNS variables, I face this problem and cannot find COLUMNS variable 🥲
I am using krr in a container. I simply added the COLUMNS variabled under "env" in the definition of the krr container with the desired value
ok . I solved it with the COLUMNS variable in the container
Hi, could you please show how to use COLUMNS variables, I face this problem and cannot find COLUMNS variable 🥲
I am using krr in a container. I simply added the COLUMNS variabled under "env" in the definition of the krr container with the desired value
ah, thank you, this environment from rich library
https://rich.readthedocs.io/en/latest/console.html#environment-variables
If anyone looking for envvar example:
COLUMNS: 250
(max 250 columns rendered in console)
PS. This PR seems to fix the issue soon https://github.com/robusta-dev/krr/pull/463