Django expvar端点psutil插件
项目描述
psutil插件为[django-expvar](https://github.com/thraxil/django-expvar/)
* pip安装它
* 将`expvarpsutil`添加到`INSTALLED_APPS`
公开它可以从[psutil](https://github.com/giampaolo/psutil)中获取的所有信息
。
示例输出
{
"vmem": {
"available": 21817942016,
"used": 29588267008,
"cached": 14833836032,
"percent": 35.2,
"free": 4071620608,
"inactive": 11338760192,
"active": 16109834240,
"total": 33659887616,
"buffers": 2912485376},
"netio": {
"dropin": 10,
"packets_recv": 5051051546,
"bytes_recv": 16324722441209,
"dropout": 0,
"bytes_sent": 14774021978712,
"errout": 0,
"packets_sent": 4435177714,
"errin": 52},
"swap": {
"used": 6767640576,
"percent": 21.0,
"free": 25397030912,
"sout": 140025290752,
"total": 32164671488,
"sin": 178708295680},
"cpu": {
"guest": 0.0,
"irq": 113.01,
"system": 907022.44,
"idle": 42276546.24,
"user": 5368869.44,
"iowait": 7038784.66,
"nice": 1194231.6,
"steal": 0.0,
"softirq": 63126.39}
}
* pip安装它
* 将`expvarpsutil`添加到`INSTALLED_APPS`
公开它可以从[psutil](https://github.com/giampaolo/psutil)中获取的所有信息
。
示例输出
{
"vmem": {
"available": 21817942016,
"used": 29588267008,
"cached": 14833836032,
"percent": 35.2,
"free": 4071620608,
"inactive": 11338760192,
"active": 16109834240,
"total": 33659887616,
"buffers": 2912485376},
"netio": {
"dropin": 10,
"packets_recv": 5051051546,
"bytes_recv": 16324722441209,
"dropout": 0,
"bytes_sent": 14774021978712,
"errout": 0,
"packets_sent": 4435177714,
"errin": 52},
"swap": {
"used": 6767640576,
"percent": 21.0,
"free": 25397030912,
"sout": 140025290752,
"total": 32164671488,
"sin": 178708295680},
"cpu": {
"guest": 0.0,
"irq": 113.01,
"system": 907022.44,
"idle": 42276546.24,
"user": 5368869.44,
"iowait": 7038784.66,
"nice": 1194231.6,
"steal": 0.0,
"softirq": 63126.39}
}
项目详情
关闭
哈希值 for django_expvar_psutil-0.1.0-py2.py3-none-any.whl
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 752c98a65fccc70af3ae17b00d0db4a74ad68452c9d8f20e979548cca94d4ad0 |
|
MD5 | 620aa558ac08c806dbd610f7c8725f56 |
|
BLAKE2b-256 | 93c280f2fda406f6169ad37d397217375fad4414e194a8049a5a73c8e732d437 |