NetApp / harvest

Open-metrics endpoint for ONTAP and StorageGRID
https://netapp.github.io/harvest/latest
Apache License 2.0
141 stars 36 forks source link

how to compute metric volume_size from GB to TB #3013

Closed leejshades closed 3 weeks ago

leejshades commented 3 weeks ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] compute metric volume_size from bytes to TB image

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

Hardikl commented 3 weeks ago

@leejshades

There are multiple ways to do this conversion, conversion in Prometheus and Grafana would be quite easy. As you are interested in Harvest side, This would be the way we can achieve the same in Harvest side.

Current volume_size value of one of the volume:

image image image

Created new metric in template as size_TB in compute_metric as mentioned in Doc Detail

image

size_TB Result:

image