search_metric
Search ZStack monitoring metrics by keywords, filter by namespace, and retrieve metric names, descriptions, namespaces, and tags.
Instructions
搜索可用的 ZStack 监控指标
Args: keywords: 搜索关键词,如 ["CPU", "Usage"] 或 ["Memory"] 支持驼峰拆分匹配 namespace: 可选,按命名空间过滤(支持模糊匹配),如 "ZStack/VM", "vm", "host" limit: 最多返回数量,默认 20 match_mode: 关键词匹配模式,"and" 或 "or",默认 "or" prefer_namespaces: 优先排序的命名空间列表(默认 ["ZStack/VM","ZStack/Host"])
Returns: 匹配的监控指标列表,包含名称、描述、命名空间、可用标签
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| namespace | No | ||
| limit | No | ||
| match_mode | No | or | |
| prefer_namespaces | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |