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
Copy file name to clipboardExpand all lines: README.md
+12-51Lines changed: 12 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -363,43 +363,23 @@ In case multi-cluster support is enabled (default) and you have access to multip
363
363
-`namespace` (`string`) - Namespace containing the Istio object
364
364
-`version` (`string`) - API version of the Istio object (e.g., 'v1', 'v1beta1')
365
365
366
-
-**kiali_services_list** - Get all services in the mesh across specified namespaces with health and Istio resource information
366
+
-**kiali_get_resource_details** - Gets lists or detailed info for Kubernetes resources (services, workloads) within the mesh
367
367
-`namespaces` (`string`) - Comma-separated list of namespaces to get services from (e.g. 'bookinfo' or 'bookinfo,default'). If not provided, will list services from all accessible namespaces
368
+
-`resource_name` (`string`) - Name of the resource to get details for (optional string - if provided, gets details; if empty, lists all).
369
+
-`resource_type` (`string`) - Type of resource to get details for (service, workload)
368
370
369
-
-**kiali_service_details** - Get detailed information for a specific service in a namespace, including validation, health status, and configuration
370
-
-`namespace` (`string`) **(required)** - Namespace containing the service
371
-
-`service` (`string`) **(required)** - Name of the service to get details for
372
-
373
-
-**kiali_service_metrics** - Get metrics for a specific service in a namespace. Supports filtering by time range, direction (inbound/outbound), reporter, and other query parameters
374
-
-`byLabels` (`string`) - Comma-separated list of labels to group metrics by (e.g., 'source_workload,destination_service'). Optional
375
-
-`direction` (`string`) - Traffic direction: 'inbound' or 'outbound'. Optional, defaults to 'outbound'
376
-
-`duration` (`string`) - Duration of the query period in seconds (e.g., '1800' for 30 minutes). Optional, defaults to 1800 seconds
377
-
-`namespace` (`string`) **(required)** - Namespace containing the service
378
-
-`quantiles` (`string`) - Comma-separated list of quantiles for histogram metrics (e.g., '0.5,0.95,0.99'). Optional
379
-
-`rateInterval` (`string`) - Rate interval for metrics (e.g., '1m', '5m'). Optional, defaults to '1m'
380
-
-`reporter` (`string`) - Metrics reporter: 'source', 'destination', or 'both'. Optional, defaults to 'source'
-`service` (`string`) **(required)** - Name of the service to get metrics for
383
-
-`step` (`string`) - Step between data points in seconds (e.g., '15'). Optional, defaults to 15 seconds
384
-
385
-
-**kiali_workloads_list** - Get all workloads in the mesh across specified namespaces with health and Istio resource information
386
-
-`namespaces` (`string`) - Comma-separated list of namespaces to get workloads from (e.g. 'bookinfo' or 'bookinfo,default'). If not provided, will list workloads from all accessible namespaces
387
-
388
-
-**kiali_workload_details** - Get detailed information for a specific workload in a namespace, including validation, health status, and configuration
389
-
-`namespace` (`string`) **(required)** - Namespace containing the workload
390
-
-`workload` (`string`) **(required)** - Name of the workload to get details for
391
-
392
-
-**kiali_workload_metrics** - Get metrics for a specific workload in a namespace. Supports filtering by time range, direction (inbound/outbound), reporter, and other query parameters
371
+
-**kiali_get_metrics** - Gets lists or detailed info for Kubernetes resources (services, workloads) within the mesh
393
372
-`byLabels` (`string`) - Comma-separated list of labels to group metrics by (e.g., 'source_workload,destination_service'). Optional
394
373
-`direction` (`string`) - Traffic direction: 'inbound' or 'outbound'. Optional, defaults to 'outbound'
395
-
-`duration` (`string`) - Duration of the query period in seconds (e.g., '1800' for 30 minutes). Optional, defaults to 1800 seconds
396
-
-`namespace` (`string`) **(required)** - Namespace containing the workload
374
+
-`duration` (`string`) - Time range to get metrics for (optional string - if provided, gets metrics; if empty, get default 1800s).
375
+
-`namespace` (`string`) **(required)** - Namespace to get resources from
397
376
-`quantiles` (`string`) - Comma-separated list of quantiles for histogram metrics (e.g., '0.5,0.95,0.99'). Optional
398
377
-`rateInterval` (`string`) - Rate interval for metrics (e.g., '1m', '5m'). Optional, defaults to '1m'
399
378
-`reporter` (`string`) - Metrics reporter: 'source', 'destination', or 'both'. Optional, defaults to 'source'
-`resource_name` (`string`) **(required)** - Name of the resource to get details for (optional string - if provided, gets details; if empty, lists all).
381
+
-`resource_type` (`string`) **(required)** - Type of resource to get details for (service, workload)
401
382
-`step` (`string`) - Step between data points in seconds (e.g., '15'). Optional, defaults to 15 seconds
402
-
-`workload` (`string`) **(required)** - Name of the workload to get metrics for
403
383
404
384
-**workload_logs** - Get logs for a specific workload's pods in a namespace. Only requires namespace and workload name - automatically discovers pods and containers. Optionally filter by container name, time range, and other parameters. Container is auto-detected if not specified.
405
385
-`container` (`string`) - Optional container name to filter logs. If not provided, automatically detects and uses the main application container (excludes istio-proxy and istio-init)
@@ -408,35 +388,16 @@ In case multi-cluster support is enabled (default) and you have access to multip
408
388
-`tail` (`integer`) - Number of lines to retrieve from the end of logs (default: 100)
409
389
-`workload` (`string`) **(required)** - Name of the workload to get logs for
410
390
411
-
-**kiali_app_traces** - Get distributed tracing data for a specific app in a namespace. Returns trace information including spans, duration, and error details for troubleshooting and performance analysis.
412
-
-`app` (`string`) **(required)** - Name of the app to get traces for
413
-
-`clusterName` (`string`) - Cluster name for multi-cluster environments (optional)
414
-
-`endMicros` (`string`) - End time for traces in microseconds since epoch (optional)
415
-
-`limit` (`integer`) - Maximum number of traces to return (default: 100)
416
-
-`minDuration` (`integer`) - Minimum trace duration in microseconds (optional)
417
-
-`namespace` (`string`) **(required)** - Namespace containing the app
418
-
-`startMicros` (`string`) - Start time for traces in microseconds since epoch (optional)
419
-
-`tags` (`string`) - JSON string of tags to filter traces (optional)
420
-
421
-
-**kiali_service_traces** - Get distributed tracing data for a specific service in a namespace. Returns trace information including spans, duration, and error details for troubleshooting and performance analysis.
422
-
-`clusterName` (`string`) - Cluster name for multi-cluster environments (optional)
423
-
-`endMicros` (`string`) - End time for traces in microseconds since epoch (optional)
424
-
-`limit` (`integer`) - Maximum number of traces to return (default: 100)
425
-
-`minDuration` (`integer`) - Minimum trace duration in microseconds (optional)
426
-
-`namespace` (`string`) **(required)** - Namespace containing the service
427
-
-`service` (`string`) **(required)** - Name of the service to get traces for
428
-
-`startMicros` (`string`) - Start time for traces in microseconds since epoch (optional)
429
-
-`tags` (`string`) - JSON string of tags to filter traces (optional)
430
-
431
-
-**kiali_workload_traces** - Get distributed tracing data for a specific workload in a namespace. Returns trace information including spans, duration, and error details for troubleshooting and performance analysis.
391
+
-**kiali_get_traces** - Gets traces for a specific resource (app, service, workload) in a namespace
432
392
-`clusterName` (`string`) - Cluster name for multi-cluster environments (optional)
433
393
-`endMicros` (`string`) - End time for traces in microseconds since epoch (optional)
434
394
-`limit` (`integer`) - Maximum number of traces to return (default: 100)
435
395
-`minDuration` (`integer`) - Minimum trace duration in microseconds (optional)
436
-
-`namespace` (`string`) **(required)** - Namespace containing the workload
396
+
-`namespace` (`string`) **(required)** - Namespace to get resources from
397
+
-`resource_name` (`string`) **(required)** - Name of the resource to get details for (optional string - if provided, gets details; if empty, lists all).
398
+
-`resource_type` (`string`) **(required)** - Type of resource to get metrics for (app, service, workload)
437
399
-`startMicros` (`string`) - Start time for traces in microseconds since epoch (optional)
438
400
-`tags` (`string`) - JSON string of tags to filter traces (optional)
439
-
-`workload` (`string`) **(required)** - Name of the workload to get traces for
Description: "Gets lists or detailed info for Kubernetes resources (services, workloads) within the mesh",
49
+
InputSchema: &jsonschema.Schema{
50
+
Type: "object",
51
+
Properties: map[string]*jsonschema.Schema{
52
+
"resource_type": {
53
+
Type: "string",
54
+
Description: "Type of resource to get details for (service, workload)",
55
+
Enum: []any{"service", "workload"},
56
+
},
57
+
"namespaces": {
58
+
Type: "string",
59
+
Description: "Comma-separated list of namespaces to get services from (e.g. 'bookinfo' or 'bookinfo,default'). If not provided, will list services from all accessible namespaces",
60
+
},
61
+
"resource_name": {
62
+
Type: "string",
63
+
Description: "Name of the resource to get details for (optional string - if provided, gets details; if empty, lists all).",
0 commit comments