Merge "Add API Performances panels to Prometheus dashboard"
diff --git a/keystone/files/grafana_dashboards/keystone_prometheus.json b/keystone/files/grafana_dashboards/keystone_prometheus.json
old mode 100644
new mode 100755
index 7f36a01..1d0e495
--- a/keystone/files/grafana_dashboards/keystone_prometheus.json
+++ b/keystone/files/grafana_dashboards/keystone_prometheus.json
@@ -24,6 +24,7 @@
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
+ "datasource": null,
"format": "none",
"gauge": {
"maxValue": 1,
@@ -75,7 +76,7 @@
"intervalFactor": 2,
"legendFormat": "{{ service }}",
"refId": "A",
- "step": 4
+ "step": 60
}
],
"thresholds": "1,0",
@@ -110,6 +111,7 @@
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
+ "datasource": null,
"decimals": null,
"format": "none",
"gauge": {
@@ -162,7 +164,7 @@
"intervalFactor": 2,
"legendFormat": "per sec",
"refId": "A",
- "step": 4
+ "step": 60
}
],
"thresholds": "",
@@ -177,27 +179,6 @@
}
],
"valueName": "current"
- }
- ],
- "repeat": null,
- "repeatIteration": null,
- "repeatRowId": null,
- "showTitle": true,
- "title": "Service Status",
- "titleSize": "h6"
- },
- {
- "collapse": false,
- "height": 101,
- "panels": [
- {
- "content": "<br />\n<h3 align=\"center\"> Up </h3>",
- "id": 2,
- "links": [],
- "mode": "html",
- "span": 1,
- "title": "",
- "type": "text"
},
{
"cacheTimeout": null,
@@ -208,6 +189,7 @@
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
+ "datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
@@ -259,11 +241,11 @@
"intervalFactor": 2,
"legendFormat": "",
"refId": "A",
- "step": 4
+ "step": 60
}
],
"thresholds": "",
- "title": "Public",
+ "title": "Public API backends",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
@@ -284,6 +266,7 @@
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
+ "datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
@@ -335,11 +318,11 @@
"intervalFactor": 2,
"legendFormat": "",
"refId": "A",
- "step": 4
+ "step": 60
}
],
"thresholds": "",
- "title": "Admin",
+ "title": "Admin API backends",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
@@ -350,22 +333,177 @@
}
],
"valueName": "current"
- },
- {
- "content": "",
- "id": 5,
- "links": [],
- "mode": "markdown",
- "span": 5,
- "title": "",
- "type": "text"
}
],
"repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": true,
- "title": "Keystone API",
+ "title": "Service Status",
+ "titleSize": "h6"
+ },
+ {
+ "collapse": false,
+ "height": "250",
+ "panels": [
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": null,
+ "fill": 1,
+ "id": 13,
+ "legend": {
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "show": true,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 1,
+ "links": [],
+ "nullPointMode": "null",
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "sum(openstack_keystone_http_response_times_rate{host=~\"^$host$\"}) by (http_status)",
+ "format": "time_series",
+ "intervalFactor": 2,
+ "legendFormat": "{{ http_status }}",
+ "refId": "A",
+ "step": 10
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Throughput",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "ops",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": "0",
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ]
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": null,
+ "fill": 1,
+ "id": 14,
+ "legend": {
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "show": true,
+ "total": false,
+ "values": false
+ },
+ "lines": true,
+ "linewidth": 1,
+ "links": [],
+ "nullPointMode": "null",
+ "percentage": false,
+ "pointradius": 5,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "span": 6,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "expr": "max(openstack_keystone_http_response_times_upper_90{host=~\"^$host$\"}) by (http_method)",
+ "format": "time_series",
+ "intervalFactor": 2,
+ "legendFormat": "{{ http_method }}",
+ "refId": "A",
+ "step": 10
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeShift": null,
+ "title": "Latency",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "s",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": "0",
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ]
+ }
+ ],
+ "repeat": null,
+ "repeatIteration": null,
+ "repeatRowId": null,
+ "showTitle": true,
+ "title": "API Performances",
"titleSize": "h6"
},
{
@@ -381,6 +519,7 @@
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
+ "datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
@@ -433,7 +572,7 @@
"legendFormat": "",
"metric": "openstack_keystone_users_total",
"refId": "A",
- "step": 4
+ "step": 60
}
],
"thresholds": "",
@@ -458,6 +597,7 @@
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
+ "datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
@@ -510,7 +650,7 @@
"legendFormat": "",
"metric": "openstack_keystone_users_total",
"refId": "A",
- "step": 4
+ "step": 60
}
],
"thresholds": "",
@@ -531,6 +671,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
+ "datasource": null,
"fill": 1,
"id": 6,
"legend": {
@@ -563,7 +704,7 @@
"legendFormat": "{{ state }}",
"metric": "openstack_keystone_users",
"refId": "A",
- "step": 2
+ "step": 4
}
],
"thresholds": [],
@@ -611,6 +752,7 @@
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
+ "datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
@@ -663,7 +805,7 @@
"legendFormat": "",
"metric": "",
"refId": "A",
- "step": 4
+ "step": 60
}
],
"thresholds": "",
@@ -688,6 +830,7 @@
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
+ "datasource": null,
"format": "none",
"gauge": {
"maxValue": 100,
@@ -740,7 +883,7 @@
"legendFormat": "",
"metric": "openstack_keystone_users_total",
"refId": "A",
- "step": 4
+ "step": 60
}
],
"thresholds": "",
@@ -761,6 +904,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
+ "datasource": null,
"fill": 1,
"id": 11,
"legend": {
@@ -793,7 +937,7 @@
"legendFormat": "{{ state }}",
"metric": "openstack_keystone_users",
"refId": "A",
- "step": 2
+ "step": 4
}
],
"thresholds": [],
@@ -846,7 +990,29 @@
"style": "dark",
"tags": [],
"templating": {
- "list": []
+ "list": [
+ {
+ "allValue": null,
+ "current": {},
+ "datasource": "prometheus",
+ "hide": 0,
+ "includeAll": true,
+ "label": null,
+ "multi": true,
+ "name": "host",
+ "options": [],
+ "query": "label_values(openstack_keystone_http_response_times_count,host)",
+ "refresh": 1,
+ "refresh_on_load": true,
+ "regex": "",
+ "sort": 1,
+ "tagValuesQuery": "",
+ "tags": [],
+ "tagsQuery": "",
+ "type": "query",
+ "useTags": false
+ }
+ ]
},
"time": {
"from": "now-1h",
@@ -879,6 +1045,6 @@
},
"timezone": "browser",
"title": "Keystone",
- "version": 28
+ "version": 29
}
{% endraw %}