From 407f9ca6adfaea2150b5bc6e21cf9162efc0b24a Mon Sep 17 00:00:00 2001 From: 710leo <710leo@gmail.com> Date: Mon, 19 Jul 2021 16:27:37 +0800 Subject: [PATCH] refactor: change query default resolution --- backend/prome/query.go | 2 +- sql/n9e.sql | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/prome/query.go b/backend/prome/query.go index 15837141..e5c424b6 100644 --- a/backend/prome/query.go +++ b/backend/prome/query.go @@ -24,7 +24,7 @@ const ( LABEL_IDENT = "ident" LABEL_NAME = "__name__" DEFAULT_QL = `{__name__=~".*a.*|.*e.*"}` - DEFAULT_STEP = 14 + DEFAULT_STEP = 15 ) type commonQueryObj struct { diff --git a/sql/n9e.sql b/sql/n9e.sql index e63e6dd0..82394aea 100644 --- a/sql/n9e.sql +++ b/sql/n9e.sql @@ -333,12 +333,12 @@ insert into metric_description(metric, description) values('system_cpu_num_cores insert into metric_description(metric, description) values('system_cpu_steal', '等待处理其他虚拟核的时间占比(单位:%)'); insert into metric_description(metric, description) values('system_cpu_system', '内核态CPU时间占比(单位:%)'); insert into metric_description(metric, description) values('system_cpu_user', '用户态CPU时间占比(单位:%)'); -insert into metric_description(metric, description) values('system_disk_bytes_free', '磁盘某分区余量大小(单位:kb)'); +insert into metric_description(metric, description) values('system_disk_bytes_free', '磁盘某分区余量大小(单位:byte)'); insert into metric_description(metric, description) values('system_disk_used_percent', '磁盘某分区用量占比(单位:%)'); insert into metric_description(metric, description) values('system_disk_read_time', '设备读操作耗时(单位:ms)'); insert into metric_description(metric, description) values('system_disk_read_time_percent', '读取磁盘时间百分比(单位:%)'); -insert into metric_description(metric, description) values('system_disk_bytes_total', '磁盘某分区总量(单位:kb)'); -insert into metric_description(metric, description) values('system_disk_bytes_used', '磁盘某分区用量大小(单位:kb)'); +insert into metric_description(metric, description) values('system_disk_bytes_total', '磁盘某分区总量(单位:byte)'); +insert into metric_description(metric, description) values('system_disk_bytes_used', '磁盘某分区用量大小(单位:byte)'); insert into metric_description(metric, description) values('system_disk_write_time', '设备写操作耗时(单位:ms)'); insert into metric_description(metric, description) values('system_disk_write_time_percent', ''); insert into metric_description(metric, description) values('system_files_allocated', '系统已分配文件句柄数');