VMware Modern Apps Community
AbhishekSK
Hot Shot
Hot Shot
Jump to solution

Summing, but retaining individual metrics out of the total

I am using a Nagios metric which shows the total free space for a number of hosts on my network. All nodes have ~2TB of free space. This lots of lines (metrics) for each node to be present around the same areas on a chart that only reaches 2.2TB on the x-axis.

My TS query is as follows:
ts(wpc.diskdata.data, role=compute)

I can change my TS query to sum these metrics together, i.e.:

sum(ts(wpc.diskdata.data, role=compute), metrics)

The latter query gives me most of what I need:
- total free space is displayed on the X axis (several hundred TB)
- corresponding metric for total free space displayed along Y axis

However, I lose the individual metrics for each host and now I only get a total. I'm trying to retain the individual host info and have them stacked in separate lines out of the total free space on the X axis.
I'm wondering how one would get this data from Wavefront.

Thanks,

-- mickm

0 Kudos
1 Solution

Accepted Solutions
AbhishekSK
Hot Shot
Hot Shot
Jump to solution

I resolved this by using my original query:

ts(wpc.diskdata.data, role=compute)

Then for 'Chart Type' I selected 'Stacked Area'.

View solution in original post

0 Kudos
1 Reply
AbhishekSK
Hot Shot
Hot Shot
Jump to solution

I resolved this by using my original query:

ts(wpc.diskdata.data, role=compute)

Then for 'Chart Type' I selected 'Stacked Area'.

0 Kudos