Remove useless items and add fixes in contrail dashboard
Change-Id: I81c6f42b784724c81f7f0e799fc45d1e9676ed57
diff --git a/opencontrail/files/grafana_dashboards/contrail_influxdb.json b/opencontrail/files/grafana_dashboards/contrail_influxdb.json
index e3a444a..0a3fb3f 100644
--- a/opencontrail/files/grafana_dashboards/contrail_influxdb.json
+++ b/opencontrail/files/grafana_dashboards/contrail_influxdb.json
@@ -759,7 +759,7 @@
"current": false,
"max": false,
"min": false,
- "show": true,
+ "show": false,
"total": false,
"values": false
},
@@ -777,6 +777,7 @@
"steppedLine": false,
"targets": [
{
+ "alias": "#vrouter-agents",
"dsType": "influxdb",
"groupBy": [
{
@@ -1904,7 +1905,13 @@
{
"key": "backend",
"operator": "=",
- "value": "contrail-discovery"
+ "value": "contrail_discovery"
+ },
+ {
+ "condition": "AND",
+ "key": "environment_label",
+ "operator": "=~",
+ "value": "/^$environment$/"
}
]
}
@@ -2323,7 +2330,7 @@
"current": false,
"max": false,
"min": false,
- "show": true,
+ "show": false,
"total": false,
"values": false
},
@@ -2341,6 +2348,7 @@
"steppedLine": false,
"targets": [
{
+ "alias": "#neutron-subnets",
"dsType": "influxdb",
"groupBy": [
{
@@ -2455,6 +2463,7 @@
"steppedLine": false,
"targets": [
{
+ "alias": "($tag_state)",
"dsType": "influxdb",
"groupBy": [
{
@@ -2558,7 +2567,7 @@
"current": false,
"max": false,
"min": false,
- "show": true,
+ "show": false,
"total": false,
"values": false
},
@@ -2879,511 +2888,6 @@
"check-api-contrail-5997.mean": "#052B51",
"check-api-contrail-9100.mean": "#0A437C"
},
- "bars": true,
- "datasource": null,
- "editable": true,
- "error": false,
- "fill": 1,
- "grid": {
- "threshold1": null,
- "threshold1Color": "rgba(216, 200, 27, 0.27)",
- "threshold2": null,
- "threshold2Color": "rgba(234, 112, 112, 0.22)"
- },
- "id": 7,
- "interval": "> 90s",
- "isNew": true,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": false,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "percentage": false,
- "pointradius": 1,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "span": 12,
- "stack": true,
- "steppedLine": false,
- "targets": [
- {
- "dsType": "influxdb",
- "groupBy": [
- {
- "params": [
- "$interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "hide": false,
- "measurement": "check-api-contrail-5997",
- "policy": "default",
- "query": "SELECT mean(\"value\") FROM \"check-api-contrail-5997\" WHERE $timeFilter GROUP BY time($interval) fill(null)",
- "rawQuery": false,
- "refId": "A",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "value"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- }
- ]
- ],
- "tags": [
- {
- "key": "environment_label",
- "operator": "=~",
- "value": "/^$environment$/"
- }
- ]
- },
- {
- "dsType": "influxdb",
- "groupBy": [
- {
- "params": [
- "$interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "check-api-contrail-8080",
- "policy": "default",
- "refId": "B",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "value"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- }
- ]
- ],
- "tags": [
- {
- "key": "environment_label",
- "operator": "=~",
- "value": "/^$environment$/"
- }
- ]
- },
- {
- "dsType": "influxdb",
- "groupBy": [
- {
- "params": [
- "$interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "check-api-contrail-8083",
- "policy": "default",
- "refId": "C",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "value"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- }
- ]
- ],
- "tags": [
- {
- "key": "environment_label",
- "operator": "=~",
- "value": "/^$environment$/"
- }
- ]
- },
- {
- "dsType": "influxdb",
- "groupBy": [
- {
- "params": [
- "$interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "check-api-contrail-8084",
- "policy": "default",
- "refId": "D",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "value"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- }
- ]
- ],
- "tags": [
- {
- "key": "environment_label",
- "operator": "=~",
- "value": "/^$environment$/"
- }
- ]
- },
- {
- "dsType": "influxdb",
- "groupBy": [
- {
- "params": [
- "$interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "check-api-contrail-8089",
- "policy": "default",
- "refId": "E",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "value"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- }
- ]
- ],
- "tags": [
- {
- "key": "environment_label",
- "operator": "=~",
- "value": "/^$environment$/"
- }
- ]
- },
- {
- "dsType": "influxdb",
- "groupBy": [
- {
- "params": [
- "$interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "check-api-contrail-8090",
- "policy": "default",
- "refId": "F",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "value"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- }
- ]
- ],
- "tags": [
- {
- "key": "environment_label",
- "operator": "=~",
- "value": "/^$environment$/"
- }
- ]
- },
- {
- "dsType": "influxdb",
- "groupBy": [
- {
- "params": [
- "$interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "check-api-contrail-8143",
- "policy": "default",
- "refId": "G",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "value"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- }
- ]
- ],
- "tags": [
- {
- "key": "environment_label",
- "operator": "=~",
- "value": "/^$environment$/"
- }
- ]
- },
- {
- "dsType": "influxdb",
- "groupBy": [
- {
- "params": [
- "$interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "check-api-contrail-9081",
- "policy": "default",
- "refId": "H",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "value"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- }
- ]
- ],
- "tags": [
- {
- "key": "environment_label",
- "operator": "=~",
- "value": "/^$environment$/"
- }
- ]
- },
- {
- "dsType": "influxdb",
- "groupBy": [
- {
- "params": [
- "$interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "check-api-contrail-9100",
- "policy": "default",
- "refId": "I",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "value"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- }
- ]
- ],
- "tags": [
- {
- "key": "environment_label",
- "operator": "=~",
- "value": "/^$environment$/"
- }
- ]
- },
- {
- "dsType": "influxdb",
- "groupBy": [
- {
- "params": [
- "$interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "check-api-contrail-9110",
- "policy": "default",
- "refId": "J",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "value"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- }
- ]
- ],
- "tags": [
- {
- "key": "environment_label",
- "operator": "=~",
- "value": "/^$environment$/"
- }
- ]
- }
- ],
- "timeFrom": null,
- "timeShift": null,
- "title": "Contrail APIs Reply Time",
- "tooltip": {
- "msResolution": true,
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "show": true
- },
- "yaxes": [
- {
- "format": "short",
- "label": "(ms)",
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- },
- {
- "format": "short",
- "label": null,
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- }
- ]
- }
- ],
- "title": "New row"
- },
- {
- "collapse": false,
- "editable": true,
- "height": "250px",
- "panels": [
- {
- "aliasColors": {
- "check-api-contrail-5997.mean": "#052B51",
- "check-api-contrail-9100.mean": "#0A437C"
- },
"bars": false,
"datasource": null,
"editable": true,
@@ -4090,7 +3594,7 @@
],
"timeFrom": null,
"timeShift": null,
- "title": "Contrail Process",
+ "title": "Contrail Processes",
"tooltip": {
"msResolution": true,
"shared": true,
@@ -4966,132 +4470,6 @@
"show": true
}
]
- },
- {
- "aliasColors": {
- "check-api-contrail-5997.mean": "#052B51",
- "check-api-contrail-9100.mean": "#0A437C"
- },
- "bars": false,
- "datasource": null,
- "editable": true,
- "error": false,
- "fill": 1,
- "grid": {
- "threshold1": null,
- "threshold1Color": "rgba(216, 200, 27, 0.27)",
- "threshold2": null,
- "threshold2Color": "rgba(234, 112, 112, 0.22)"
- },
- "id": 33,
- "interval": "> 90s",
- "isNew": true,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "percentage": false,
- "pointradius": 1,
- "points": true,
- "renderer": "flot",
- "seriesOverrides": [],
- "span": 12,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "alias": "ntp-drift-time ($tag_hostname)",
- "dsType": "influxdb",
- "groupBy": [
- {
- "params": [
- "auto"
- ],
- "type": "time"
- },
- {
- "params": [
- "hostname"
- ],
- "type": "tag"
- },
- {
- "params": [
- "previous"
- ],
- "type": "fill"
- }
- ],
- "measurement": "ntp-time-drift",
- "policy": "default",
- "query": "SELECT count(\"value\") FROM \"lma_components_processes\" WHERE \"environment_label\" =~ /^$environment$/ AND \"service\" = 'contrail-analytics-api' AND $timeFilter GROUP BY time($interval) fill(null)",
- "rawQuery": false,
- "refId": "F",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "value"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "last"
- }
- ]
- ],
- "tags": [
- {
- "key": "environment_label",
- "operator": "=~",
- "value": "/^$environment$/"
- }
- ]
- }
- ],
- "timeFrom": null,
- "timeShift": null,
- "title": "NTP Drift Time",
- "tooltip": {
- "msResolution": true,
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "show": true
- },
- "yaxes": [
- {
- "format": "short",
- "label": "(ms)",
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- },
- {
- "format": "short",
- "label": null,
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- }
- ]
}
],
"title": "New row"
@@ -5484,7 +4862,7 @@
"total": false,
"values": false
},
- "lines": false,
+ "lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
@@ -5750,131 +5128,6 @@
"show": true
}
]
- },
- {
- "aliasColors": {
- "(node-8)": "#AEA2E0"
- },
- "bars": false,
- "datasource": null,
- "editable": true,
- "error": false,
- "fill": 3,
- "grid": {
- "threshold1": null,
- "threshold1Color": "rgba(152, 138, 33, 0.27)",
- "threshold2": null,
- "threshold2Color": "rgba(234, 112, 112, 0.22)",
- "thresholdLine": false
- },
- "id": 42,
- "interval": "> 90s",
- "isNew": true,
- "legend": {
- "alignAsTable": false,
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "rightSide": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "connected",
- "percentage": false,
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "span": 12,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "alias": "($tag_hostname)",
- "dsType": "influxdb",
- "groupBy": [
- {
- "params": [
- "auto"
- ],
- "type": "time"
- },
- {
- "params": [
- "hostname"
- ],
- "type": "tag"
- },
- {
- "params": [
- "previous"
- ],
- "type": "fill"
- }
- ],
- "measurement": "contrail_ifmap-elements-count_contrail",
- "policy": "default",
- "refId": "A",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "value"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- }
- ]
- ],
- "tags": [
- {
- "key": "environment_label",
- "operator": "=~",
- "value": "/^$environment$/"
- }
- ]
- }
- ],
- "timeFrom": null,
- "timeShift": null,
- "title": "IFMap: Number of Emenets",
- "tooltip": {
- "msResolution": true,
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "show": true
- },
- "yaxes": [
- {
- "format": "short",
- "label": "(count)",
- "logBase": 1,
- "max": null,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "label": null,
- "logBase": 1,
- "max": null,
- "min": 0,
- "show": true
- }
- ]
}
],
"title": "New row"
@@ -7252,135 +6505,6 @@
"show": true
}
]
- },
- {
- "aliasColors": {
- "vrouter-flows-composite-invalid-interface.mean {hostname: node-6}": "#0A437C",
- "vrouter-flows-created.mean {hostname: node-6}": "#CCA300",
- "vrouter-flows-discard.mean {hostname: node-6}": "#806EB7",
- "vrouter-flows-drop.mean {hostname: node-6}": "#EA6460",
- "vrouter-flows-flow-table-full.mean {hostname: node-6}": "#D683CE",
- "vrouter-flows-frag-err.mean {hostname: node-6}": "#614D93",
- "vrouter-flows-invalid-label.mean {hostname: node-6}": "#F9BA8F",
- "vrouter-flows-invalid-nh.mean {hostname: node-6}": "#962D82",
- "vrouter-openedsockets.mean {hostname: node-6}": "#F4D598"
- },
- "bars": false,
- "datasource": null,
- "editable": true,
- "error": false,
- "fill": 1,
- "grid": {
- "threshold1": null,
- "threshold1Color": "rgba(216, 200, 27, 0.27)",
- "threshold2": null,
- "threshold2Color": "rgba(234, 112, 112, 0.22)"
- },
- "id": 22,
- "interval": "> 90s",
- "isNew": true,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 2,
- "links": [],
- "nullPointMode": "connected",
- "percentage": false,
- "pointradius": 1,
- "points": true,
- "renderer": "flot",
- "seriesOverrides": [],
- "span": 12,
- "stack": true,
- "steppedLine": false,
- "targets": [
- {
- "dsType": "influxdb",
- "groupBy": [
- {
- "params": [
- "$interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "hostname"
- ],
- "type": "tag"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "vrouter-openedsockets",
- "policy": "default",
- "refId": "A",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "value"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- }
- ]
- ],
- "tags": [
- {
- "key": "environment_label",
- "operator": "=~",
- "value": "/^$environment$/"
- }
- ]
- }
- ],
- "timeFrom": null,
- "timeShift": null,
- "title": "vRouter: OpenedSockets",
- "tooltip": {
- "msResolution": true,
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "show": true
- },
- "yaxes": [
- {
- "format": "short",
- "label": null,
- "logBase": 1,
- "max": null,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "label": null,
- "logBase": 1,
- "max": null,
- "min": 0,
- "show": true
- }
- ]
}
],
"showTitle": true,
@@ -7441,5 +6565,5 @@
},
"timezone": "browser",
"title": "OpenContrail",
- "version": 15
+ "version": 16
}