Skip to content

Commit b58bc42

Browse files
add nodemetrics routes
1 parent 049080a commit b58bc42

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[routes.current_memory]
2+
active = true
3+
name = "Get current memory"
4+
method = "GET"
5+
roles = ["*"]
6+
upstream = "http://nodemetrics:7777"
7+
listen = "/memory/current"
8+
strip = false
9+
group = "nodemetrics"
10+
11+
[routes.current_cpu]
12+
active = true
13+
name = "Get current cpu"
14+
method = "GET"
15+
roles = ["*"]
16+
upstream = "http://nodemetrics:7777"
17+
listen = "/cpu/current"
18+
strip = false
19+
group = "nodemetrics"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@
1818

1919
#include "routes/mail.toml"
2020

21+
#include "routes/nodemetrics.toml"

charts/api-gateway/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ routes:
3232
path: env/routes/solutions.toml
3333
- name: mail.toml
3434
path: env/routes/mail.toml
35+
- name: nodemetrics.toml
36+
path: env/routes/nodemetrics.toml
3537

3638
config: env/config.toml
3739

0 commit comments

Comments
 (0)