From 3ab735ee2c3ae33215cf937d7819ff964deef571 Mon Sep 17 00:00:00 2001 From: xietangxin Date: Wed, 15 Nov 2023 11:47:10 +0800 Subject: [PATCH] bugfix: fix grafana aops_graph data index to daily --- deploy/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/deploy.sh b/deploy/deploy.sh index c76b596..efe4b91 100755 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -1121,8 +1121,8 @@ http://admin:admin@localhost:3000/api/datasources/ 2>/dev/null) name="Elasticsearch-graph" result=$(curl -X POST -H "Content-Type: application/json" -d '{"name":"'${name}'","type":"elasticsearch", "access":"proxy","url":"http://'${ES_ADDR}'","user":"", -"database":"aops_graph2","basicAuth":false,"isDefault":false, -"jsonData":{"includeFrozen":false,"logLevelField":"","logMessageField":"_source","maxConcurrentShardRequests":5,"timeField":"timestamp"}, +"database":"[aops_graph-]YYYY-MM-DD","basicAuth":false,"isDefault":false, +"jsonData":{"includeFrozen":false,"interval":"Daily","logLevelField":"","logMessageField":"_source","maxConcurrentShardRequests":5,"timeField":"timestamp"}, "readOnly":false}' http://admin:admin@localhost:3000/api/datasources/ 2>/dev/null) if ! echo $result | grep -q 'Datasource added' ; then echo_err_exit "Fail to add ${name} datesource in grafana" -- Gitee