uWSGI monitoring with Netdata

What is uWSGI?

uWSGI is an application server used to run web applications written in Python and other languages. It is designed to be fast, efficient and secure, making it a popular choice for deployment of web applications. It is also compatible with a wide range of web servers and is easily extensible with custom plugins.

Monitoring uWSGI with Netdata

The prerequisites for monitoring uWSGI with Netdata are to have uWSGI and Netdata installed on your system.

Netdata auto discovers hundreds of services, and for those it doesn’t turning on manual discovery is a one line configuration. For more information on configuring Netdata for uWSGI monitoring please read the collector documentation.

You should now see the uWSGI section on the Overview tab in Netdata Cloud already populated with charts about all the metrics you care about.

Netdata has a public demo space (no login required) where you can explore different monitoring use-cases and get a feel for Netdata.

What uWSGI metrics are important to monitor - and why?

Requests

Requests per second

The number of requests that the uWSGI application is receiving per second. This metric can be used to understand how busy the application is, and potentially identify issues with the performance or scalability of the application.

Transmitted data

The amount of data, in bytes, sent by the uWSGI application in response to client requests. This metric can be used to identify potential issues with the data being sent by the application, for example if the application is sending unnecessary data or if the response time is slow.

Average request time

The average time, in milliseconds, that it takes for the uWSGI application to respond to a request. This metric can be used to understand the performance of the application, and can help to identify issues with the scalability of the application. Normal values for this metric should be below 500ms.

Memory

RSS (Resident Set Size)

The amount of memory, in bytes, that the uWSGI application is using. This metric can be used to understand the memory usage of the application, and can help to identify potential issues with the performance of the application.

VSZ (Virtual Memory Size)

The amount of virtual memory, in bytes, that the uWSGI application is using. This metric can be used to understand the memory usage of the application, and can help to identify potential issues with the performance of the application.

Exceptions

Exceptions is a metric that measures the number of exceptions that are thrown by the uWSGI application. This metric can be used to identify potential issues with the application, such as errors in the code, or problems with the application configuration.

Harakiris

Harakiris is a metric that measures the number of times that the uWSGI application is killed due to an unrecoverable error. This metric can be used to identify potential issues with the application, such as errors in the code, or problems with the application configuration.

Respawns

Respawns is a metric that measures the number of times that the uWSGI application is restarted due to an unrecoverable error. This metric can be used to identify potential issues with the application, such as errors in the code, or problems with the application configuration.

Get Netdata

Sign up for free

Want to see a demonstration of Netdata for multiple use cases?

Go to Live Demo