Fixed gauges for go web_log module (#10029)
Hamed Beiranvand committed
Oct 7, 2020 at 09:57 UTC
fe69d8f0d2508981665fe860a19e7300eaf09ae8
1 file changed
+100
web/gui/dashboard_info.js
+100
@@ -2265,6 +2265,106 @@ netdataDashboard.context = {
2265
'<code>TIMEOUT</code>, when the response was not completed due to a connection timeout.'
2266
},
2267
2268
+ // ------------------------------------------------------------------------
2269
+ // go web_log
2270
+
2271
+ 'web_log.type_requests': {
2272
+ info: 'Web server responses by type. <code>success</code> includes <b>1xx</b>, <b>2xx</b>, <b>304</b> and <b>401</b>, <code>error</code> includes <b>5xx</b>, <code>redirect</code> includes <b>3xx</b> except <b>304</b>, <code>bad</code> includes <b>4xx</b> except <b>401</b>, <code>other</code> are all the other responses.',
2273
+ mainheads: [
2274
+ function (os, id) {
2275
+ void (os);
2276
+ return '<div data-netdata="' + id + '"'
2277
+ + ' data-dimensions="success"'
2278
+ + ' data-chart-library="gauge"'
2279
+ + ' data-title="Successful"'
2280
+ + ' data-units="requests/s"'
2281
+ + ' data-gauge-adjust="width"'
2282
+ + ' data-width="12%"'
2283
+ + ' data-before="0"'
2284
+ + ' data-after="-CHART_DURATION"'
2285
+ + ' data-points="CHART_DURATION"'
2286
+ + ' data-common-max="' + id + '"'
2287
+ + ' data-colors="' + NETDATA.colors[0] + '"'
2288
+ + ' data-decimal-digits="0"'
2289
+ + ' role="application"></div>';
2290
+ },
2291
+
2292
+ function (os, id) {
2293
+ void (os);
2294
+ return '<div data-netdata="' + id + '"'
2295
+ + ' data-dimensions="redirect"'
2296
+ + ' data-chart-library="gauge"'
2297
+ + ' data-title="Redirects"'
2298
+ + ' data-units="requests/s"'
2299
+ + ' data-gauge-adjust="width"'
2300
+ + ' data-width="12%"'
2301
+ + ' data-before="0"'
2302
+ + ' data-after="-CHART_DURATION"'
2303
+ + ' data-points="CHART_DURATION"'
2304
+ + ' data-common-max="' + id + '"'
2305
+ + ' data-colors="' + NETDATA.colors[2] + '"'
2306
+ + ' data-decimal-digits="0"'
2307
+ + ' role="application"></div>';
2308
+ },
2309
+
2310
+ function (os, id) {
2311
+ void (os);
2312
+ return '<div data-netdata="' + id + '"'
2313
+ + ' data-dimensions="bad"'
2314
+ + ' data-chart-library="gauge"'
2315
+ + ' data-title="Bad Requests"'
2316
+ + ' data-units="requests/s"'
2317
+ + ' data-gauge-adjust="width"'
2318
+ + ' data-width="12%"'
2319
+ + ' data-before="0"'
2320
+ + ' data-after="-CHART_DURATION"'
2321
+ + ' data-points="CHART_DURATION"'
2322
+ + ' data-common-max="' + id + '"'
2323
+ + ' data-colors="' + NETDATA.colors[3] + '"'
2324
+ + ' data-decimal-digits="0"'
2325
+ + ' role="application"></div>';
2326
+ },
2327
+
2328
+ function (os, id) {
2329
+ void (os);
2330
+ return '<div data-netdata="' + id + '"'
2331
+ + ' data-dimensions="error"'
2332
+ + ' data-chart-library="gauge"'
2333
+ + ' data-title="Server Errors"'
2334
+ + ' data-units="requests/s"'
2335
+ + ' data-gauge-adjust="width"'
2336
+ + ' data-width="12%"'
2337
+ + ' data-before="0"'
2338
+ + ' data-after="-CHART_DURATION"'
2339
+ + ' data-points="CHART_DURATION"'
2340
+ + ' data-common-max="' + id + '"'
2341
+ + ' data-colors="' + NETDATA.colors[1] + '"'
2342
+ + ' data-decimal-digits="0"'
2343
+ + ' role="application"></div>';
2344
+ }
2345
+ ]
2346
+ },
2347
+
2348
+ 'web_log.request_processing_time': {
2349
+ mainheads: [
2350
+ function (os, id) {
2351
+ void (os);
2352
+ return '<div data-netdata="' + id + '"'
2353
+ + ' data-dimensions="avg"'
2354
+ + ' data-chart-library="gauge"'
2355
+ + ' data-title="Average Response Time"'
2356
+ + ' data-units="milliseconds"'
2357
+ + ' data-gauge-adjust="width"'
2358
+ + ' data-width="12%"'
2359
+ + ' data-before="0"'
2360
+ + ' data-after="-CHART_DURATION"'
2361
+ + ' data-points="CHART_DURATION"'
2362
+ + ' data-colors="' + NETDATA.colors[4] + '"'
2363
+ + ' data-decimal-digits="2"'
2364
+ + ' role="application"></div>';
2365
+ }
2366
+ ]
2367
+ },
2368
// ------------------------------------------------------------------------
2369
// Fronius Solar Power
2370