You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2016/10/28 21:06:45 UTC

[22/50] incubator-trafficcontrol git commit: updated server scripted dashboard to add netstat and wrap_count, fixed read/write time to be a derivative

updated server scripted dashboard to add netstat and wrap_count, fixed read/write time to be a derivative


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/2b6b198c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/2b6b198c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/2b6b198c

Branch: refs/heads/master
Commit: 2b6b198c9fcbc58a34cb0a548cf0ef2a8c278e7f
Parents: 9ceebd3
Author: Dave Neuman <ne...@apache.org>
Authored: Wed Oct 19 07:25:15 2016 -0600
Committer: Jeremy Mitchell <mi...@gmail.com>
Committed: Fri Oct 28 15:04:12 2016 -0600

----------------------------------------------------------------------
 traffic_stats/grafana/traffic_ops_server.js | 684 +++++++++++++++++++++--
 1 file changed, 641 insertions(+), 43 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/2b6b198c/traffic_stats/grafana/traffic_ops_server.js
----------------------------------------------------------------------
diff --git a/traffic_stats/grafana/traffic_ops_server.js b/traffic_stats/grafana/traffic_ops_server.js
index 10ef058..2178095 100644
--- a/traffic_stats/grafana/traffic_ops_server.js
+++ b/traffic_stats/grafana/traffic_ops_server.js
@@ -60,8 +60,7 @@ dashboard.refresh = "30s";
 
 
 {
-  dashboard.rows.push(
-    {
+  dashboard.rows.push(    {
       "height": "250px",
       "panels": [
         {
@@ -73,19 +72,7 @@ dashboard.refresh = "30s";
           "id": 1,
           "datasource": "cache_stats",
           "renderer": "flot",
-          "x-axis": true,
-          "y-axis": true,
-          "y_formats": [
-            "bps",
-            "short"
-          ],
           "grid": {
-            "leftLogBase": 1,
-            "leftMax": null,
-            "rightMax": null,
-            "leftMin": null,
-            "rightMin": null,
-            "rightLogBase": 1,
             "threshold1": null,
             "threshold2": null,
             "threshold1Color": "rgba(216, 200, 27, 0.27)",
@@ -112,7 +99,9 @@ dashboard.refresh = "30s";
           "steppedLine": false,
           "tooltip": {
             "value_type": "cumulative",
-            "shared": true
+            "shared": true,
+            "sort": 0,
+            "msResolution": false
           },
           "timeFrom": null,
           "timeShift": null,
@@ -120,13 +109,65 @@ dashboard.refresh = "30s";
             {
               "measurement": "bandwidth.1min",
               "tags": {},
-              "query": "SELECT mean(value)*1000 FROM \"monthly\".\"bandwidth.1min\" WHERE hostname='" + which + "'  and $timeFilter GROUP BY time(60s)",
-              "rawQuery": true
+              "query": "SELECT mean(value) FROM \"monthly\".\"bandwidth.1min\" WHERE hostname= '" + which + "' and $timeFilter GROUP BY time(60s)",
+              "rawQuery": true,
+              "refId": "A",
+              "policy": "default",
+              "dsType": "influxdb",
+              "resultFormat": "time_series",
+              "groupBy": [
+                {
+                  "type": "time",
+                  "params": [
+                    "$interval"
+                  ]
+                },
+                {
+                  "type": "fill",
+                  "params": [
+                    "null"
+                  ]
+                }
+              ],
+              "select": [
+                [
+                  {
+                    "type": "field",
+                    "params": [
+                      "value"
+                    ]
+                  },
+                  {
+                    "type": "mean",
+                    "params": []
+                  }
+                ]
+              ],
+              "alias": "bandwidth"
             }
           ],
           "aliasColors": {},
           "seriesOverrides": [],
-          "links": []
+          "links": [],
+          "yaxes": [
+            {
+              "show": true,
+              "min": null,
+              "max": null,
+              "logBase": 1,
+              "format": "Kbits"
+            },
+            {
+              "show": true,
+              "min": null,
+              "max": null,
+              "logBase": 1,
+              "format": "short"
+            }
+          ],
+          "xaxis": {
+            "show": true
+          }
         }
       ],
       "title": "Row",
@@ -145,18 +186,7 @@ dashboard.refresh = "30s";
           "id": 2,
           "datasource": "cache_stats",
           "renderer": "flot",
-          "x-axis": true,
-          "y-axis": true,
-          "y_formats": [
-            "short"
-          ],
           "grid": {
-            "leftLogBase": 1,
-            "leftMax": null,
-            "rightMax": null,
-            "leftMin": null,
-            "rightMin": null,
-            "rightLogBase": 1,
             "threshold1": null,
             "threshold2": null,
             "threshold1Color": "rgba(216, 200, 27, 0.27)",
@@ -183,7 +213,9 @@ dashboard.refresh = "30s";
           "steppedLine": false,
           "tooltip": {
             "value_type": "cumulative",
-            "shared": true
+            "shared": true,
+            "sort": 0,
+            "msResolution": false
           },
           "timeFrom": null,
           "timeShift": null,
@@ -191,13 +223,64 @@ dashboard.refresh = "30s";
             {
               "measurement": "connections.1min",
               "tags": {},
-              "query": "SELECT mean(value) FROM \"monthly\".\"connections.1min\" WHERE hostname='" + which + "'  and $timeFilter GROUP BY time(60s)",
-              "rawQuery": true
+              "query": "SELECT mean(value) FROM \"monthly\".\"connections.1min\" WHERE hostname= '" + which + "' and $timeFilter GROUP BY time(60s)",
+              "rawQuery": true,
+              "refId": "A",
+              "policy": "default",
+              "dsType": "influxdb",
+              "resultFormat": "time_series",
+              "groupBy": [
+                {
+                  "type": "time",
+                  "params": [
+                    "$interval"
+                  ]
+                },
+                {
+                  "type": "fill",
+                  "params": [
+                    "null"
+                  ]
+                }
+              ],
+              "select": [
+                [
+                  {
+                    "type": "field",
+                    "params": [
+                      "value"
+                    ]
+                  },
+                  {
+                    "type": "mean",
+                    "params": []
+                  }
+                ]
+              ],
+              "alias": "connections"
             }
           ],
           "aliasColors": {},
           "seriesOverrides": [],
-          "links": []
+          "links": [],
+          "yaxes": [
+            {
+              "show": true,
+              "min": null,
+              "max": null,
+              "logBase": 1,
+              "format": "short"
+            },
+            {
+              "show": true,
+              "min": null,
+              "max": null,
+              "logBase": 1
+            }
+          ],
+          "xaxis": {
+            "show": true
+          }
         }
       ],
       "title": "Row",
@@ -299,9 +382,46 @@ dashboard.refresh = "30s";
                       "cpu_user"
                     ]
                   }
+                ],
+                [
+                  {
+                    "type": "field",
+                    "params": [
+                      "usage_guest"
+                    ]
+                  },
+                  {
+                    "type": "mean",
+                    "params": []
+                  },
+                  {
+                    "type": "alias",
+                    "params": [
+                      "cpu_guest"
+                    ]
+                  }
+                ],
+                [
+                  {
+                    "type": "field",
+                    "params": [
+                      "usage_steal"
+                    ]
+                  },
+                  {
+                    "type": "mean",
+                    "params": []
+                  },
+                  {
+                    "type": "alias",
+                    "params": [
+                      "cpu_steal"
+                    ]
+                  }
                 ]
               ],
-              "measurement": "cpu"
+              "measurement": "cpu",
+              "alias": "$col"
             }
           ],
           "datasource": "telegraf",
@@ -355,7 +475,8 @@ dashboard.refresh = "30s";
           "tooltip": {
             "value_type": "individual",
             "shared": true,
-            "msResolution": true
+            "msResolution": true,
+            "sort": 2
           },
           "timeFrom": null,
           "timeShift": null,
@@ -418,7 +539,8 @@ dashboard.refresh = "30s";
                   }
                 ]
               ],
-              "measurement": "mem"
+              "measurement": "mem",
+              "alias": "$col"
             }
           ],
           "datasource": "telegraf",
@@ -472,7 +594,8 @@ dashboard.refresh = "30s";
           "tooltip": {
             "value_type": "individual",
             "shared": true,
-            "msResolution": true
+            "msResolution": true,
+            "sort": 0
           },
           "timeFrom": null,
           "timeShift": null,
@@ -579,7 +702,8 @@ dashboard.refresh = "30s";
                   }
                 ]
               ],
-              "measurement": "system"
+              "measurement": "system",
+              "alias": "$col"
             }
           ],
           "datasource": "telegraf",
@@ -633,7 +757,8 @@ dashboard.refresh = "30s";
           "tooltip": {
             "value_type": "cumulative",
             "shared": true,
-            "msResolution": true
+            "msResolution": true,
+            "sort": 0
           },
           "timeFrom": null,
           "timeShift": null,
@@ -685,16 +810,53 @@ dashboard.refresh = "30s";
                     ]
                   },
                   {
-                    "type": "mean",
+                    "type": "sum",
                     "params": []
                   },
                   {
+                    "type": "non_negative_derivative",
+                    "params": [
+                      "10s"
+                    ]
+                  },
+                  {
                     "type": "alias",
                     "params": [
                       "read_time"
                     ]
                   }
-                ],
+                ]
+              ],
+              "measurement": "diskio",
+              "alias": "$col"
+            },
+            {
+              "refId": "B",
+              "policy": "default",
+              "dsType": "influxdb",
+              "resultFormat": "time_series",
+              "tags": [
+                {
+                  "key": "host",
+                  "operator": "=~",
+                  "value": "/" + which + "/"
+                }
+              ],
+              "groupBy": [
+                {
+                  "type": "time",
+                  "params": [
+                    "$interval"
+                  ]
+                },
+                {
+                  "type": "fill",
+                  "params": [
+                    "null"
+                  ]
+                }
+              ],
+              "select": [
                 [
                   {
                     "type": "field",
@@ -703,10 +865,16 @@ dashboard.refresh = "30s";
                     ]
                   },
                   {
-                    "type": "mean",
+                    "type": "sum",
                     "params": []
                   },
                   {
+                    "type": "non_negative_derivative",
+                    "params": [
+                      "10s"
+                    ]
+                  },
+                  {
                     "type": "alias",
                     "params": [
                       "write_time"
@@ -714,7 +882,8 @@ dashboard.refresh = "30s";
                   }
                 ]
               ],
-              "measurement": "diskio"
+              "measurement": "diskio",
+              "alias": "$col"
             }
           ],
           "datasource": "telegraf",
@@ -768,6 +937,435 @@ dashboard.refresh = "30s";
           "tooltip": {
             "value_type": "cumulative",
             "shared": true,
+            "msResolution": true,
+            "sort": 0
+          },
+          "timeFrom": null,
+          "timeShift": null,
+          "aliasColors": {},
+          "seriesOverrides": [],
+          "links": []
+        }
+      ]
+    },
+    {
+      "title": "Wrap Count and netstat",
+      "height": "250px",
+      "editable": true,
+      "collapse": false,
+      "panels": [
+        {
+          "title": "wrap count",
+          "error": false,
+          "span": 6,
+          "editable": true,
+          "type": "graph",
+          "isNew": true,
+          "id": 7,
+          "targets": [
+            {
+              "refId": "A",
+              "policy": "monthly",
+              "dsType": "influxdb",
+              "resultFormat": "time_series",
+              "tags": [
+              {
+                  "key": "hostname",
+                  "operator": "=~",
+                  "value": "/" + which + "/"
+                }
+              ],
+              "groupBy": [
+                {
+                  "type": "time",
+                  "params": [
+                    "$interval"
+                  ]
+                },
+                {
+                  "type": "fill",
+                  "params": [
+                    "null"
+                  ]
+                }
+              ],
+              "select": [
+                [
+                  {
+                    "type": "field",
+                    "params": [
+                      "vol1_wrap_count"
+                    ]
+                  },
+                  {
+                    "type": "mean",
+                    "params": []
+                  },
+                  {
+                    "type": "alias",
+                    "params": [
+                      "vol1"
+                    ]
+                  }
+                ],
+                [
+                  {
+                    "type": "field",
+                    "params": [
+                      "vol2_wrap_count"
+                    ]
+                  },
+                  {
+                    "type": "mean",
+                    "params": []
+                  },
+                  {
+                    "type": "alias",
+                    "params": [
+                      "vol2"
+                    ]
+                  }
+                ]
+              ],
+              "measurement": "wrap_count.1min",
+              "alias": "$col"
+            }
+          ],
+          "datasource": "cache_stats",
+          "renderer": "flot",
+          "yaxes": [
+            {
+              "label": null,
+              "show": true,
+              "logBase": 1,
+              "min": null,
+              "max": null,
+              "format": "short"
+            },
+            {
+              "label": null,
+              "show": true,
+              "logBase": 1,
+              "min": null,
+              "max": null,
+              "format": "short"
+            }
+          ],
+          "xaxis": {
+            "show": true
+          },
+          "grid": {
+            "threshold1": null,
+            "threshold2": null,
+            "threshold1Color": "rgba(216, 200, 27, 0.27)",
+            "threshold2Color": "rgba(234, 112, 112, 0.22)"
+          },
+          "lines": true,
+          "fill": 1,
+          "linewidth": 2,
+          "points": false,
+          "pointradius": 5,
+          "bars": false,
+          "stack": false,
+          "percentage": false,
+          "legend": {
+            "show": true,
+            "values": false,
+            "min": false,
+            "max": false,
+            "current": false,
+            "total": false,
+            "avg": false
+          },
+          "nullPointMode": "connected",
+          "steppedLine": false,
+          "tooltip": {
+            "value_type": "cumulative",
+            "shared": true,
+            "sort": 0,
+            "msResolution": true
+          },
+          "timeFrom": null,
+          "timeShift": null,
+          "aliasColors": {},
+          "seriesOverrides": [],
+          "links": []
+        },
+        {
+          "title": "netstat",
+          "error": false,
+          "span": 6,
+          "editable": true,
+          "type": "graph",
+          "isNew": true,
+          "id": 8,
+          "targets": [
+            {
+              "refId": "A",
+              "policy": "default",
+              "dsType": "influxdb",
+              "resultFormat": "time_series",
+              "tags": [
+                {
+                  "key": "host",
+                  "operator": "=~",
+                  "value": "/" + which + "/"
+                }
+              ],
+              "groupBy": [
+                {
+                  "type": "time",
+                  "params": [
+                    "$interval"
+                  ]
+                },
+                {
+                  "type": "fill",
+                  "params": [
+                    "null"
+                  ]
+                }
+              ],
+              "select": [
+                [
+                  {
+                    "type": "field",
+                    "params": [
+                      "tcp_close"
+                    ]
+                  },
+                  {
+                    "type": "mean",
+                    "params": []
+                  },
+                  {
+                    "type": "alias",
+                    "params": [
+                      "tcp_close"
+                    ]
+                  }
+                ],
+                [
+                  {
+                    "type": "field",
+                    "params": [
+                      "tcp_close_wait"
+                    ]
+                  },
+                  {
+                    "type": "mean",
+                    "params": []
+                  },
+                  {
+                    "type": "alias",
+                    "params": [
+                      "tcp_close_wait"
+                    ]
+                  }
+                ],
+                [
+                  {
+                    "type": "field",
+                    "params": [
+                      "tcp_established"
+                    ]
+                  },
+                  {
+                    "type": "mean",
+                    "params": []
+                  },
+                  {
+                    "type": "alias",
+                    "params": [
+                      "tcp_established"
+                    ]
+                  }
+                ],
+                [
+                  {
+                    "type": "field",
+                    "params": [
+                      "tcp_time_wait"
+                    ]
+                  },
+                  {
+                    "type": "mean",
+                    "params": []
+                  },
+                  {
+                    "type": "alias",
+                    "params": [
+                      "tcp_time_wait"
+                    ]
+                  }
+                ],
+                [
+                  {
+                    "type": "field",
+                    "params": [
+                      "tcp_closing"
+                    ]
+                  },
+                  {
+                    "type": "mean",
+                    "params": []
+                  },
+                  {
+                    "type": "alias",
+                    "params": [
+                      "tcp_closing"
+                    ]
+                  }
+                ],
+                [
+                  {
+                    "type": "field",
+                    "params": [
+                      "tcp_fin_wait1"
+                    ]
+                  },
+                  {
+                    "type": "mean",
+                    "params": []
+                  },
+                  {
+                    "type": "alias",
+                    "params": [
+                      "tcp_fin_wait1"
+                    ]
+                  }
+                ],
+                [
+                  {
+                    "type": "field",
+                    "params": [
+                      "tcp_fin_wait2"
+                    ]
+                  },
+                  {
+                    "type": "mean",
+                    "params": []
+                  },
+                  {
+                    "type": "alias",
+                    "params": [
+                      "tcp_fin_wait2"
+                    ]
+                  }
+                ],
+                [
+                  {
+                    "type": "field",
+                    "params": [
+                      "tcp_last_ack"
+                    ]
+                  },
+                  {
+                    "type": "mean",
+                    "params": []
+                  },
+                  {
+                    "type": "alias",
+                    "params": [
+                      "tcp_last_ack"
+                    ]
+                  }
+                ],
+                [
+                  {
+                    "type": "field",
+                    "params": [
+                      "tcp_syn_recv"
+                    ]
+                  },
+                  {
+                    "type": "mean",
+                    "params": []
+                  },
+                  {
+                    "type": "alias",
+                    "params": [
+                      "tcp_syn_recv"
+                    ]
+                  }
+                ],
+                [
+                  {
+                    "type": "field",
+                    "params": [
+                      "tcp_syn_sent"
+                    ]
+                  },
+                  {
+                    "type": "mean",
+                    "params": []
+                  },
+                  {
+                    "type": "alias",
+                    "params": [
+                      "tcp_syn_sent"
+                    ]
+                  }
+                ]
+              ],
+              "measurement": "netstat",
+              "alias": "$col"
+            }
+          ],
+          "datasource": "telegraf",
+          "renderer": "flot",
+          "yaxes": [
+            {
+              "label": null,
+              "show": true,
+              "logBase": 1,
+              "min": null,
+              "max": null,
+              "format": "short"
+            },
+            {
+              "label": null,
+              "show": true,
+              "logBase": 1,
+              "min": null,
+              "max": null,
+              "format": "short"
+            }
+          ],
+          "xaxis": {
+            "show": true
+          },
+          "grid": {
+            "threshold1": null,
+            "threshold2": null,
+            "threshold1Color": "rgba(216, 200, 27, 0.27)",
+            "threshold2Color": "rgba(234, 112, 112, 0.22)"
+          },
+          "lines": true,
+          "fill": 1,
+          "linewidth": 2,
+          "points": false,
+          "pointradius": 5,
+          "bars": false,
+          "stack": false,
+          "percentage": false,
+          "legend": {
+            "show": true,
+            "values": false,
+            "min": false,
+            "max": false,
+            "current": false,
+            "total": false,
+            "avg": false,
+            "hideEmpty": true,
+            "hideZero": true
+          },
+          "nullPointMode": "connected",
+          "steppedLine": false,
+          "tooltip": {
+            "value_type": "cumulative",
+            "shared": true,
+            "sort": 2,
             "msResolution": true
           },
           "timeFrom": null,