search
数据采集 采集源配置 uWSGI 指标采集

uWSGI 指标采集

简介

从 uWSGI 的 StatsServer 中读取状态数据,并把数据上报到 DataFlux 中。

前置条件

配置

进入 DataKit 安装目录下的 conf.d/uwsgi 目录,复制 uwsgi.conf.sample 并命名为 uwsgi.conf。示例如下:

设置:

[[inputs.uwsgi]]
  ## List with urls of uWSGI Stats servers. Url must match pattern:
  ## scheme://address[:port]
  ##
  ## For example:
  ## servers = ["tcp://localhost:5050", "http://localhost:1717", "unix:///tmp/statsock"]
  servers = ["tcp://127.0.0.1:1717"]

  ## General connection timout
  # timeout = "5s"                   

配置好后,重启 DataKit 即可生效

uwsgi_overview 指标集采集

指标 描述 类型 单位 Tag
listen_queue - int - source,uid,gid,version
listen_queue_errors - int - source,uid,gid,version
signal_queue - int - source,uid,gid,version
load - int - source,uid,gid,version
pid - int - source,uid,gid,version

uwsgi_workers 指标集采集

指标 描述 类型 单位 Tag
requests - int - worker_id,source
accepting - int - worker_id,source
delta_request - int - worker_id,source
exceptions - int - worker_id,source
harakiri_count - int - worker_id,source
pid - int - worker_id,source
signals - int - worker_id,source
signal_queue - int - worker_id,source
status - str - worker_id,source
rss - int - worker_id,source
vsz - int - worker_id,source
running_time - int - worker_id,source
last_spawn - int - worker_id,source
respawn_count - int - worker_id,source
tx - int - worker_id,source
avg_rt - int - worker_id,source

uwsgi_apps 指标集采集

指标 描述 类型 单位 Tag
modifier1 - int - app_id,worker_id,source
requests - int - app_id,worker_id,source
startup_time - int - app_id,worker_id,source
exceptions - int - app_id,worker_id,source

uwsgi_cores 指标集采集

指标 描述 类型 单位 Tag
requests - int - core_id,worker_id,source
static_requests - int - core_id,worker_id,source
routed_requests - int - core_id,worker_id,source
offloaded_requests - int - core_id,worker_id,source
write_errors - int - core_id,worker_id,source
read_errors - int - core_id,worker_id,source
in_request - int - core_id,worker_id,source