Skip to content

Commit eccbb3e

Browse files
add ws and metrics by nodes
1 parent ab124cc commit eccbb3e

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

charts/api-gateway/env/routes/nodemetrics.toml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,36 @@ listen = "/memory/history"
1818
strip = false
1919
group = "nodemetrics"
2020

21+
[routes.history_memory_node]
22+
active = true
23+
name = "Get history memory by node"
24+
method = "GET"
25+
roles = ["*"]
26+
upstream = "http://nodemetrics:7777"
27+
listen = "/memory/history/nodes"
28+
strip = false
29+
group = "nodemetrics"
30+
31+
[routes.history_memory_ws]
32+
active = true
33+
name = "Get history memory websockets"
34+
method = "GET"
35+
roles = ["*"]
36+
upstream = "http://nodemetrics:7777"
37+
listen = "/memory/history/ws"
38+
strip = false
39+
group = "nodemetrics"
40+
41+
[routes.history_memory_node_ws]
42+
active = true
43+
name = "Get history memory by node websockets"
44+
method = "GET"
45+
roles = ["*"]
46+
upstream = "http://nodemetrics:7777"
47+
listen = "/memory/history/nodes/ws"
48+
strip = false
49+
group = "nodemetrics"
50+
2151
[routes.current_cpu]
2252
active = true
2353
name = "Get current cpu"
@@ -38,6 +68,36 @@ listen = "/cpu/history"
3868
strip = false
3969
group = "nodemetrics"
4070

71+
[routes.history_cpu_node]
72+
active = true
73+
name = "Get history cpu by node"
74+
method = "GET"
75+
roles = ["*"]
76+
upstream = "http://nodemetrics:7777"
77+
listen = "/cpu/history/nodes"
78+
strip = false
79+
group = "nodemetrics"
80+
81+
[routes.history_cpu_ws]
82+
active = true
83+
name = "Get history cpu websocket"
84+
method = "GET"
85+
roles = ["*"]
86+
upstream = "http://nodemetrics:7777"
87+
listen = "/cpu/history/ws"
88+
strip = false
89+
group = "nodemetrics"
90+
91+
[routes.history_cpu_node_ws]
92+
active = true
93+
name = "Get history cpu by node websocket"
94+
method = "GET"
95+
roles = ["*"]
96+
upstream = "http://nodemetrics:7777"
97+
listen = "/cpu/history/nodes/ws"
98+
strip = false
99+
group = "nodemetrics"
100+
41101
[routes.current_storage]
42102
active = true
43103
name = "Get current storage"

0 commit comments

Comments
 (0)