]> arthur.barton.de Git - netdata.git/commitdiff
add timing gauge at web_log overview
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 11 Feb 2017 14:11:14 +0000 (16:11 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 11 Feb 2017 14:11:14 +0000 (16:11 +0200)
web/dashboard_info.js
web/index.html

index 03b2a4cedbe4372d2e7035a5e1470e38c0726d6f..7da621ef10eae5b0ee80008faec771d4c4773eea 100644 (file)
@@ -921,6 +921,26 @@ netdataDashboard.context = {
         ]
     },
 
+    'web_log.response_time': {
+        mainheads: [
+            function(os, id) {
+                void(os);
+                return  '<div data-netdata="' + id + '"'
+                    + ' data-dimensions="avg"'
+                    + ' data-chart-library="gauge"'
+                    + ' data-title="Average Response"'
+                    + ' data-units="milliseconds"'
+                    + ' data-gauge-adjust="width"'
+                    + ' data-width="12%"'
+                    + ' data-before="0"'
+                    + ' data-after="-CHART_DURATION"'
+                    + ' data-points="CHART_DURATION"'
+                    + ' data-colors="' + NETDATA.colors[4] + '"'
+                    + ' role="application"></div>';
+            }
+        ]
+    },
+
     'web_log.detailed_response_codes': {
         info: 'Number of responses for each response code.'
     },
index 273502ae2930383d8ad0df4c4303a3c8debb0d59..b21998bdc0e08e8b43c0afe33ea9307a2f3abaf5 100644 (file)
             });
 
             NETDATA.requiredJs.push({
-                url: NETDATA.serverDefault + 'dashboard_info.js?v20170211-18',
+                url: NETDATA.serverDefault + 'dashboard_info.js?v20170211-19',
                 async: false,
                 isAlreadyLoaded: function() { return false; }
             });