Retrace will reach End of Life on March 31, 2027. Click here to learn more.

Azure Functions Performance Monitoring with Retrace

By: mwatson
  |  September 6, 2017
Azure Functions Performance Monitoring with Retrace

Serverless computing is here, and I expect it to become really popular with developers over the next few years. At Stackify we are starting to take advantage of Azure Functions. As developers and a developer tool company, we know that it is still critical to monitor the performance of our application, even if it is deployed through a function-as-a-service platform like Azure Functions.

The good news is that Retrace supports Azure Functions running App Service plan mode. This means that you can leverage the full power of Retrace’s application monitoring. In this article, we are going to eat our own dog food and show you what Retrace can do for Azure Functions performance monitoring.

To learn how to install Retrace for Azure Functions, check out this article.

Azure Functions Monitoring

Retrace runs as a WebJob within your Azure Function. As your App Service Plan auto-scales from 2 to servers 10, Retrace will scale with it and monitor all of your application instances. Under the covers, your serverless application is still running on a server.

Function Execution Counts

Retrace automatically instruments and profiles the underlying Azure Functions framework. It can track every time your functions are triggered. We have tested it with multiple types of functions. Including timer, Service Bus, HTTP triggers and others.

Azure Functions Execution Counts

You can set any of your function actions to be a “key transaction” within Retrace to monitor the performance of that specific action.

You can also monitor the performance of all of the functions within your Azure Function App. You can configure alerts around any of these metrics.

Azure Functions Action Monitoring

Monitoring Code Level Performance

The real power of Retrace comes from the lightweight code profiling that we do. We can provide the same level of details for Azure Functions that we do for any other type of .NET application. If you wanted advanced Azure Functions performance monitoring, you have to leverage an APM solution like Retrace.

Application Dependencies

Since we track the performance of most common application dependencies, including SQL Server, Redis, external HTTP services and much more, it is easy to spot performance problems related to one of your application dependencies. In this example below, you can see big spikes caused by Redis.

Azure Functions Monitoring Application Dependencies

Slow SQL Queries

Track and monitor the performance of every SQL query executed by your code. You can even setup alerting to monitor the performance of an individual SQL query.

Azure Functions Monitoring SQL Queries

Sometimes application problems aren’t performance related. We did a release today and noticed that our code was making an unusually high number of SQL queries. By being able to see that, we were able to track down the problem quickly. We had a problem with our cache configuration which caused caching not to work.

Code Level Request Traces

One of the most popular features of Retrace is the code level request tracing. If you have used our free tool, Prefix, you are probably familiar with it. If you have tried Prefix yet, you definitely should!

Here is a really simple example of request trace:

Azure Functions Monitoring Request Traces

Monitoring Errors

Since Retrace uses lightweight profiling to collect data about the performance of your application, it can also collect exceptions that are thrown in your code. Retrace will automatically collect these and has robust error reporting around what exceptions are occurring. You can configure it only to track unhandled exceptions or all, including ones that are caught in your code and thrown away.

Custom Metrics

To better track the behavior and performance of our applications, we implement a lot of custom metrics. Retrace supports these by adding a couple of lines of code via our StackifyLib nuget package.

For example, we want to track how large our average batch size is we are sending to Elasticsearch. We also track metrics around how long it takes to send data to Elasticsearch.

Azure Functions Monitoring Custom Metrics

Monitoring CPU & Memory Usage

The CPU and memory usage of your Azure Function is automatically tracked. You can configure monitoring alerts on them.

Azure Functions Monitoring CPU Memory

Summary

Server and application monitoring has greatly evolved. Today, our apps don’t even run on servers, but we still need to monitor them. Solutions like Retrace make it easy for developers to monitor their applications, no matter where they are installed. Retrace supports standard virtual machines as well as Azure specific deployments like Azure Functions, Cloud Services, and App Services.

Retrace provides robust Azure Functions monitoring capabilities. You can closely monitor the performance of your application while also tracking error rates, behavior, usage, and much more.

Retrace is a very affordable APM solution.  A free trial is available.

Improve Your Code with Retrace APM

Stackify's APM tools are used by thousands of .NET, Java, PHP, Node.js, Python, & Ruby developers all over the world.
Explore Retrace's product features to learn more.

Learn More
indobet toto slot toto toto bobatoto daftar logototo patentoto toto bayitoto popotogel prize hongkong malam ini joker11 lingkartoto depo 5k https://nolimithoki.dev/ dinasti33 slot slot jepang https://www.juara288.asia/ slot 4d toto toto flokitoto slot gacor logototo slot depo 5k bobatoto bobatoto bobatoto sontogel mpo slot situs toto slot situs slot bobatoto kari4d kari4d kari4d kari4d pascol4d pascol4d pascol4d bento11 link slot gacor toto toto slot toto situs slot situs slot situs slot https://www.asupan188.dev/ slot gacor gampang menang toto slot gacor bwo303 situs toto toto slot slot gacor slot88 slot gacor situs slot link slot slot gacor pucuk4d PASCOL4D situs slot link slot slotvip situs toto toto slot situs slot situs slot situs slot toto slot gacor slot777 situs judi bola POPOTOGEL : Situs Resmi Bandar Toto Togel Macau dengan Prediksi Gokil Pasti Akurat link slot slot gacor situs slot slot gacor slot gacor situs slot link slot gacor Slot88 Slot88 slot gacor situs toto toto slot pulsa slot777 link slot gacor situs gacor slot gacor slot gacor slot gacor slot gacor Slot88 situs slot slot gacor Slot88 slot gacor slot terbaru slot gacor situs slot slot gacor situs slot Situs Slot POPOTOGEL: Regulasi Bandar Situs Togel Resmi & Bola Mix Parlay Asia Terpercaya StreamEast Jpmania slot resmi slot slot resmi slot bayitoto patentoto link gacor slot gacor kari4d slot gacor slot gacor slot gacor AMANAHTOTO pascol4d kari4d AMANAHTOTO kari4d bragatoto slot gacor slot game patentoto pucuk4d rokokbet rokokbet kari4d pascol4d LOGIN PASCOL4D pucuk4d roma77 judi bola slot depo 10k mpo slot Girang4d KARI4D StreamEast AMANAHTOTO jutatoto PARLAY slot88 slot depo 5k hoki99 pascol4d pkv games roma77 Slot poker slot situs slot PREMANTOTO AMANAHTOTO AMANAHTOTO AMANAHTOTO dominoqq vespa36 kari4d vespa36 leon188 leon188 vespa36 gacor mpo login TOTO SLOT hoki99 KENANGAN889 KENANGAN889 KENANGAN889 KENANGAN889
indobet toto slot toto toto bobatoto daftar logototo patentoto toto bayitoto popotogel prize hongkong malam ini joker11 lingkartoto depo 5k https://nolimithoki.dev/ dinasti33 slot slot jepang https://www.juara288.asia/ slot 4d toto toto flokitoto slot gacor logototo slot depo 5k bobatoto bobatoto bobatoto sontogel mpo slot situs toto slot situs slot bobatoto kari4d kari4d kari4d kari4d pascol4d pascol4d pascol4d bento11 link slot gacor toto toto slot toto situs slot situs slot situs slot https://www.asupan188.dev/ slot gacor gampang menang toto slot gacor bwo303 situs toto toto slot slot gacor slot88 slot gacor situs slot link slot slot gacor pucuk4d PASCOL4D situs slot link slot slotvip situs toto toto slot situs slot situs slot situs slot toto slot gacor slot777 situs judi bola POPOTOGEL : Situs Resmi Bandar Toto Togel Macau dengan Prediksi Gokil Pasti Akurat link slot slot gacor situs slot slot gacor slot gacor situs slot link slot gacor Slot88 Slot88 slot gacor situs toto toto slot pulsa slot777 link slot gacor situs gacor slot gacor slot gacor slot gacor slot gacor Slot88 situs slot slot gacor Slot88 slot gacor slot terbaru slot gacor situs slot slot gacor situs slot Situs Slot POPOTOGEL: Regulasi Bandar Situs Togel Resmi & Bola Mix Parlay Asia Terpercaya StreamEast Jpmania slot resmi slot slot resmi slot bayitoto patentoto link gacor slot gacor kari4d slot gacor slot gacor slot gacor AMANAHTOTO pascol4d kari4d AMANAHTOTO kari4d bragatoto slot gacor slot game patentoto pucuk4d rokokbet rokokbet kari4d pascol4d LOGIN PASCOL4D pucuk4d roma77 judi bola slot depo 10k mpo slot Girang4d KARI4D StreamEast AMANAHTOTO jutatoto PARLAY slot88 slot depo 5k hoki99 pascol4d pkv games roma77 Slot poker slot situs slot PREMANTOTO AMANAHTOTO AMANAHTOTO AMANAHTOTO dominoqq vespa36 kari4d vespa36 leon188 leon188 vespa36 gacor mpo login TOTO SLOT hoki99 KENANGAN889 KENANGAN889 KENANGAN889 KENANGAN889