]> arthur.barton.de Git - netdata.git/commitdiff
added sharing info on all pages; added average response time at demosites.html
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 21 May 2016 19:28:48 +0000 (22:28 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 21 May 2016 19:28:48 +0000 (22:28 +0300)
web/dashboard.html
web/dashboard.js
web/demo.html
web/demo2.html
web/demosites.html
web/index.html
web/tv.html

index 2b6c80684512df1839fa120c95a0e318401dab94..d23ec6bf9bfb66ba41549ef3bf9a86f8b031939e 100644 (file)
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
        <meta name="author" content="costa@tsaousis.gr">
+
+       <meta property="og:locale" content="en_US" />
+       <meta property="og:image" content="images/seo-performance-512.png"/>
+       <meta property="og:url" content="http://my-netdata.io/"/>
+       <meta property="og:type" content="website"/>
+       <meta property="og:site_name" content="netdata"/>
+       <meta property="og:title" content="netdata - real-time performance monitoring, done right!"/>
+       <meta property="og:description" content="netdata is an embeddable real-time performance monitoring solution, for Linux systems, micro services, applications, APIs, SNMP devices. Stunning dashboards, blazzingly fast and extremely interactive." />
 </head>
 <body>
 
@@ -646,4 +654,4 @@ So, to avoid flashing the charts, we destroy and re-create the charts on each up
        <!-- <script> netdataServer = "http://box:19999"; </script> -->
 
        <!-- load the dashboard manager - it will do the rest -->
-       <script type="text/javascript" src="dashboard.js?v37"></script>
+       <script type="text/javascript" src="dashboard.js?v38"></script>
index 27847a243f443a0de84dbcac0f1f2e21579ac4b4..d9c723663c9038e34524ae400b16b043def26820 100644 (file)
                        // mark all dimensions as invalid
                        this.dimensions_visibility.invalidateAll();
 
-                       var genLabel = function(state, parent, name, count) {
+                       var genLabel = function(state, parent, dim, name, count) {
                                var color = state._chartDimensionColor(name);
 
                                var user_element = null;
-                               var user_id = self.data('show-value-of-' + name + '-at') || null;
+                               var user_id = self.data('show-value-of-' + dim + '-at') || null;
                                if(user_id !== null) {
                                        user_element = document.getElementById(user_id) || null;
                                        if(user_element === null)
                                        this.log('labels from data: "' + this.element_legend_childs.series.labels_key + '"');
 
                                for(var i = 0, len = this.data.dimension_names.length; i < len ;i++) {
-                                       genLabel(this, content, this.data.dimension_names[i], i);
+                                       genLabel(this, content, this.data.dimension_ids[i], this.data.dimension_names[i], i);
                                }
                        }
                        else {
                                var tmp = new Array();
                                for(var dim in this.chart.dimensions) {
                                        tmp.push(this.chart.dimensions[dim].name);
-                                       genLabel(this, content, this.chart.dimensions[dim].name, i);
+                                       genLabel(this, content, dim, this.chart.dimensions[dim].name, i);
                                }
                                this.element_legend_childs.series.labels_key = tmp.toString();
                                if(this.debug === true)
                        showLabelsOnHighlight: self.data('dygraph-showlabelsonhighlight') || true,
                        hideOverlayOnMouseOut: self.data('dygraph-hideoverlayonmouseout') || true,
 
+                       includeZero: self.data('dygraph-includezero') || false,
+                       xRangePad: self.data('dygraph-xrangepad') || 0,
+                       yRangePad: self.data('dygraph-yrangepad') || 1,
+
                        ylabel: state.units,
                        yLabelWidth: self.data('dygraph-ylabelwidth') || 12,
 
                        state.dygraph_options.labelsDivStyles.width = '120px';
                        state.dygraph_options.labelsSeparateLines = true;
                        state.dygraph_options.rightGap = 0;
+                       state.dygraph_options.yRangePad = 1;
                }
 
                if(smooth === true) {
index 4b91d83940e227762a43f92e5ac669abe59c30bc..b56ffdf76b45b0da6ae092867251fdadd7f0166b 100644 (file)
        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
        <meta name="author" content="costa@tsaousis.gr">
 
-       <script type="text/javascript" src="dashboard.js?v37"></script>
+       <meta property="og:locale" content="en_US" />
+       <meta property="og:image" content="images/seo-performance-512.png"/>
+       <meta property="og:url" content="http://my-netdata.io/"/>
+       <meta property="og:type" content="website"/>
+       <meta property="og:site_name" content="netdata"/>
+       <meta property="og:title" content="netdata - real-time performance monitoring, done right!"/>
+       <meta property="og:description" content="netdata is an embeddable real-time performance monitoring solution, for Linux systems, micro services, applications, APIs, SNMP devices. Stunning dashboards, blazzingly fast and extremely interactive." />
+       
+       <script type="text/javascript" src="dashboard.js?v38"></script>
 </head>
 <body>
 
index 9530d914e44bb432238841d75e16d03c6b5b268f..c5f1c76da5a099d521f0c6cc969654150a575674 100644 (file)
        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
        <meta name="author" content="costa@tsaousis.gr">
 
+       <meta property="og:locale" content="en_US" />
+       <meta property="og:image" content="images/seo-performance-512.png"/>
+       <meta property="og:url" content="http://my-netdata.io/"/>
+       <meta property="og:type" content="website"/>
+       <meta property="og:site_name" content="netdata"/>
+       <meta property="og:title" content="netdata - real-time performance monitoring, done right!"/>
+       <meta property="og:description" content="netdata is an embeddable real-time performance monitoring solution, for Linux systems, micro services, applications, APIs, SNMP devices. Stunning dashboards, blazzingly fast and extremely interactive." />
+       
        <script>var netdataTheme = 'slate';</script>
-       <script type="text/javascript" src="dashboard.js?v37"></script>
+       <script type="text/javascript" src="dashboard.js?v38"></script>
 </head>
 <body>
 
index f5047f4b2492d7b9bb6b11cb2af0c515081b1b83..fcb3339e15d45ac7facb000a2cecb8ff730f10ff 100644 (file)
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
 
+       <meta property="og:locale" content="en_US" />
+       <meta property="og:image" content="images/seo-performance-512.png"/>
+       <meta property="og:url" content="http://my-netdata.io/"/>
+       <meta property="og:type" content="website"/>
+       <meta property="og:site_name" content="netdata"/>
+       <meta property="og:title" content="netdata - real-time performance monitoring, done right!"/>
+       <meta property="og:description" content="netdata is an embeddable real-time performance monitoring solution, for Linux systems, micro services, applications, APIs, SNMP devices. Stunning dashboards, blazzingly fast and extremely interactive." />
+
        <script>
        // --- OPTIONS FOR THE DASHBOARD --
 
@@ -42,7 +50,7 @@
                and that you have chown it to be owned by netdata:netdata
        -->
        <!-- <script type="text/javascript" src="http://my.server:19999/dashboard.js"></script> -->
-       <script type="text/javascript" src="dashboard.js?v37"></script>
+       <script type="text/javascript" src="dashboard.js?v38"></script>
 
        <script>
        // --- OPTIONS FOR THE CHARTS --
@@ -618,81 +626,158 @@ body {
        </div>
 
        <div class="mytitle">
-               CPU Usage of the netdata user
+               Netdata performance
        </div>
        <div class="mycontent">
                netdata monitors <b>users</b>, <b>user groups</b>, <b>applications (process trees)</b>
                <br/>
-               and <b>containers</b> (<code>lxc</code>, <code>docker</code>, etc.)
+               <b>containers</b> (<code>lxc</code>, <code>docker</code>, etc.) and SNMP devices.
        </div>
 
-       <div style="padding-top: 4vw; width: 100%; text-align: center; font-size: 1.5vw;">
+       <!-- Nav tabs -->
+       <ul class="nav nav-tabs" role="tablist" style="padding-top: 1vw;">
+               <li role="presentation" class="active"><a href="#netdata_cpu" aria-controls="netdata_cpu" role="tab" data-toggle="tab">CPU</a></li>
+               <li role="presentation"><a href="#netdata_avgtime" aria-controls="netdata_avgtime" role="tab" data-toggle="tab">Average Response Time</a></li>
+       </ul>
 
-               <div class="mysparkline">
-                       <div class="mysparkline-overchart-label">
-                               <b>EU - London</b>, CPU % of a single core
+       <!-- Tab panes -->
+       <div class="tab-content">
+               <div role="tabpanel" class="tab-pane active" id="netdata_cpu">
+                       <div class="mysparkline">
+                               <div class="mysparkline-overchart-label">
+                                       <b>EU - London</b>, CPU % of a single core
+                               </div>
+                               <div class="mysparkline-overchart-value" id="users.cpu.netdata1" >
+                               </div>
+                               <div data-netdata="users.cpu"
+                                               data-dimensions="netdata"
+                                               data-host="//london.my-netdata.io"
+                                               data-chart-library="dygraph"
+                                               data-dygraph-theme="sparkline"
+                                               data-dygraph-type="area"
+                                               data-width="100%"
+                                               data-height="100%"
+                                               data-after="-300"
+                                               data-colors="#558855"
+                                               data-show-value-of-netdata-at="users.cpu.netdata1"
+                                               ></div>
                        </div>
-                       <div class="mysparkline-overchart-value" id="users.cpu.netdata1" >
+
+                       <div class="mysparkline">
+                               <div class="mysparkline-overchart-label">
+                                       <b>US - Atlanta</b>, CPU % of a single core
+                               </div>
+                               <div class="mysparkline-overchart-value" id="users.cpu.netdata2" >
+                               </div>
+                               <div data-netdata="users.cpu"
+                                               data-dimensions="netdata"
+                                               data-host="//atlanta.my-netdata.io"
+                                               data-chart-library="dygraph"
+                                               data-dygraph-theme="sparkline"
+                                               data-dygraph-type="area"
+                                               data-width="100%"
+                                               data-height="100%"
+                                               data-after="-300"
+                                               data-colors="#885555"
+                                               data-show-value-of-netdata-at="users.cpu.netdata2"
+                                               ></div>
                        </div>
-                       <div data-netdata="users.cpu"
-                                       data-dimensions="netdata"
-                                       data-host="//london.my-netdata.io"
-                                       data-chart-library="dygraph"
-                                       data-dygraph-theme="sparkline"
-                                       data-dygraph-type="area"
-                                       data-width="100%"
-                                       data-height="100%"
-                                       data-after="-300"
-                                       data-colors="#558855"
-                                       data-show-value-of-netdata-at="users.cpu.netdata1"
-                                       ></div>
-               </div>
 
-               <div class="mysparkline">
-                       <div class="mysparkline-overchart-label">
-                               <b>US - Atlanta</b>, CPU % of a single core
+                       <div class="mysparkline">
+                               <div class="mysparkline-overchart-label">
+                                       <b>EU - Greece</b>, CPU % of a single core
+                               </div>
+                               <div class="mysparkline-overchart-value" id="users.cpu.netdata3" >
+                               </div>
+                               <div data-netdata="users.cpu"
+                                               data-dimensions="netdata"
+                                               data-host="//athens.my-netdata.io"
+                                               data-chart-library="dygraph"
+                                               data-dygraph-theme="sparkline"
+                                               data-dygraph-type="area"
+                                               data-width="100%"
+                                               data-height="100%"
+                                               data-after="-300"
+                                               data-colors="#555588"
+                                               data-show-value-of-netdata-at="users.cpu.netdata3"
+                                               ></div>
                        </div>
-                       <div class="mysparkline-overchart-value" id="users.cpu.netdata2" >
+
+                       <div style="width: 100%; text-align: right; font-size: 1vw;">
+                               <i class="fa fa-comment" aria-hidden="true"></i> <i>this utilization is about the whole netdata process tree and the percentage is of <b>a single core</b>!
+                               <br/>including <b>BASH</b> plugins (it monitors <code>mysql</code> on the demo sites), <b>node.js</b> plugins (it monitors <code>bind9</code> on the demo sites), etc.
+                               <br/>and including the chart refreshes for the dashboards of all viewers.</i>
                        </div>
-                       <div data-netdata="users.cpu"
-                                       data-dimensions="netdata"
-                                       data-host="//atlanta.my-netdata.io"
-                                       data-chart-library="dygraph"
-                                       data-dygraph-theme="sparkline"
-                                       data-dygraph-type="area"
-                                       data-width="100%"
-                                       data-height="100%"
-                                       data-after="-300"
-                                       data-colors="#885555"
-                                       data-show-value-of-netdata-at="users.cpu.netdata2"
-                                       ></div>
                </div>
 
-               <div class="mysparkline">
-                       <div class="mysparkline-overchart-label">
-                               <b>EU - Greece</b>, CPU % of a single core
+               <div role="tabpanel" class="tab-pane" id="netdata_avgtime">
+                       <div class="mysparkline">
+                               <div class="mysparkline-overchart-label">
+                                       <b>EU - London</b>, API average response time in milliseconds
+                               </div>
+                               <div class="mysparkline-overchart-value" id="netdata.response_time1" >
+                               </div>
+                               <div data-netdata="netdata.response_time"
+                                               data-host="//london.my-netdata.io"
+                                               data-chart-library="dygraph"
+                                               data-dygraph-theme="sparkline"
+                                               data-dygraph-type="area"
+                                               data-width="100%"
+                                               data-height="100%"
+                                               data-after="-300"
+                                               data-colors="#558855"
+                                               data-show-value-of-response_time-at="netdata.response_time1"
+                                               ></div>
+                       </div>
+
+                       <div class="mysparkline">
+                               <div class="mysparkline-overchart-label">
+                                       <b>US - Atlanta</b>, API average response time in milliseconds
+                               </div>
+                               <div class="mysparkline-overchart-value" id="netdata.response_time2" >
+                               </div>
+                               <div data-netdata="netdata.response_time"
+                                               data-host="//atlanta.my-netdata.io"
+                                               data-chart-library="dygraph"
+                                               data-dygraph-theme="sparkline"
+                                               data-dygraph-type="area"
+                                               data-width="100%"
+                                               data-height="100%"
+                                               data-after="-300"
+                                               data-colors="#885555"
+                                               data-show-value-of-response_time-at="netdata.response_time2"
+                                               ></div>
                        </div>
-                       <div class="mysparkline-overchart-value" id="users.cpu.netdata3" >
+
+                       <div class="mysparkline">
+                               <div class="mysparkline-overchart-label">
+                                       <b>EU - Greece</b>, API average response time in milliseconds
+                               </div>
+                               <div class="mysparkline-overchart-value" id="netdata.response_time3" >
+                               </div>
+                               <div data-netdata="netdata.response_time"
+                                               data-host="//athens.my-netdata.io"
+                                               data-chart-library="dygraph"
+                                               data-dygraph-theme="sparkline"
+                                               data-dygraph-type="area"
+                                               data-width="100%"
+                                               data-height="100%"
+                                               data-after="-300"
+                                               data-colors="#555588"
+                                               data-show-value-of-response_time-at="netdata.response_time3"
+                                               ></div>
+                       </div>
+
+                       <div style="width: 100%; text-align: right; font-size: 1vw;">
+                               <i class="fa fa-comment" aria-hidden="true"></i> <i>netdata is really <b>fast</b> (the values are milliseconds!)
+                               <br/>
+                               These values include everything, from the reception of the first byte to the dispatch of the last, including gzip compression.
+                               <br/>
+                               Values above 2-3ms are usually chart refreshes of charts with several dimensions, charts with very long durations (zoomed out), or file transfers.
+                               </i>
                        </div>
-                       <div data-netdata="users.cpu"
-                                       data-dimensions="netdata"
-                                       data-host="//athens.my-netdata.io"
-                                       data-chart-library="dygraph"
-                                       data-dygraph-theme="sparkline"
-                                       data-dygraph-type="area"
-                                       data-width="100%"
-                                       data-height="100%"
-                                       data-after="-300"
-                                       data-colors="#555588"
-                                       data-show-value-of-netdata-at="users.cpu.netdata3"
-                                       ></div>
                </div>
        </div>
-       <div style="width: 100%; text-align: right; font-size: 1vw;">
-               <i class="fa fa-comment" aria-hidden="true"></i> <i>this utilization is about the whole netdata process tree and the percentage is of <b>a single core</b>!
-               <br/>including <b>BASH</b> plugins (it monitors <code>mysql</code> on the demo sites), <b>node.js</b> plugins (it monitors <code>bind9</code> on the demo sites), etc.
-               <br/>and including the chart refreshes for the dashboards of all viewers.</i>
-       </div>
 
        <div style="padding-top: 6vw; width: 100%; text-align: center; font-size: 2vw;">
                want to know more?
index 95fc8abec8cc2ac88faee54f5aa83490bb3c831b..b72943d82172386b26b0efd33f220b08567530ad 100644 (file)
        <link rel="icon" type="image/png" sizes="24x24" href="images/seo-performance-24.png">
        <link rel="icon" type="image/png" sizes="16x16" href="images/seo-performance-16.png">
 
+       <meta property="og:locale" content="en_US" />
+       <meta property="og:image" content="images/seo-performance-512.png"/>
+       <meta property="og:url" content="http://my-netdata.io/"/>
+       <meta property="og:type" content="website"/>
+       <meta property="og:site_name" content="netdata"/>
+       <meta property="og:title" content="netdata - real-time performance monitoring, done right!"/>
+       <meta property="og:description" content="netdata is an embeddable real-time performance monitoring solution, for Linux systems, micro services, applications, APIs, SNMP devices. Stunning dashboards, blazzingly fast and extremely interactive." />
+
        <style>
 
        /* prevent body from hiding under the navbar */
index 58f08eb396b64f779567305840e1ca467e13b19f..e0fc7e877f4044c9f98f3696a3a1470d27d2ac12 100644 (file)
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
 
+       <meta property="og:locale" content="en_US" />
+       <meta property="og:image" content="images/seo-performance-512.png"/>
+       <meta property="og:url" content="http://my-netdata.io/"/>
+       <meta property="og:type" content="website"/>
+       <meta property="og:site_name" content="netdata"/>
+       <meta property="og:title" content="netdata - real-time performance monitoring, done right!"/>
+       <meta property="og:description" content="netdata is an embeddable real-time performance monitoring solution, for Linux systems, micro services, applications, APIs, SNMP devices. Stunning dashboards, blazzingly fast and extremely interactive." />
+       
        <script>
        // this section has to appear before loading dashboard.js
 
@@ -40,7 +48,7 @@
                and that you have chown it to be owned by netdata:netdata
        -->
        <!-- <script type="text/javascript" src="http://my.server:19999/dashboard.js"></script> -->
-       <script type="text/javascript" src="dashboard.js?v37"></script>
+       <script type="text/javascript" src="dashboard.js?v38"></script>
 
        <script>
        // Set options for TV operation