ZenPacks and JSON API

performance query for multiple drives giving same value

  • 1.  performance query for multiple drives giving same value

    Posted 06-12-2018 09:11 AM
    Hello all,

    I am using a performance query to pull the free mb for the drives on one server.  The problem is that the return set has the same value for all drives and times.  Below is an example of a json query block that I use...

    { "start" : 1528002000000,
    "end" : 1528088399000,
    "series" : "true",
    "downsample" : "10m-avg",
    "tags" : {},
    "returnset" : "EXACT",
    "metrics" :
    [
    { "aggregator":"avg",
    "id":"<device name>:C",
    "metric":"<device name>/FreeMegabytes_FreeMegabytes",
    "tags":{ "key" : ["<device name>/os/filesystems/C"]},
    "name":"FreeMegabytes"
    },
    { "aggregator":"avg",
    "id":"<device name>:D",
    "metric":"<device name>/FreeMegabytes_FreeMegabytes",
    "tags":{ "key" : ["Devices/<device name>/os/filesystems/D"]},
    "name":"FreeMegabytes"
    }
    ]
    }

    This will return the same value for all timestamps.  But unexpectedly it returns that same value for all the drives.  If I run them separately in2 different queries, i get different results for the different drives.

    ------------------------------
    Gary Samek

    ------------------------------