How to check Elastic Premium Plan Function App allocated instance counts history

Published Sep 04 2021 09:21 PM 2,018 Views
Microsoft

Dennis411_0-1630312212764.png

 

Recently I’ve been asked many times about how to check metrics of Elastic Premium Plan Function App allocated instances counts history.

 

We have below 3 ways to check from different perspective.

 

1. Go to Diagnose and solve problems --> HTTP Functions Scaling --> Number of workers allocated to the Function App

   Dennis411_0-1630309349617.png  This feature currently can be used  without charging ,  however it’s only allowed to check last 24 hours history.

 

2. After enabling Application insight,   we can go to Application insights --> Live metrics to check how many instances are currently allocated to this function app currently.

Dennis411_0-1630640507251.png

 

 

3. If customer wanted to check metrics for a longer time than 24 hours,  we can enable scale-controller-log (currently preview) to check. 

https://docs.microsoft.com/en-us/azure/azure-functions/functions-monitoring#scale-controller-logs

 

Here is the steps how we enable it.  

https://docs.microsoft.com/en-us/azure/azure-functions/configure-monitoring?tabs=v2#configure-scale-...

 

After enabling scale-controller-log, we can use below queries to check the instance counts history

 

traces

| extend CustomDimensions = todynamic(tostring(customDimensions))

| where CustomDimensions.Category == "ScaleControllerLogs"

| where message == "Instance count changed"

| extend Reason = CustomDimensions.Reason

| extend PreviousInstanceCount = CustomDimensions.PreviousInstanceCount

| extend NewInstanceCount = CustomDimensions.CurrentInstanceCount

 

https://docs.microsoft.com/en-us/azure/azure-functions/analyze-telemetry-data#query-scale-controller...

 

 

We may get the result like below which clearly records all the instance counts history.

Dennis411_2-1630309349644.png

 

Thanks for reading this post. I hope you enjoyed it. Please feel free to write your comments and views about the same over here.

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2697852%22%20slang%3D%22en-US%22%3EHow%20to%20check%20Elastic%20Premium%20Plan%20Function%20App%20allocated%20instance%20counts%20history%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2697852%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dennis411_0-1630312212764.png%22%20style%3D%22width%3A%20474px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306636iB028CB37C7C52DD4%2Fimage-dimensions%2F474x249%3Fv%3Dv2%22%20width%3D%22474%22%20height%3D%22249%22%20role%3D%22button%22%20title%3D%22Dennis411_0-1630312212764.png%22%20alt%3D%22Dennis411_0-1630312212764.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERecently%20I%E2%80%99ve%20been%20asked%20many%20times%20about%20how%20to%20check%20metrics%20of%20Elastic%20Premium%20Plan%20Function%20App%20allocated%20instances%20counts%20history.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20have%20below%203%20ways%20to%20check%20from%20different%20perspective.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E1.%20Go%20to%20Diagnose%20and%20solve%20problems%20--%26gt%3B%3C%2FSTRONG%3E%3CSTRONG%3E%26nbsp%3BHTTP%20Functions%20Scaling%20--%26gt%3B%3C%2FSTRONG%3E%3CSTRONG%3E%26nbsp%3BNumber%20of%20workers%20allocated%20to%20the%20Function%20App%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%20%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dennis411_0-1630309349617.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306627i9702021AF29FBB6E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Dennis411_0-1630309349617.png%22%20alt%3D%22Dennis411_0-1630309349617.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%26nbsp%3B%20%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%20font-weight%3A%20300%3B%22%3EThis%20feature%20currently%20can%20be%20used%20%26nbsp%3Bwithout%20charging%20%2C%26nbsp%3B%20however%20it%E2%80%99s%20only%20allowed%20to%20check%20%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3Elast%2024%20hours%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%20font-weight%3A%20300%3B%22%3E%20history.%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E2.%20After%20enabling%20Application%20insight%2C%20%26nbsp%3B%26nbsp%3Bwe%20can%20go%20to%20Application%20insights%20--%26gt%3B%3C%2FSTRONG%3E%3CSTRONG%3E%26nbsp%3BLive%20metrics%20to%20check%20how%20many%20instances%20are%20currently%20allocated%20to%20this%20function%20app%20currently.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dennis411_0-1630640507251.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F307869iA6032215CB63D959%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Dennis411_0-1630640507251.png%22%20alt%3D%22Dennis411_0-1630640507251.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E3.%20If%20customer%20wanted%20to%20check%20metrics%20for%20a%20longer%20time%20than%2024%20hours%2C%26nbsp%3B%20we%20can%20enable%20scale-controller-log%20(currently%20preview)%20to%20check.%26nbsp%3B%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-functions%2Ffunctions-monitoring%23scale-controller-logs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-functions%2Ffunctions-monitoring%23scale-controller-logs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20is%20the%20steps%20how%20we%20enable%20it.%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-functions%2Fconfigure-monitoring%3Ftabs%3Dv2%23configure-scale-controller-logs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-functions%2Fconfigure-monitoring%3Ftabs%3Dv2%23configure-scale-controller-logs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20enabling%20%3CSTRONG%3Escale-controller-log%3C%2FSTRONG%3E%2C%20we%20can%20use%20below%20queries%20to%20check%20the%20instance%20counts%20history%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3Etraces%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7C%20extend%20CustomDimensions%20%3D%20todynamic(tostring(customDimensions))%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7C%20where%20CustomDimensions.Category%20%3D%3D%20%22ScaleControllerLogs%22%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7C%20where%20message%20%3D%3D%20%22Instance%20count%20changed%22%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7C%20extend%20Reason%20%3D%20CustomDimensions.Reason%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7C%20extend%20PreviousInstanceCount%20%3D%20CustomDimensions.PreviousInstanceCount%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%7C%20extend%20NewInstanceCount%20%3D%20CustomDimensions.CurrentInstanceCount%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-functions%2Fanalyze-telemetry-data%23query-scale-controller-logs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-functions%2Fanalyze-telemetry-data%23query-scale-controller-logs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20may%20get%20the%20result%20like%20below%20which%20clearly%20records%20all%20the%20instance%20counts%20history.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dennis411_2-1630309349644.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306626i9794DA9693EAD888%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Dennis411_2-1630309349644.png%22%20alt%3D%22Dennis411_2-1630309349644.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThanks%20for%20reading%20this%20post.%20I%20hope%20you%20enjoyed%20it.%20Please%20feel%20free%20to%20write%20your%20comments%20and%20views%20about%20the%20same%20over%20here.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2697852%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dennis411_0-1630312212764.png%22%20style%3D%22width%3A%20474px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306636iB028CB37C7C52DD4%2Fimage-dimensions%2F474x249%3Fv%3Dv2%22%20width%3D%22474%22%20height%3D%22249%22%20role%3D%22button%22%20title%3D%22Dennis411_0-1630312212764.png%22%20alt%3D%22Dennis411_0-1630312212764.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERecently%20I%E2%80%99ve%20been%20asked%20many%20times%20about%20how%20to%20check%20metrics%20of%20Elastic%20Premium%20Plan%20Function%20App%20allocated%20instances%20counts%20history.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20have%20below%203%20ways%20to%20check%20from%20different%20perspective.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E1.%20Go%20to%20Diagnose%20and%20solve%20problems%20--%26gt%3B%3C%2FSTRONG%3E%3CSTRONG%3E%26nbsp%3BHTTP%20Functions%20Scaling%20--%26gt%3B%3C%2FSTRONG%3E%3CSTRONG%3E%26nbsp%3BNumber%20of%20workers%20allocated%20to%20the%20Function%20App%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%20%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dennis411_0-1630309349617.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306627i9702021AF29FBB6E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Dennis411_0-1630309349617.png%22%20alt%3D%22Dennis411_0-1630309349617.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%26nbsp%3B%20%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%20font-weight%3A%20300%3B%22%3EThis%20feature%20currently%20can%20be%20used%20%26nbsp%3Bwithout%20charging%20%2C%26nbsp%3B%20however%20it%E2%80%99s%20only%20allowed%20to%20check%20%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3Elast%2024%20hours%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%20font-weight%3A%20300%3B%22%3E%20history.%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E2.%20After%20enabling%20Application%20insight%2C%20%26nbsp%3B%26nbsp%3Bwe%20can%20go%20to%20Application%20insights%20%3C%2FSTRONG%3E%3CSTRONG%3E%C3%A0%20Live%20metrics%20to%20check%20how%20many%20instances%20are%20currently%20allocated%20to%20this%20function%20app%20currently.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dennis411_3-1630309537743.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306628i7CA6BC7C92E0EC06%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Dennis411_3-1630309537743.png%22%20alt%3D%22Dennis411_3-1630309537743.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E3.%20If%20customer%20wanted%20to%20check%20metrics%20for%20a%20longer%20time%20than%2024%20hours%2C%26nbsp%3B%20we%20can%20enable%20scale-controller-log%20(currently%20preview)%20to%20check.%26nbsp%3B%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-functions%2Ffunctions-monitoring%23scale-controller-logs%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-functions%2Ffunctions-monitoring%23scale-controller-logs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20is%20the%20steps%20how%20we%20enable%20it.%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-functions%2Fconfigure-monitoring%3Ftabs%3Dv2%23configure-scale-controller-logs%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-functions%2Fconfigure-monitoring%3Ftabs%3Dv2%23configure-scale-controller-logs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20enabling%20%3CSTRONG%3Escale-controller-log%3C%2FSTRONG%3E%2C%20we%20can%20use%20below%20queries%20to%20check%20the%20instance%20counts%20history%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Etraces%3C%2FP%3E%0A%3CP%3E%7C%20extend%20CustomDimensions%20%3D%20todynamic(tostring(customDimensions))%3C%2FP%3E%0A%3CP%3E%7C%20where%20CustomDimensions.Category%20%3D%3D%20%22ScaleControllerLogs%22%3C%2FP%3E%0A%3CP%3E%7C%20where%20message%20%3D%3D%20%22Instance%20count%20changed%22%3C%2FP%3E%0A%3CP%3E%7C%20extend%20Reason%20%3D%20CustomDimensions.Reason%3C%2FP%3E%0A%3CP%3E%7C%20extend%20PreviousInstanceCount%20%3D%20CustomDimensions.PreviousInstanceCount%3C%2FP%3E%0A%3CP%3E%7C%20extend%20NewInstanceCount%20%3D%20CustomDimensions.CurrentInstanceCount%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-functions%2Fanalyze-telemetry-data%23query-scale-controller-logs%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-functions%2Fanalyze-telemetry-data%23query-scale-controller-logs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20may%20get%20the%20result%20like%20below%20which%20clearly%20records%20all%20the%20instance%20counts%20history.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Dennis411_2-1630309349644.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F306626i9794DA9693EAD888%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Dennis411_2-1630309349644.png%22%20alt%3D%22Dennis411_2-1630309349644.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThanks%20for%20reading%20this%20post.%20I%20hope%20you%20enjoyed%20it.%20Please%20feel%20free%20to%20write%20your%20comments%20and%20views%20about%20the%20same%20over%20here.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2697852%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Sep 04 2021 09:21 PM
Updated by: