Skip to content

Commit

Permalink
jq
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyasnikov committed Oct 2, 2024
1 parent bbced9a commit ba0c6a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/main/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ async function main(): Promise<void> {
call(`kubectl logs pod/storage-0 > ./logs/storage-0.log`)

const targetIP = (call(`kubectl get pods prometheus-prometheus-0 -o=jsonpath='{.status.podIP}'`)).split('\n')[0]
call(`kubectl exec -it ${servicesPods['grafana']} -- /bin/bash -c "curl -s http://${targetIP}:9090/api/v1/label/__name__/values" | jq -r ".data[] | sort" > ./logs/prometheusLabelsNames.log`)
call(`kubectl exec -it ${servicesPods['grafana']} -- /bin/bash -c "curl -s http://${targetIP}:9090/api/v1/label/__name__/values | jq -r ".data[] | sort" > ./logs/prometheusLabelsNames.log`)

deleteCluster()
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion src/manifests.json

Large diffs are not rendered by default.

0 comments on commit ba0c6a1

Please sign in to comment.