-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement si and binary system for legendValue #490
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @spacefreak86 Thanks! |
Hi @deniszh |
@spacefreak86 : thank you! |
@deniszh the problem is that I have changed the format in which legend values are printed on the graph. The original format was like this: I have changed it to this format (also used before by Graphite-Web): The new format saves some space on the graph and in my opinion it also looks nicer. Based on your answer, I will switch back to the original format or I will modify the test accordingly. Thank you for looking into this. |
Hi @spacefreak86 |
Hi @deniszh |
Hi @deniszh |
@spacefreak86 : it's failed because of linter:
It doesn't say which file, but just format both -
and submit changes. |
@deniszh done, it was just two tabs on an empty line. |
Sometimes it is useful to print values (current, min, max, average) in the graph legend in human readable form.
Unfortunately, legendValue function of carbonapi is only able to print the raw values, because the systems "si" and "binary" are not implemented yet.
This PR implements the "si" and "binary" system for the legendValue function, it is currently running on my productive environment without any issues.
Please let me know if you have any questions or remarks.