Storage usage Pie Chart (Free,Used)

Comments

3 comments

  • Official comment
    Avatar
    Ryan Turk

    Hi Jay,

    You were nearly there - the missing piece was the use of an aggregation operator to allow you to use visualisations. Try the following:

    _collector=Stg-StorageGrid-1
    | json "type" as StorageSpace
    | json "data.result[0].value[1]" as Bytes
    | Bytes / 1000 / 1000 / 1000 / 1000 as TeraBytes
    | withtime TeraBytes
    | most_recent(TeraBytes_withtime) as TeraBytes by StorageSpace
    | where StorageSpace in ("UsedSpace", "FreeSpace")
    | max(TeraBytes) by StorageSpace
    //EoQ

    I hope this helps!

    Comment actions Permalink
  • Avatar
    Jakub Ernestowicz

    Hey Ryan,

    Thank you, works great. 

    Regards,
    Jay

     

    0
    Comment actions Permalink
  • Avatar
    Jakub Ernestowicz

    Hi Ryan,

    BTW is there a chance to change somehow this 'max' to something else working with live mode dashboard. I was trying to play with 'most_recent' but with no luck.

    Regards
    Jay

    0
    Comment actions Permalink

Please sign in to leave a comment.