openfalcon 插件 集成nginx redis pgsql 支持一鍵啟動
openfalcon-nginx-redis-pgsql
openfalcon 插件 集成nginx redis pgsql
文件拷貝到 home文件夾下
執(zhí)行 cd /home/didi ./didi 檢查文件運行是否報錯
添加到自動任務中
* * * * * root cd /home/didi/ && ./didi
執(zhí)行二進制文件如果沒有執(zhí)行權(quán)限,先賦給文件權(quán)限
chmod 777 didi
執(zhí)行前修改 etc/*.yml文件
服務器redis 賬號密碼
pgsql 賬號密碼 dbname
當前服務器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)存總量(俗稱常駐集大?。?/td>
|
| 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)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。