////
This file is generated! See scripts/docs_collector.py
////

[[metricbeat-module-uwsgi]]
== uwsgi module

beta[]

This is the uwsgi module. By default collects the `stats` metricset, using
http://uwsgi-docs.readthedocs.io/en/latest/StatsServer.html[StatsServer].

[float]
=== Module-specific configuration notes

The uWSGI module has these additional config options:

*`hosts`*:: host URLs to get data from (e.g: `tcp://127.0.0.1:9191`).
  Can obtain data from 3 types of schemes: tcp (tcp://ip:port), unix socket (unix:///tmp/uwsgi.sock)
  and http/https server (http://ip:port)

[float]
=== Dashboard

The uwsgi module comes with a predefined dashboard. For example:

image::./images/uwsgi_dashboard.png[]


[float]
=== Example configuration

The uwsgi module supports the standard configuration options that are described
in <<configuration-metricbeat>>. Here is an example configuration:

[source,yaml]
----
metricbeat.modules:
- module: uwsgi
  metricsets: ["status"]
  enable: true
  period: 10s
  hosts: ["tcp://127.0.0.1:9191"]
----

[float]
=== Metricsets

The following metricsets are available:

* <<metricbeat-metricset-uwsgi-status,status>>

include::uwsgi/status.asciidoc[]

