Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
nightingale
提交
2fedf4f0
N
nightingale
项目概览
DiDi
/
nightingale
9 个月 前同步成功
通知
46
Star
7053
Fork
1161
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nightingale
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
2fedf4f0
编写于
8月 07, 2023
作者:
X
xtan
提交者:
GitHub
8月 07, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs: pg init sql (#1663)
上级
e9a02c4c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
36 addition
and
4 deletion
+36
-4
docker/experience_pg_vm/initsql_for_postgres/a-n9e-for-Postgres.sql
...erience_pg_vm/initsql_for_postgres/a-n9e-for-Postgres.sql
+36
-4
未找到文件。
docker/experience_pg_vm/initsql_for_postgres/a-n9e-for-Postgres.sql
浏览文件 @
2fedf4f0
...
@@ -53,7 +53,7 @@ insert into user_group_member(group_id, user_id) values(1, 1);
...
@@ -53,7 +53,7 @@ insert into user_group_member(group_id, user_id) values(1, 1);
CREATE
TABLE
configs
(
CREATE
TABLE
configs
(
id
bigserial
,
id
bigserial
,
ckey
varchar
(
191
)
not
null
,
ckey
varchar
(
191
)
not
null
,
cval
varchar
(
4096
)
not
null
default
''
,
cval
text
not
null
default
''
,
PRIMARY
KEY
(
id
),
PRIMARY
KEY
(
id
),
UNIQUE
(
ckey
)
UNIQUE
(
ckey
)
)
;
)
;
...
@@ -94,10 +94,18 @@ insert into role_operation(role_name, operation) values('Standard', '/log/explor
...
@@ -94,10 +94,18 @@ insert into role_operation(role_name, operation) values('Standard', '/log/explor
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/trace/explorer'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/trace/explorer'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/help/version'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/help/version'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/help/contact'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/help/contact'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/help/servers'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/help/migrate'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/alert-rules-built-in'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/alert-rules-built-in'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/dashboards-built-in'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/dashboards-built-in'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/trace/dependencies'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/trace/dependencies'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Admin'
,
'/help/source'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Admin'
,
'/help/sso'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Admin'
,
'/help/notification-tpls'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Admin'
,
'/help/notification-settings'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/users'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/users'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/user-groups'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/user-groups'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/user-groups/add'
);
insert
into
role_operation
(
role_name
,
operation
)
values
(
'Standard'
,
'/user-groups/add'
);
...
@@ -292,6 +300,7 @@ CREATE TABLE alert_rule (
...
@@ -292,6 +300,7 @@ CREATE TABLE alert_rule (
runbook_url
varchar
(
255
),
runbook_url
varchar
(
255
),
append_tags
varchar
(
255
)
not
null
default
''
,
append_tags
varchar
(
255
)
not
null
default
''
,
annotations
text
not
null
,
annotations
text
not
null
,
extra_config
text
not
null
,
create_at
bigint
not
null
default
0
,
create_at
bigint
not
null
default
0
,
create_by
varchar
(
64
)
not
null
default
''
,
create_by
varchar
(
64
)
not
null
default
''
,
update_at
bigint
not
null
default
0
,
update_at
bigint
not
null
default
0
,
...
@@ -320,7 +329,7 @@ COMMENT ON COLUMN alert_rule.recover_duration IS 'unit: s';
...
@@ -320,7 +329,7 @@ COMMENT ON COLUMN alert_rule.recover_duration IS 'unit: s';
COMMENT
ON
COLUMN
alert_rule
.
callbacks
IS
'split by space: http://a.com/api/x http://a.com/api/y'
;
COMMENT
ON
COLUMN
alert_rule
.
callbacks
IS
'split by space: http://a.com/api/x http://a.com/api/y'
;
COMMENT
ON
COLUMN
alert_rule
.
append_tags
IS
'split by space: service=n9e mod=api'
;
COMMENT
ON
COLUMN
alert_rule
.
append_tags
IS
'split by space: service=n9e mod=api'
;
COMMENT
ON
COLUMN
alert_rule
.
annotations
IS
'annotations'
;
COMMENT
ON
COLUMN
alert_rule
.
annotations
IS
'annotations'
;
COMMENT
ON
COLUMN
alert_rule
.
extra_config
IS
'extra_config'
;
CREATE
TABLE
alert_mute
(
CREATE
TABLE
alert_mute
(
id
bigserial
,
id
bigserial
,
...
@@ -337,6 +346,7 @@ CREATE TABLE alert_mute (
...
@@ -337,6 +346,7 @@ CREATE TABLE alert_mute (
disabled
smallint
not
null
default
0
,
disabled
smallint
not
null
default
0
,
mute_time_type
smallint
not
null
default
0
,
mute_time_type
smallint
not
null
default
0
,
periodic_mutes
varchar
(
4096
)
not
null
default
''
,
periodic_mutes
varchar
(
4096
)
not
null
default
''
,
severities
varchar
(
32
)
not
null
default
''
,
create_at
bigint
not
null
default
0
,
create_at
bigint
not
null
default
0
,
create_by
varchar
(
64
)
not
null
default
''
,
create_by
varchar
(
64
)
not
null
default
''
,
update_at
bigint
not
null
default
0
,
update_at
bigint
not
null
default
0
,
...
@@ -363,6 +373,7 @@ CREATE TABLE alert_subscribe (
...
@@ -363,6 +373,7 @@ CREATE TABLE alert_subscribe (
datasource_ids
varchar
(
255
)
not
null
default
''
,
datasource_ids
varchar
(
255
)
not
null
default
''
,
cluster
varchar
(
128
)
not
null
,
cluster
varchar
(
128
)
not
null
,
rule_id
bigint
not
null
default
0
,
rule_id
bigint
not
null
default
0
,
severities
varchar
(
32
)
not
null
default
''
,
tags
varchar
(
4096
)
not
null
default
''
,
tags
varchar
(
4096
)
not
null
default
''
,
redefine_severity
smallint
default
0
,
redefine_severity
smallint
default
0
,
new_severity
smallint
not
null
,
new_severity
smallint
not
null
,
...
@@ -370,6 +381,7 @@ CREATE TABLE alert_subscribe (
...
@@ -370,6 +381,7 @@ CREATE TABLE alert_subscribe (
new_channels
varchar
(
255
)
not
null
default
''
,
new_channels
varchar
(
255
)
not
null
default
''
,
user_group_ids
varchar
(
250
)
not
null
,
user_group_ids
varchar
(
250
)
not
null
,
webhooks
text
not
null
,
webhooks
text
not
null
,
extra_config
text
not
null
,
redefine_webhooks
smallint
default
0
,
redefine_webhooks
smallint
default
0
,
for_duration
bigint
not
null
default
0
,
for_duration
bigint
not
null
default
0
,
create_at
bigint
not
null
default
0
,
create_at
bigint
not
null
default
0
,
...
@@ -389,8 +401,9 @@ COMMENT ON COLUMN alert_subscribe.new_severity IS '0:Emergency 1:Warning 2:Notic
...
@@ -389,8 +401,9 @@ COMMENT ON COLUMN alert_subscribe.new_severity IS '0:Emergency 1:Warning 2:Notic
COMMENT
ON
COLUMN
alert_subscribe
.
redefine_channels
IS
'is redefine channels?'
;
COMMENT
ON
COLUMN
alert_subscribe
.
redefine_channels
IS
'is redefine channels?'
;
COMMENT
ON
COLUMN
alert_subscribe
.
new_channels
IS
'split by space: sms voice email dingtalk wecom'
;
COMMENT
ON
COLUMN
alert_subscribe
.
new_channels
IS
'split by space: sms voice email dingtalk wecom'
;
COMMENT
ON
COLUMN
alert_subscribe
.
user_group_ids
IS
'split by space 1 34 5, notify cc to user_group_ids'
;
COMMENT
ON
COLUMN
alert_subscribe
.
user_group_ids
IS
'split by space 1 34 5, notify cc to user_group_ids'
;
COMMENT
ON
COLUMN
alert_subscribe
.
extra_config
IS
'extra_config'
;
CREATE
TABLE
target
(
CREATE
TABLE
target
(
id
bigserial
,
id
bigserial
,
group_id
bigint
not
null
default
0
,
group_id
bigint
not
null
default
0
,
...
@@ -456,6 +469,7 @@ CREATE TABLE recording_rule (
...
@@ -456,6 +469,7 @@ CREATE TABLE recording_rule (
prom_ql
varchar
(
8192
)
not
null
,
prom_ql
varchar
(
8192
)
not
null
,
prom_eval_interval
int
not
null
,
prom_eval_interval
int
not
null
,
append_tags
varchar
(
255
)
default
''
,
append_tags
varchar
(
255
)
default
''
,
query_configs
text
not
null
,
create_at
bigint
default
'0'
,
create_at
bigint
default
'0'
,
create_by
varchar
(
64
)
default
''
,
create_by
varchar
(
64
)
default
''
,
update_at
bigint
default
'0'
,
update_at
bigint
default
'0'
,
...
@@ -472,6 +486,7 @@ COMMENT ON COLUMN recording_rule.disabled IS '0:enabled 1:disabled';
...
@@ -472,6 +486,7 @@ COMMENT ON COLUMN recording_rule.disabled IS '0:enabled 1:disabled';
COMMENT
ON
COLUMN
recording_rule
.
prom_ql
IS
'promql'
;
COMMENT
ON
COLUMN
recording_rule
.
prom_ql
IS
'promql'
;
COMMENT
ON
COLUMN
recording_rule
.
prom_eval_interval
IS
'evaluate interval'
;
COMMENT
ON
COLUMN
recording_rule
.
prom_eval_interval
IS
'evaluate interval'
;
COMMENT
ON
COLUMN
recording_rule
.
append_tags
IS
'split by space: service=n9e mod=api'
;
COMMENT
ON
COLUMN
recording_rule
.
append_tags
IS
'split by space: service=n9e mod=api'
;
COMMENT
ON
COLUMN
recording_rule
.
query_configs
IS
'query configs'
;
CREATE
TABLE
alert_aggr_view
(
CREATE
TABLE
alert_aggr_view
(
...
@@ -732,4 +747,21 @@ CREATE TABLE sso_config (
...
@@ -732,4 +747,21 @@ CREATE TABLE sso_config (
content
text
not
null
,
content
text
not
null
,
PRIMARY
KEY
(
id
),
PRIMARY
KEY
(
id
),
UNIQUE
(
name
)
UNIQUE
(
name
)
)
;
)
;
\ No newline at end of file
CREATE
TABLE
es_index_pattern
(
id
bigserial
,
datasource_id
bigint
not
null
default
0
,
name
varchar
(
191
)
not
null
,
time_field
varchar
(
128
)
not
null
default
'@timestamp'
,
allow_hide_system_indices
smallint
not
null
default
0
,
fields_format
varchar
(
4096
)
not
null
default
''
,
create_at
bigint
default
'0'
,
create_by
varchar
(
64
)
default
''
,
update_at
bigint
default
'0'
,
update_by
varchar
(
64
)
default
''
,
PRIMARY
KEY
(
id
),
UNIQUE
(
datasource_id
,
name
)
)
;
COMMENT
ON
COLUMN
es_index_pattern
.
datasource_id
IS
'datasource id'
;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录