jbirkett3
Contributor
Contributor

Metric Label Unit Remove

Jump to solution

Hi, 

I have a metric name called "Memory|Total Capacity" which obviously gives you the amount of Total memory allocated to a VM. The output is 8GB, 16GB, 32GB etc... 

Is there a way to remove the suffix GB, TB etc... I just want the number so it aids the process of when we are reporting etc.

Thanks

Jase

Labels (3)
0 Kudos
1 Solution

Accepted Solutions
jbirkett3
Contributor
Contributor

Its ok, I've figured it out. I can use a function called Super Metrics using the following formula:

{this.metric=config|hardware|memoryKB}/1024

That gives me a figure I can use without the suffix.

 

View solution in original post

Tags (1)
0 Kudos
1 Reply
jbirkett3
Contributor
Contributor

Its ok, I've figured it out. I can use a function called Super Metrics using the following formula:

{this.metric=config|hardware|memoryKB}/1024

That gives me a figure I can use without the suffix.

 

View solution in original post

Tags (1)
0 Kudos