microsoft / azure-load-testing

MIT License
22 stars 2 forks source link

Support for Azure Monitor Custom Metrics? #84

Closed jimcomiskey closed 2 years ago

jimcomiskey commented 2 years ago

Unable to re-open my previous issue, so I am submitting again with more information requested.

We have implemented some custom metrics to help understand our load, such as Operation Count. When doing manual load testing, we can watch this custom metric and see how busy the server becomes when submitting larger requests.

When adding metrics to my Azure Load Test, I can see the "out of the box" metrics for my Application Insights instance. But, the custom metrics are not available. Would like to be able to select Custom Metrics and display them like this in the Load Testing Components.

image

I can add App Insights to my Test, but when I go to select Metrics, I only see metrics found under Application Insights Standard Metrics. I cannot access Custom Metrics which I have developed for tracking the system load.

These are available in Azure Load Testing:

https://user-images.githubusercontent.com/6228438/169353208-6cc0a940-f822-4e50-95a4-f50123c93e9f.png

These custom metrics are not:

image

image

AB#1552956

jimcomiskey commented 2 years ago

To respond to the question in the previously closed Issue:

Hi @jimcomiskey can you share the screenshot of Configure metrics screen, are you able to see your custom metrics namespace in the Metric Namespace dropdown?

image I am able to see azure.applicationinsights namespace. That seems to be where my custom metrics reside. I can see them in Application Insights, but I cannot see them when using the Configure Metrics screen.

These metrics fall under "Log based Metrics", rather than "Application Insights standard metrics". Is that why I can't use them with Azure Load Testing Configure Metrics?

ninallam commented 2 years ago

@krishna1s can you please take a look at this?

ninallam commented 2 years ago

Hi @jimcomiskey there is an issue while fetching log based metrics. We are looking into this. Will update once resolved.

radhikajain99 commented 2 years ago

@jimcomiskey @ninallam This issue has been fixed now. Please let us in case of any issues.