Skip to content

Commit

Permalink
fix webhook rul
Browse files Browse the repository at this point in the history
Signed-off-by: bvolovat <[email protected]>
  • Loading branch information
bvolovat committed Feb 6, 2025
1 parent 8854c10 commit 3313f3d
Show file tree
Hide file tree
Showing 21 changed files with 3 additions and 35 deletions.
6 changes: 3 additions & 3 deletions collect-metrics-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ data:
# Extract Image Versions (Excluding `http-request`)
IMAGE_VERSIONS=$(kubectl get pods -n kubescape -o jsonpath='{range .items[*]}{.metadata.name}{" -> "}{.spec.containers[*].image}{"\n"}{end}' |
awk -F'/' '{print $NF}' | awk -F':' '{if ($2 ~ /^v/) print $1": "$2; else print $1": v"$2}' |
grep -v "http-request" | sort -u)
awk -F'/' '{print $NF}' | awk -F':' '{if ($2 ~ /^v/) print $1": "$2; else print $1": v"$2}' |
sort -u)
# Extract only one `node-agent` version (DaemonSet runs multiple instances)
NODE_AGENT_VERSION=$(echo "$IMAGE_VERSIONS" | grep "node-agent" | head -n 1)
WEBHOOK_URL=${{ secrets.PERFO_CHANNEL_WEBHOOK_URL }}
WEBHOOK_URL="${WEBHOOK_URL}"
# Send Slack notification (Job Started)
# curl -X POST --data-urlencode "payload={\"channel\": \"C06AJ92GHLM\", \"username\": \"Performance-test\", \"icon_emoji\": \":rocket:\", \"text\": \"🚀 *Performance Test Started!* \nCluster: \`$CLUSTER_NAME\`\nHelm Chart: \`$HELM_VERSION\`\", \"attachments\": [{\"color\": \"#36a64f\", \"fields\": [{\"title\": \"Image Versions\", \"value\": \"\`\`\`$IMAGE_VERSIONS\`\`\`\", \"short\": false}], \"footer\": \"Kubernetes Cluster\", \"ts\": $(date +%s)}]}" $WEBHOOK_URL
Expand Down
13 changes: 0 additions & 13 deletions output/cpu_metrics.csv

This file was deleted.

13 changes: 0 additions & 13 deletions output/memory_metrics.csv

This file was deleted.

Binary file removed output/node-agent-5smfm_cpu_usage.png
Binary file not shown.
Binary file removed output/node-agent-5smfm_memory_usage.png
Binary file not shown.
Binary file removed output/node-agent-g8stq_cpu_usage.png
Binary file not shown.
Binary file removed output/node-agent-g8stq_memory_usage.png
Binary file not shown.
Binary file removed output/node-agent-hmrb9_cpu_usage.png
Binary file not shown.
Binary file removed output/node-agent-hmrb9_memory_usage.png
Binary file not shown.
Binary file removed output/node-agent-nzdz6_cpu_usage.png
Binary file not shown.
Binary file removed output/node-agent-nzdz6_memory_usage.png
Binary file not shown.
Binary file removed output/node-agent-p2pdx_cpu_usage.png
Binary file not shown.
Binary file removed output/node-agent-p2pdx_memory_usage.png
Binary file not shown.
Binary file removed output/node-agent-zvwhs_cpu_usage.png
Binary file not shown.
Binary file removed output/node-agent-zvwhs_memory_usage.png
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 3313f3d

Please sign in to comment.