@cryptotaxi247 / netdata-1 / commits / 448cac490

litespeed: add "Requests In Processing" chart

lgz committed Jun 5, 2018 at 11:38 UTC 448cac490b85539007333c66df60a74d2cd6b871
1 file changed +14 -4
python.d/litespeed.chart.py
+14 -4
@@ -15,9 +15,12 @@ update_every = 10
15
16 # charts order (can be overridden if you want less charts, or different order)
17 ORDER = [
18 - 'net_throughput_http', 'net_throughput_https',
19 - 'connections_http', 'connections_https',
20 - 'requests', 'pub_cache_hits', 'private_cache_hits', 'static_hits']
18 + 'net_throughput_http', 'net_throughput_https', # net throughput
19 + 'connections_http', 'connections_https', # connections
20 + 'requests', 'requests_processing', # requests
21 + 'pub_cache_hits', 'private_cache_hits', # cache
22 + 'static_hits' # static
23 +]
24
25 CHARTS = {
26 'net_throughput_http': {
@@ -49,10 +52,15 @@ CHARTS = {
52 ["ssl_conn_used", "used", "absolute"]
53 ]},
54 'requests': {
52 - 'options': [None, 'Requests', 'req/s', 'requests', 'litespeed.requests', 'line'],
55 + 'options': [None, 'Requests', 'requests/s', 'requests', 'litespeed.requests', 'line'],
56 'lines': [
57 ["requests", None, "absolute", 1, 100]
58 ]},
59 + 'requests_processing': {
60 + 'options': [None, 'Requests In Processing', 'requests', 'requests', 'litespeed.requests_processing', 'line'],
61 + 'lines': [
62 + ["requests_processing", "processing", "absolute"]
63 + ]},
64 'pub_cache_hits': {
65 'options': [None, 'Public Cache Hits', 'hits/s', 'cache', 'litespeed.cache', 'line'],
66 'lines': [
@@ -78,6 +86,7 @@ T = [
86 t("SSL_BPS_IN", "ssl_bps_in", 8),
87 t("SSL_BPS_OUT", "ssl_bps_out", 8),
88 t("REQ_PER_SEC", "requests", 100),
89 + t("REQ_PROCESSING", "requests_processing", 1),
90 t("PUB_CACHE_HITS_PER_SEC", "pub_cache_hits", 100),
91 t("PRIVATE_CACHE_HITS_PER_SEC", "private_cache_hits", 100),
92 t("STATIC_HITS_PER_SEC", "static_hits", 100),
@@ -95,6 +104,7 @@ ZERO_DATA = {
104 "ssl_bps_in": 0,
105 "ssl_bps_out": 0,
106 "requests": 0,
107 + "requests_processing": 0,
108 "pub_cache_hits": 0,
109 "private_cache_hits": 0,
110 "static_hits": 0,