I’m using the latest version (9.1.7).
Am I crazy or there is no way to display only the prefix symbol such μ , m , k , M , G , T ,…etc
None of the available options seems to do that.
as example… I’m looking for a way to display value of 1 000 000 as 1 M in the panel, etc.
Perhaps one would look for it in here:
Standard option → Unit: Misc > Prefix Symbol
grant2
October 8, 2022, 11:08am
2
Welcome to the Grafana forum.
Did you try this?
BEFORE:
Standard option → Unit → Misc → Number:
AFTER:
Standard option → Unit → Misc → Short:
Yep I did and this is what’s being displayed.
While it’s supposed to display 7.49 P
Quadr for Quadrilion? It works, but that’s not really scientific.
A metric prefix is a unit prefix that precedes a basic unit of measure to indicate a multiple or submultiple of the unit. All metric prefixes used today are decadic. Each prefix has a unique symbol that is prepended to any unit symbol. The prefix kilo-, for example, may be added to gram to indicate multiplication by one thousand: one kilogram is equal to one thousand grams. The prefix milli-, likewise, may be added to metre to indicate division by one thousand; one millimetre is equal to one th...
raymalt
November 13, 2023, 6:09am
4
1 Like
raymalt
February 24, 2024, 5:00pm
5
FYI - This feature has now been merged and will be part of a future release. The unit option will be named “SI short”.
grafana:main
← raymalt:78022-unitless-si-prefixes
opened 08:04PM - 28 Dec 23 UTC
<!--
Thank you for sending a pull request! Here are some tips:
1. If this … is your first time, please read our contribution guide at https://github.com/grafana/grafana/blob/main/CONTRIBUTING.md
2. Ensure you include and run the appropriate tests as part of your Pull Request.
3. In a new feature or configuration option, an update to the documentation is necessary. Everything related to the documentation is under the docs folder in the root of the repository.
4. If the Pull Request is a work in progress, make use of GitHub's "Draft PR" feature and mark it as such.
5. If you can not merge your Pull Request due to a merge conflict, Rebase it. This gets it in sync with the main branch.
6. Name your PR as "<FeatureArea>: Describe your change", e.g. Alerting: Prevent race condition. If it's a fix or feature relevant for the changelog describe the user impact in the title. The PR title is used to auto-generate the changelog for issues marked with the "add to changelog" label.
7. If your PR content should be added to the What's New document for the next major or minor release, add the **add to what's new** label to your PR. Note that you should add this label to the main PR that introduces the feature; do not add this label to smaller PRs for the feature.
-->
**What is this feature?**
It adds a new unit under the Misc category called SI prefix, which converts unit-less number labels on the y axis to the SI prefix notation.
**Why do we need this feature?**
Add the possibility to have SI prefix for empty units, for example convert 10000 to 10 k. This is useful when plotting multiple parameters with similar, but not identical units. One example is AC power quantities (active, reactive, apparent power), whose units are W, VAr and VA. The idea is to use the unit-less SI prefixing to get a clean y axis labeling.
**Who is this feature for?**
Any user who wants the shortened notation of numbers accomplished by creating SI prefix when a unit is not necessary or possible on the y axis.
**Which issue(s) does this PR fix?**:
<!--
- Automatically closes linked issue when the Pull Request is merged.
Usage: "Fixes #<issue number>", or "Fixes (paste link of issue)"
-->
Fixes #78022
**Special notes for your reviewer:**
Please check that:
- [ ] It works as expected from a user's perspective.
- [ ] If this is a pre-GA feature, it is behind a feature toggle.
- [ ] The docs are updated, and if this is a [notable improvement](https://grafana.com/docs/writers-toolkit/writing-guide/contribute-release-notes/#how-to-determine-if-content-belongs-in-a-whats-new-document), it's added to our [What's New](https://grafana.com/docs/writers-toolkit/writing-guide/contribute-release-notes/) doc.
2 Likes
I’ve concluded this will be available in grafana 11 - the unit id is sishort
and its label is SI short
. My use case will be for measuing CPU use, where I’d like to see for example 400m to refer to 400 millicores.