Skip to content

uWSGI

Auto-Detection
Built-in Metrics

Bleemeo monitors uWSGI through automatic service detection and built-in metrics gathered from the uWSGI stats server.

Glouton automatically detects uWSGI instances running on the host. To enable metrics collection, the stats server must be enabled by adding --stats 127.0.0.1:1717 --memory-report to your uWSGI command. Without --memory-report, the uwsgi_memory_used metric is not available.

By default, Glouton assumes the stats server runs on port 1717. If the auto-detected parameters are incorrect, you can override them manually.

Terminal window
sudo tee /etc/glouton/conf.d/99-uwsgi.conf > /dev/null << 'EOF'
service:
# For a uWSGI running outside a container
- type: "uwsgi"
address: "127.0.0.1"
port: 8080
stats_port: 1717
# If your server uses the --stats-http option, set the protocol to "http".
# If not set, "tcp" is used by default.
stats_protocol: "tcp"
# For an additional uWSGI running outside a container
- type: "uwsgi"
instance: "NAME_ASSOCIATED_WITH_YOUR_ADDITIONAL_SERVICE"
address: "127.0.0.1"
port: 8080
stats_port: 1717
# For a uWSGI running in a Docker container
- type: "uwsgi"
instance: "CONTAINER_NAME"
port: 8080
stats_port: 1717
EOF
Metric Description
service_status Status of uWSGI
uwsgi_requests Number of requests per second
uwsgi_transmitted Amount of data transmitted in bits per second
uwsgi_memory_used Memory used in bytes
uwsgi_avg_request_time Average time to process a request in seconds
uwsgi_exceptions Number of exceptions per second
uwsgi_harakiri_count Number of worker timeouts per second