From 7b1ab2bc863002e15d7c47c632805283497312a1 Mon Sep 17 00:00:00 2001 From: George Sedov <george.sedov@desy.de> Date: Mon, 6 Mar 2023 16:28:06 +0100 Subject: [PATCH] changed DB initialization --- .../src/asapo_monitoring_server/main/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monitoring/monitoring_server/src/asapo_monitoring_server/main/main.go b/monitoring/monitoring_server/src/asapo_monitoring_server/main/main.go index 68707f2a1..3d510612c 100644 --- a/monitoring/monitoring_server/src/asapo_monitoring_server/main/main.go +++ b/monitoring/monitoring_server/src/asapo_monitoring_server/main/main.go @@ -102,13 +102,13 @@ func main() { // It creates two databases. normalDB := settings.InfluxDbDatabase avgDB := normalDB + "_avg" - rpName := "one_day" + //rpName := "one_day" cqName := "avg_values" postStrings := []string{ "CREATE DATABASE " + normalDB, "CREATE DATABASE " + avgDB, - "CREATE RETENTION POLICY " + rpName + " ON " + normalDB + - " DURATION 24h REPLICATION 1 DEFAULT", + //"CREATE RETENTION POLICY " + rpName + " ON " + normalDB + + // " DURATION 24h REPLICATION 1 DEFAULT", "CREATE CONTINUOUS QUERY " + cqName + " ON " + normalDB + " BEGIN" + " SELECT mean(*) INTO " + avgDB + "..:MEASUREMENT FROM /.*/ GROUP BY time(12h) END", -- GitLab