END
BEGIN apache.conns_async $1
SET keepalive = $((apache_connsasynckeepalive))
-SET closing = $((apache_connsasyncwriting))
+SET closing = $((apache_connsasyncclosing))
SET writing = $((apache_connsasyncwriting))
END
VALUESEOF2
# }}
# charts order (can be overridden if you want less charts, or different order)
-ORDER = ['bytesperreq', 'workers', 'reqpersec', 'bytespersec', 'requests', 'net', 'connections', 'conns_async']
+ORDER = ['requests', 'connections', 'conns_async', 'net', 'workers', 'reqpersec', 'bytespersec', 'bytesperreq']
CHARTS = {
'bytesperreq': {
'options': "'' 'apache Lifetime Avg. Response Size' 'bytes/request' statistics apache.bytesperreq area",
'lines': [
{"name": "size_req",
- "options": "'' absolute 1"}
+ "options": "'' absolute 1 1000000"}
]},
'workers': {
'options': "'' 'apache Workers' 'workers' workers apache.workers stacked",
"options": "'' absolute 1 1000000"}
]},
'bytespersec': {
- 'options': "'' 'apache Lifetime Avg. Response Size' 'bytes/request' statistics apache.bytesperreq area",
+ 'options': "'' 'apache Lifetime Avg. Bandwidth/s' 'kilbits/s' statistics apache.bytesperreq area",
'lines': [
{"name": "size_sec",
"options": "'' absolute 8 1000000000"}
tmp = row.split(":")
if str(tmp[0]) in self.assignment:
try:
- data[self.assignment[tmp[0]]] = int(float(tmp[1]))
+ multiplier = 1
+ if tmp[0] in ("BytesPerReq", "ReqPerSec", "BytesPerSec"):
+ multiplier = 1000
+ data[self.assignment[tmp[0]]] = int(float(tmp[1])*multiplier)
except (IndexError, ValueError) as a:
print(a)
pass
{"name": "writing",
"options": "'' absolute 1 1"},
{"name": "waiting",
- "options": "'' absolute 1 1"}
+ "options": "idle absolute 1 1"}
]},
'connect_rate': {
'options': "'' 'nginx Connections Rate' 'connections/s' nginx nginx.performance line",
'lines': [
{"name": "accepts",
- "options": "'accepted' incremental 1 1"},
+ "options": "accepted incremental 1 1"},
{"name": "handled",
"options": "'' incremental 1 1"}
]}
try:
return {'active': int(raw[2]),
'requests': int(raw[7]),
- 'reading': int(raw[8]),
- 'writing': int(raw[9]),
- 'waiting': int(raw[11]),
- 'accepts': int(raw[13]),
- 'handled': int(raw[15])}
+ 'reading': int(raw[11]),
+ 'writing': int(raw[13]),
+ 'waiting': int(raw[15]),
+ 'accepts': int(raw[8]),
+ 'handled': int(raw[9])}
except ValueError:
return None