-
+
diff --git a/rition-panel/src/pages/ContractPage.vue b/rition-panel/src/pages/ContractPage.vue
index de247e8..0bba1e6 100644
--- a/rition-panel/src/pages/ContractPage.vue
+++ b/rition-panel/src/pages/ContractPage.vue
@@ -20,7 +20,7 @@ const form = reactive({
添加
-
+
diff --git a/rition-panel/src/pages/MetricPage.vue b/rition-panel/src/pages/MetricPage.vue
index 20c3b91..aefde72 100644
--- a/rition-panel/src/pages/MetricPage.vue
+++ b/rition-panel/src/pages/MetricPage.vue
@@ -1,5 +1,5 @@
@@ -70,23 +170,27 @@ const timeRange = ref([
+
+
+
+
+
+
+
- 刷新
+ 刷新
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/rition-panel/src/pages/RulePage.vue b/rition-panel/src/pages/RulePage.vue
index b987478..57425a5 100644
--- a/rition-panel/src/pages/RulePage.vue
+++ b/rition-panel/src/pages/RulePage.vue
@@ -1,12 +1,14 @@
-
+
添加
-
+
-
-
+
+
+
+ 删除
+
+
-
+
-
+
-
+
@@ -48,23 +78,23 @@ const form = reactive({
-
+
-
+
-
+
diff --git a/rition-probe/client/http.go b/rition-probe/client/http.go
index ba9bf62..0b1456d 100644
--- a/rition-probe/client/http.go
+++ b/rition-probe/client/http.go
@@ -40,7 +40,7 @@ func (c *Client) Report(dataItem []DataItem) (*ReportResponse, error) {
Metric: item.Metric,
Value: item.Value,
Tags: tags,
- Timestamp: time.Now().UnixMilli(),
+ Timestamp: time.Now().Unix(),
})
}
@@ -49,8 +49,6 @@ func (c *Client) Report(dataItem []DataItem) (*ReportResponse, error) {
return nil, err
}
- fmt.Println(string(reportJsonBytes))
-
// send report data
resp, err := http.Post(c.config.CenterServer, "application/json", bytes.NewBuffer(reportJsonBytes))
if err != nil {
diff --git a/rition-probe/main.go b/rition-probe/main.go
index efb5a9b..da934c7 100644
--- a/rition-probe/main.go
+++ b/rition-probe/main.go
@@ -14,7 +14,7 @@ func main() {
diskDevice := flag.String("disk_dev", "", "监控的硬盘设备")
mount := flag.String("mount", "/", "监控的分区挂载位置")
netInterface := flag.String("net_dev", "", "监控的网卡设备")
- interval := flag.Int("interval", 30, "上报间隔,单位为秒")
+ interval := flag.Int("interval", 5, "上报间隔,单位为秒")
flag.Parse()
hostname, _ := os.Hostname()