openfalcon 插件 集成nginx redis pgsql 支持一鍵啟動
openfalcon-nginx-redis-pgsql
openfalcon 插件 集成nginx redis pgsql
文件拷貝到 home文件夾下
執(zhí)行 cd /home/didi ./didi 檢查文件運(yùn)行是否報錯
添加到自動任務(wù)中
* * * * * root cd /home/didi/ && ./didi
執(zhí)行二進(jìn)制文件如果沒有執(zhí)行權(quán)限豫尽,先賦給文件權(quán)限
chmod 777 didi
執(zhí)行前修改 etc/*.yml文件
服務(wù)器redis 賬號密碼
pgsql 賬號密碼 dbname
當(dāng)前服務(wù)器ip
監(jiān)控臺數(shù)據(jù)接收接口 api
nginxStatus nginx信息接口
配置方法 參照
location /monitor/nginx_status
{
stub_status on;
access_log off ;
allow 127.0.0.1;
deny all;
}
pgsql匯報字段
key |
tag |
type |
note |
pgsql.maxconnection |
port |
GAUGE |
已連接客戶端的數(shù)量 |
redis匯報字段
key |
tag |
type |
note |
redis.connected_clients |
port |
GAUGE |
已連接客戶端的數(shù)量 |
redis.blocked_clients |
port |
GAUGE |
正在等待阻塞命令(BLPOP盯蝴、BRPOP肠鲫、BRPOPLPUSH)的客戶端的數(shù)量 |
redis.used_memory |
port |
GAUGE |
由 Redis 分配器分配的內(nèi)存總量,以字節(jié)(byte)為單位 |
redis.used_memory_rss |
port |
GAUGE |
從操作系統(tǒng)的角度跳夭,返回 Redis 已分配的內(nèi)存總量(俗稱常駐集大小) |
redis.used_memory_peak |
port |
GAUGE |
redis內(nèi)存使用最大值 |
redis.instantaneous_ops_per_sec |
port |
GAUGE |
每秒處理命令條數(shù) |
redis.rejected_connections |
port |
COUNTER |
采集周期內(nèi)拒絕連接總數(shù) |
redis.db0 |
port |
GAUGE |
redis現(xiàn)存key數(shù)量 |
nginx匯報字段
key |
tag |
type |
note |
nginx.query_count |
port |
GAUGE |
接口調(diào)用次數(shù) |
nginx.err_count |
port |
GAUGE |
接口調(diào)用失敗次數(shù) |
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者