SOLVED

Are horizontal bar graphs possible in Log Analytics/Azure monitor?

%3CLINGO-SUB%20id%3D%22lingo-sub-1555247%22%20slang%3D%22en-US%22%3ERe%3A%20Are%20horizontal%20bar%20graphs%20possible%20in%20Log%20Analytics%2FAzure%20monitor%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1555247%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F741656%22%20target%3D%22_blank%22%3E%40Jhilene%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E-ERR%3AREF-NOT-FOUND-Go%20to%20Log%20Analytics%20and%20run%20query%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-cpp%22%3E%3CCODE%3EInsightsMetrics%0A%7C%20where%20Name%20%3D%3D%20%22FreeSpaceMB%22%0Aand%20TimeGenerated%20%26gt%3B%20ago(10m)%0A%7C%20render%20barchart%20kind%3Dstacked%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CDIV%20id%3D%22tinyMceEditorClive%20Watson_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-explorer%2Fkusto%2Fquery%2Frenderoperator%3Fpivots%3Dazuremonitor%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-explorer%2Fkusto%2Fquery%2Frenderoperator%3Fpivots%3Dazuremonitor%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Annotation%202020-07-30%20095107.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208965i5F26E41321E3A1A1%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Annotation%202020-07-30%20095107.jpg%22%20alt%3D%22Annotation%202020-07-30%20095107.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EA%20better%20example%20would%20be%20(please%20adapt)%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-cpp%22%3E%3CCODE%3EInsightsMetrics%0A%7C%20where%20Name%20%3D%3D%20%22FreeSpaceMB%22%0Aand%20TimeGenerated%20%26gt%3B%20ago(10m)%0A%7C%20summarize%20sum(Val)%20by%20Computer%0A%7C%20render%20barchart%20kind%3Dstacked%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1555612%22%20slang%3D%22en-US%22%3ERe%3A%20Are%20horizontal%20bar%20graphs%20possible%20in%20Log%20Analytics%2FAzure%20monitor%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1555612%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239477%22%20target%3D%22_blank%22%3E%40Clive%20Watson%3C%2FA%3E%26nbsp%3BThank%20you%20soooo%20much!%20This%20really%20helped.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1562793%22%20slang%3D%22en-US%22%3ERe%3A%20Are%20horizontal%20bar%20graphs%20possible%20in%20Log%20Analytics%2FAzure%20monitor%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1562793%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F741656%22%20target%3D%22_blank%22%3E%40Jhilene%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20full%20documentation%20on%20rendering%20options%20see%20this%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-explorer%2Fkusto%2Fquery%2Frenderoperator%3Fpivots%3Dazuremonitor%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-explorer%2Fkusto%2Fquery%2Frenderoperator%3Fpivots%3Dazuremonitor%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%2C%3C%2FP%3E%0A%3CP%3EMeir%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1568157%22%20slang%3D%22en-US%22%3ERe%3A%20Are%20horizontal%20bar%20graphs%20possible%20in%20Log%20Analytics%2FAzure%20monitor%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1568157%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F84435%22%20target%3D%22_blank%22%3E%40Meir%20Mendelovich%3C%2FA%3E%26nbsp%3BThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1554265%22%20slang%3D%22en-US%22%3EAre%20horizontal%20bar%20graphs%20possible%20in%20Log%20Analytics%2FAzure%20monitor%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1554265%22%20slang%3D%22en-US%22%3E%3CP%3EI'd%20like%20to%20have%20Computers%20as%20values%20on%20the%20y-axis%20and%20Mb%20on%20the%20on%20the%20x-axis%20in%20terms%20of%20free%20disk%20space%20available.%20I%20haven't%20been%20able%20to%20find%20any%20examples%20on%20the%20web%20using%20Azure%20Monitor.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22flipHorizontal.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F208902i541455DDFC840F54%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22flipHorizontal.PNG%22%20alt%3D%22bar%20graph%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Ebar%20graph%3C%2FSPAN%3E%3C%2FSPAN%3EThis%20is%20my%20current%20query%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EInsightsMetrics%0A%7C%20where%20Name%20%3D%3D%20%22FreeSpaceMB%22%0Aand%20TimeGenerated%20%26gt%3B%20ago(10m)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1554265%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELog%20Analytics%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMetrics%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EQuery%20Language%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

I'd like to have Computers as values on the y-axis and Mb on the on the x-axis in terms of free disk space available. I haven't been able to find any examples on the web using Azure Monitor.

 

bar graphbar graphThis is my current query: 

 

InsightsMetrics
| where Name == "FreeSpaceMB"
and TimeGenerated > ago(10m)

 

4 Replies
Best Response confirmed by Jhilene (Microsoft)
Solution

@Jhilene 

Go to Log Analytics and run query

InsightsMetrics
| where Name == "FreeSpaceMB"
and TimeGenerated > ago(10m)
| render barchart kind=stacked
 

https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/renderoperator?pivots=azuremonitor

Annotation 2020-07-30 095107.jpg

 

A better example would be (please adapt)

InsightsMetrics
| where Name == "FreeSpaceMB"
and TimeGenerated > ago(10m)
| summarize sum(Val) by Computer
| render barchart kind=stacked

@Clive Watson Thank you soooo much! This really helped.