Skip to content

Commit dff4373

Browse files
committed
add more commands
1 parent 657b077 commit dff4373

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

AutoAD/data/telemetry/run.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
kubectl -n prometheus port-forward svc/thanos-query 9090
2+
3+
curl 'http://localhost:9090/api/v1/query?query={cluster:node_cpu:ratio_rate5m}\[2d:1m\]' |
4+
jq '.data.result[].values[][1]' |
5+
sed 's/\"//g' >node_cpu_ratio_rate_5m_2d_1m.csv
6+
17
curl 'http://localhost:9090/api/v1/query?query={cluster:node_cpu:ratio_rate5m}\[1d:1m\]' |
28
jq '.data.result[].values[][1]' |
39
sed 's/\"//g' >node_cpu_ratio_rate_5m_1d_1m.csv
10+
11+
curl 'http://localhost:9090/api/v1/query?query=node_memory_Active_bytes\[2d:1m\]' >node_memory_Active_bytes_2d_1m.csv

0 commit comments

Comments
 (0)