Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upMisleading help text for storage.tsdb.retention.size #5142
Comments
simonpasquier
added
kind/bug
component/config
labels
Jan 28, 2019
This comment has been minimized.
This comment has been minimized.
hphde
commented
Jan 29, 2019
|
Mh. Worked for me though because it explicitly lists supported units and obviously |
This comment has been minimized.
This comment has been minimized.
|
@hphde bytes are specified as the base unit in the previous sentence and most tools assume you're providing that value directly unless otherwise specified. For example,
Perhaps that's really an argument saying that “unit” is the wrong term — the GNU utilities generally use “multiplicative suffix”:
https://www.gnu.org/software/coreutils/manual/html_node/split-invocation.html
https://www.gnu.org/software/coreutils/manual/html_node/Block-size.html#Block-size |
This comment has been minimized.
This comment has been minimized.
|
Ran into the same issue. Definitely |
acdha commentedJan 28, 2019
•
edited
I installed 2.7.0 on a test server and ran into one point of confusion:
The help text for
--storage.tsdb.retention.sizesays this:I interpreted that to mean that it followed the common convention of accepting a number as bytes while allowing units as a shortcut for readability. What it actually means is that you must specify one of the units or get an error like this:
It would be nice if it either defaulted to bytes or the wording was something like “Limit the maximum size of block storage. Specify the unit suffix using one of: KB, MB, GB, TB, PB.” to make it obvious that it's not optional.