From c62b9edf8731f4b08786de2be65d55c25e8e5fd7 Mon Sep 17 00:00:00 2001 From: xtan <38320121+tanxiao1990@users.noreply.github.com> Date: Mon, 6 Jun 2022 11:48:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Apg=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E5=90=8C=E6=AD=A5=20(#974)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: tanxiao --- docker/initsql_for_postgres/a-n9e-for-Postgres.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/initsql_for_postgres/a-n9e-for-Postgres.sql b/docker/initsql_for_postgres/a-n9e-for-Postgres.sql index 30b78d67..1ab27e6d 100644 --- a/docker/initsql_for_postgres/a-n9e-for-Postgres.sql +++ b/docker/initsql_for_postgres/a-n9e-for-Postgres.sql @@ -236,7 +236,7 @@ CREATE TABLE alert_rule ( severity int2 NOT NULL, disabled int2 NOT NULL, prom_for_duration int4 NOT NULL, - prom_ql varchar(8192) NOT NULL, + prom_ql text NOT NULL, prom_eval_interval int4 NOT NULL, enable_stime bpchar(5) NOT NULL DEFAULT '00:00'::bpchar, enable_etime bpchar(5) NOT NULL DEFAULT '23:59'::bpchar, @@ -284,6 +284,7 @@ COMMENT ON COLUMN alert_rule.append_tags IS 'split by space: service=n9e mod=api CREATE TABLE alert_mute ( id bigserial, group_id bigint not null default 0 , + prod varchar(255) NOT NULL DEFAULT '' , cluster varchar(128) not null, tags varchar(4096) not null default '' , cause varchar(255) not null default '',