summaryrefslogtreecommitdiffstats
path: root/dashboard/dashboard/elastic2kibana/templates/qpi.json
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-10-11 15:41:45 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-10-11 20:00:23 +0800
commit74eebf0e52388e2f5db598cdc0313e3e2bcc2974 (patch)
tree255259dcfe770eb8e74eeea71a62c8f8008d4b76 /dashboard/dashboard/elastic2kibana/templates/qpi.json
parentdf4fb1e1f45c381ce038da887c3ca611b19629f7 (diff)
visualize qpi using kibana_dashboard
JIRA: QTIP-122 Change-Id: Ice29c0a841e911b23959c91322331c5a66281be5 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'dashboard/dashboard/elastic2kibana/templates/qpi.json')
-rw-r--r--dashboard/dashboard/elastic2kibana/templates/qpi.json45
1 files changed, 45 insertions, 0 deletions
diff --git a/dashboard/dashboard/elastic2kibana/templates/qpi.json b/dashboard/dashboard/elastic2kibana/templates/qpi.json
new file mode 100644
index 0000000..a46f315
--- /dev/null
+++ b/dashboard/dashboard/elastic2kibana/templates/qpi.json
@@ -0,0 +1,45 @@
+{% set aggs = aggs|default([]) -%}
+
+{
+ "title": "qpi",
+ "type": "line",
+ "listeners": {},
+ "params": {
+ "addLegend": true,
+ "shareYAxis": true,
+ "addTooltip": true,
+ "smoothLines": false,
+ "scale": "linear",
+ "interpolate": "linear",
+ "times": [],
+ "addTimeMarker": false,
+ "defaultYExtents": false,
+ "setYExtents": false,
+ "yAxis": {},
+ "mode": "stacked"
+ },
+ "aggs": [
+ {% for agg in aggs %}
+ {
+ "id": {{agg.id }},
+ "type": "avg",
+ "schema": "metric",
+ "params": {
+ "field": "{{agg.field}}"
+ }
+ },
+ {% endfor %}
+ {
+ "id": {{ aggs|length + 1 }},
+ "type": "date_histogram",
+ "schema": "segment",
+ "params": {
+ "field": "start_date",
+ "interval": "auto",
+ "customInterval": "2h",
+ "min_doc_count": 1,
+ "extended_bounds": {}
+ }
+ }
+ ]
+}