1
我有以下nginx的請求穆寧生成的圖表:Munin:'m'在nginx請求的y軸中意味着什麼?
是什麼在y軸上的「M」意思?
位於/ usr /份額nginx的穆寧插件/穆寧/插件/ nginx_request被提取:
if ($response->content =~ /^\s+(\d+)\s+(\d+)\s+(\d+)/m) {
print "request.value $3\n";
這意味着它是採取的nginx_status第三組分,這似乎是總的累加請求計數。下面是從同一服務器的示例執行:
$ curl http://127.0.0.1/nginx_status
Active connections: 1
server accepts handled requests
2936 2936 4205
Reading: 0 Writing: 1 Waiting: 0
的穆寧nginx的插件傳遞以下到rrdtool的:
print "graph_title Nginx requests\n";
print "graph_args --base 1000\n";
print "graph_category nginx\n";
print "graph_vlabel Request per second\n";
print "request.label req/sec\n";
print "request.type DERIVE\n";
print "request.min 0\n";
print "request.label requests port $port\n";
print "request.draw LINE2\n";