We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Describe the bug The regexp check in --left-axis-format doesn't allow to print SI metrics with units like kWh or in that case krpm
kWh
krpm
%5.1lf%Srpm
while GPRINT:sensor:MIN:%5.1lf%Srpm does work like I expect.
GPRINT:sensor:MIN:%5.1lf%Srpm
To Reproduce RRDTool Command
rrdtool graph /tmp/wQnE1vf6MRRW4HkB --start 1731938400 --end 1732025700 --width 1707 --height 988 --imgformat=SVG --font LEGEND:8:DejaVuSansMono --font AXIS:7:DejaVuSansMono --font-render-mode normal -c FONT\#000000 -c BACK\#EEEEEE00 -c SHADEA\#EEEEEE00 -c SHADEB\#EEEEEE00 -c CANVAS\#FFFFFF00 -c GRID\#a5a5a5 -c MGRID\#FF9999 -c FRAME\#5e5e5e -c ARROW\#5e5e5e --alt-autoscale-max --rigid --slope-mode --vertical-label "Fanspeed" --left-axis-format "%5.1lF%Srpm" DEF:sensor=xxx/sensor-fanspeed-ipmi-Fan1A.rrd:sensor:AVERAGE DEF:sensor_max=xxx/sensor-fanspeed-ipmi-Fan1A.rrd:sensor:MAX DEF:sensor_min=xxx/sensor-fanspeed-ipmi-Fan1A.rrd:sensor:MIN AREA:sensor_max\#c5c5c5 AREA:sensor_min\#ffffffff COMMENT:"Alert tresholds\\:" LINE1.5:600\#00008b:"low = 600rpm":dashes LINE1.5:960\#005bdf:"warn low = 960rpm":dashes COMMENT:"\\n" COMMENT:" Now Avg Min Max\\n" LINE2:sensor\#000000:"Fan1A " GPRINT:sensor:LAST:%5.1lf%Srpm GPRINT:sensor:AVERAGE:%5.1lf%Srpm GPRINT:sensor:MIN:%5.1lf%Srpm GPRINT:sensor:MAX:%5.1lf%Srpm\\l --daemon unix:/var/run/rrdcached.sock
RRDTool Output
ERROR: invalid format string '%5.1lF%Srpm' (should match '^(?:[^%]+|%%)*%[-+ 0#]?[0-9]*(?:[.][0-9]+)?l[eEfFgG](?:[^%]+|%%)*$')
Expected behavior A clear and concise description of what you expected to happen.
Screenshots I like to see the SI metrics with included units also in the Y-Axis
Additional context Tested with RRDTool 1.7.2 The GPRINT %S issue was part of the release notes there
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The regexp check in --left-axis-format doesn't allow to print SI metrics with units like
kWh
or in that casekrpm
%5.1lf%Srpm
while
GPRINT:sensor:MIN:%5.1lf%Srpm
does work like I expect.To Reproduce
RRDTool Command
RRDTool Output
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
![Screenshot from 2024-11-19 15-29-41](https://private-user-images.githubusercontent.com/11366337/387696512-b99e02e2-d044-4d2d-99da-0a11bb666833.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxODExNTAsIm5iZiI6MTczOTE4MDg1MCwicGF0aCI6Ii8xMTM2NjMzNy8zODc2OTY1MTItYjk5ZTAyZTItZDA0NC00ZDJkLTk5ZGEtMGExMWJiNjY2ODMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA5NDczMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNjMTNmMGQ3MjYxNmMwMDk0M2IzNmJiOGNjZTBlYTExNDM3MzE5OGFhNzY3OTEyM2FlMmZlNjEwYWViMmM5YzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.B1XDbtkHk9fSO1LR932TWuhJs3Ov-NE_YUkW0lZI7fo)
I like to see the SI metrics with included units also in the Y-Axis
Additional context
Tested with RRDTool 1.7.2
The GPRINT %S issue was part of the release notes there
The text was updated successfully, but these errors were encountered: