Using App Metrics

This section covers how to use App metrics to analyze how different activities contribute to your app's total workload over a given period of time

You can think of workload as the sum of all the work performed by a variety of .

The App Metrics dashboard gives you several visualizations of the work that your app is doing. The charts serve two purposes:

  • To give you an overview of your app’s total workload

  • To give you an easy way to drill down into each activity and get a granular view of how single workflows and expressions contribute

Workload usage

The bar graph helps you get a transparent view of how much app your work is doing in total, and at what times. This visualization lets you see trends and patterns in your app's workload usage over time, which can help you plan and make more informed decisions about future upgrades or changes to your app.

Each column in the bar graph represents one day, going back 30 days from the current date by default. This example above is from a complex app that processes thousands of users, searches and workflows.

Changing the time frame

To drill down into an individual day, simply click that day in the chart. Let’s look at July 14th when the workload was a bit higher:

Here we can see that something happened between 3:00 pm (15:00) and 6 pm (18:00) that added more to the workload of that day than the rest: this lets you zoom in more closely in time and get an understanding of what exactly happened between 3:00 pm (15:00) and 6 pm (18:00) that gave Bubble more work to do.

The App metrics will reflect the time zone of the device that is accessing them.

Isolating the timeframe extends down to the granular pie chart below, which lets you identify activity types on the top level and drill down into individual workflows and expressions to see what they are doing.

Granular view

The granular view gives you a pie chart where each slice represents one of the activity types that we track. This way, you get an understanding of the types of processes that contribute the most.

Let’s look at an example:

In the chart above we can see clearly that two activities make up the majority of the work that this app performs:

  • Fetching data

  • Scheduled Workflows

This data alone can already tell us something about how the app is built: fetching data (which relates to searches and other ways that information is being fetched from the database) makes up a large bulk of the workload consumed. A large part is also made up of scheduled workflows; this activity type covers workflows that are scheduled using the Schedule API Workflow action. We can see the percentage by hovering over the sector in the pie chart.

Drilling down

Clicking on each of these activity types provides an even more detailed view of individual instances of that activity type, and how much each one contributes to its total. Let’s click on the Fetching data sector to dig deeper:

Now we are down to a list of different data fetching operations.

By again hovering the mouse over one of the vectors in the chart, we can see the percentage consumed by that specific activity. Clicking that takes us directly to the Do a search for that's consuming the workload. In this case, it was an element searching for a data type called Clients.

This way of continually drilling down in the chart can teach us a lot about where the work happens and where we can potentially make adjustments to make the app more efficient.

This not only helps you keep your app operating at a cost-effective level, but it can also speed up processes to improve the overall experience for users.

Excluding details

As you research your app’s workload, it can sometimes be useful to see what the chart looks like if we exclude some information. For example, if you want to stop focusing on workflows, you can hide that information in the chart by clicking on that activity type in the right-hand list.

Let’s hide the Workflow activity type to focus on the others:

As you can see, when we click on the Workflows entry in the list, it becomes crossed out, and the chart is updated to exclude it: the dark blue slice is no longer visible.

Real-time metrics

The real-time workload reporting allows you to view and access workload data in real time. The bar chart provides one-minute granularity for the last 24 hours. This is useful for checking recent or highly time-specific workloads to learn more about how they contribute in isolation.

Checking specific workload units consumed in the logs

Using the Server logs tab, you can check the workload charged for each action, as well as the total for each workflow.

Using the data

Creating efficient applications is a process of continuous improvement. Using the App Metrics dashboard is an effective method for recognizing the processes that have the greatest impact on your app’s workload. As you analyze your workload data, you will discover that some activities are essential for your app to operate, while others can be optimized.

The flexibility of Bubble’s platform opens up to different ways of solving the same problem, and sometimes small changes can lead to great improvements in efficiency.

Last updated