You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: rename and simplify kubernetes troubleshooting tools
Rename 'troubleshoot_kubernetes_' tools to 'kubernetes_' and simplify names by removing '_by_' infix and shortening '400_500_http_errors' to 'http_errors'. This improves readability and usability of the MCP tools.
- **Description**: Shows the top N pods with the highest number of unavailable or unready replicas in a Kubernetes cluster, ordered from highest to lowest.
138
138
- **Required Permission**: `metrics-data.read`
139
139
- **Sample Prompt**: "Show the top 20 unavailable pods in cluster 'production'"
- **Description**: Lists the pods with the highest number of container restarts in the specified scope (cluster, namespace, workload, or individual pod). By default, it returns the top 10.
143
143
- **Required Permission**: `metrics-data.read`
144
144
- **Sample Prompt**: "Show the top 10 pods with the most container restarts in cluster 'production'"
- **Description**: Lists the pods with the highest rate of HTTP 4xx and 5xx errors over a specified time interval, allowing filtering by cluster, namespace, workload type, and workload name.
148
148
- **Required Permission**: `metrics-data.read`
149
149
- **Sample Prompt**: "Show the top 20 pods with the most HTTP errors in cluster 'production'"
- **Description**: Shows the top network errors by pod over a given interval, aggregated by cluster, namespace, workload type, and workload name. The result is an average rate of network errors per second.
153
153
- **Required Permission**: `metrics-data.read`
154
154
- **Sample Prompt**: "Show the top 10 pods with the most network errors in cluster 'production'"
Copy file name to clipboardExpand all lines: internal/infra/mcp/tools/README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,17 +14,17 @@ The handler filters tools dynamically based on the Sysdig user's permissions. Ea
14
14
|`kubernetes_list_workloads`|`tool_kubernetes_list_workloads.go`| Lists Kubernetes workload information. |`metrics-data.read`| "List all desired workloads in the cluster 'production-gke' and namespace 'default'" |
15
15
|`list_runtime_events`|`tool_list_runtime_events.go`| Query runtime events with filters, cursor, scope. |`policy-events.read`| “Show high severity runtime events from last 2h.” |
16
16
|`run_sysql`|`tool_run_sysql.go`| Execute caller-supplied Sysdig SysQL queries safely. |`sage.exec`, `risks.read`| “Run the following SysQL…”. |
17
-
|`troubleshoot_kubernetes_list_count_pods_per_cluster`|`tool_troubleshoot_kubernetes_list_count_pods_per_cluster.go`| List the count of running Kubernetes Pods grouped by cluster and namespace. |`metrics-data.read`| "List the count of running Kubernetes Pods in cluster 'production'" |
18
-
|`troubleshoot_kubernetes_list_top_400_500_http_errors_in_pods`|`tool_troubleshoot_kubernetes_list_top_400_500_http_errors_in_pods.go`| Lists the pods with the highest rate of HTTP 4xx and 5xx errors over a specified time interval. |`metrics-data.read`| "Show the top 20 pods with the most HTTP errors in cluster 'production'" |
19
-
|`troubleshoot_kubernetes_list_top_cpu_consumed_by_container`|`tool_troubleshoot_kubernetes_list_top_cpu_consumed_by_container.go`| Identifies the Kubernetes containers consuming the most CPU (in cores). |`metrics-data.read`| "Show the top 10 containers consuming the most CPU in cluster 'production'" |
20
-
|`troubleshoot_kubernetes_list_top_cpu_consumed_by_workload`|`tool_troubleshoot_kubernetes_list_top_cpu_consumed_by_workload.go`| Identifies the Kubernetes workloads (all containers) consuming the most CPU (in cores). |`metrics-data.read`| "Show the top 10 workloads consuming the most CPU in cluster 'production'" |
21
-
|`troubleshoot_kubernetes_list_top_memory_consumed_by_container`|`tool_troubleshoot_kubernetes_list_top_memory_consumed_by_container.go`| Lists memory-intensive containers. |`metrics-data.read`| "Show the top 10 containers consuming the most memory in cluster 'production'" |
22
-
|`troubleshoot_kubernetes_list_top_memory_consumed_by_workload`|`tool_troubleshoot_kubernetes_list_top_memory_consumed_by_workload.go`| Lists memory-intensive workloads (all containers). |`metrics-data.read`| "Show the top 10 workloads consuming the most memory in cluster 'production'" |
23
-
|`troubleshoot_kubernetes_list_top_network_errors_in_pods`|`tool_troubleshoot_kubernetes_list_top_network_errors_in_pods.go`| Shows the top network errors by pod over a given interval. |`metrics-data.read`| "Show the top 10 pods with the most network errors in cluster 'production'" |
24
-
|`troubleshoot_kubernetes_list_top_restarted_pods`|`tool_troubleshoot_kubernetes_list_top_restarted_pods.go`| Lists the pods with the highest number of container restarts. |`metrics-data.read`| "Show the top 10 pods with the most container restarts in cluster 'production'" |
25
-
|`troubleshoot_kubernetes_list_top_unavailable_pods`|`tool_troubleshoot_kubernetes_list_top_unavailable_pods.go`| Shows the top N pods with the highest number of unavailable or unready replicas. |`metrics-data.read`| "Show the top 20 unavailable pods in cluster 'production'" |
26
-
|`troubleshoot_kubernetes_list_underutilized_pods_by_cpu_quota`|`tool_troubleshoot_kubernetes_list_underutilized_pods_by_cpu_quota.go`| List Kubernetes pods with CPU usage below 25% of the quota limit. |`metrics-data.read`| "Show the top 10 underutilized pods by CPU quota in cluster 'production'" |
27
-
|`troubleshoot_kubernetes_list_underutilized_pods_by_memory_quota`|`tool_troubleshoot_kubernetes_list_underutilized_pods_by_memory_quota.go`| List Kubernetes pods with memory usage below 25% of the limit. |`metrics-data.read`| "Show the top 10 underutilized pods by memory quota in cluster 'production'" |
17
+
|`kubernetes_list_count_pods_per_cluster`|`tool_kubernetes_list_count_pods_per_cluster.go`| List the count of running Kubernetes Pods grouped by cluster and namespace. |`metrics-data.read`| "List the count of running Kubernetes Pods in cluster 'production'" |
18
+
|`kubernetes_list_top_http_errors_in_pods`|`tool_kubernetes_list_top_http_errors_in_pods.go`| Lists the pods with the highest rate of HTTP 4xx and 5xx errors over a specified time interval. |`metrics-data.read`| "Show the top 20 pods with the most HTTP errors in cluster 'production'" |
19
+
|`kubernetes_list_top_cpu_consumed_container`|`tool_kubernetes_list_top_cpu_consumed_container.go`| Identifies the Kubernetes containers consuming the most CPU (in cores). |`metrics-data.read`| "Show the top 10 containers consuming the most CPU in cluster 'production'" |
20
+
|`kubernetes_list_top_cpu_consumed_workload`|`tool_kubernetes_list_top_cpu_consumed_workload.go`| Identifies the Kubernetes workloads (all containers) consuming the most CPU (in cores). |`metrics-data.read`| "Show the top 10 workloads consuming the most CPU in cluster 'production'" |
21
+
|`kubernetes_list_top_memory_consumed_container`|`tool_kubernetes_list_top_memory_consumed_container.go`| Lists memory-intensive containers. |`metrics-data.read`| "Show the top 10 containers consuming the most memory in cluster 'production'" |
22
+
|`kubernetes_list_top_memory_consumed_workload`|`tool_kubernetes_list_top_memory_consumed_workload.go`| Lists memory-intensive workloads (all containers). |`metrics-data.read`| "Show the top 10 workloads consuming the most memory in cluster 'production'" |
23
+
|`kubernetes_list_top_network_errors_in_pods`|`tool_kubernetes_list_top_network_errors_in_pods.go`| Shows the top network errors by pod over a given interval. |`metrics-data.read`| "Show the top 10 pods with the most network errors in cluster 'production'" |
24
+
|`kubernetes_list_top_restarted_pods`|`tool_kubernetes_list_top_restarted_pods.go`| Lists the pods with the highest number of container restarts. |`metrics-data.read`| "Show the top 10 pods with the most container restarts in cluster 'production'" |
25
+
|`kubernetes_list_top_unavailable_pods`|`tool_kubernetes_list_top_unavailable_pods.go`| Shows the top N pods with the highest number of unavailable or unready replicas. |`metrics-data.read`| "Show the top 20 unavailable pods in cluster 'production'" |
26
+
|`kubernetes_list_underutilized_pods_cpu_quota`|`tool_kubernetes_list_underutilized_pods_cpu_quota.go`| List Kubernetes pods with CPU usage below 25% of the quota limit. |`metrics-data.read`| "Show the top 10 underutilized pods by CPU quota in cluster 'production'" |
27
+
|`kubernetes_list_underutilized_pods_memory_quota`|`tool_kubernetes_list_underutilized_pods_memory_quota.go`| List Kubernetes pods with memory usage below 25% of the limit. |`metrics-data.read`| "Show the top 10 underutilized pods by memory quota in cluster 'production'" |
0 commit comments