cx-search-dashboard
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDashboard Search Skill
Dashboard搜索技能
Use this skill to discover existing Coralogix dashboards and widgets using semantic or field-based search via the CLI commands. Before creating a new dashboard, always search first to avoid duplication.
cx dashboards使用本Skill通过 CLI命令,以语义搜索或基于字段的搜索方式发现现有Coralogix仪表盘和widget。创建新仪表盘前,请务必先进行搜索以避免重复。
cx dashboardsCLI Commands
CLI命令
| Command | Purpose | Key flags |
|---|---|---|
| Find dashboards by natural-language description | |
| Find widgets whose queries match a description | |
| Find all widgets that reference a specific field | |
| List all dashboards | - |
| Get full dashboard definition | - |
Output format: append or for machine-readable output.
-o json-o agents| 命令 | 用途 | 关键参数 |
|---|---|---|
| 通过自然语言描述查找仪表盘 | |
| 查找查询语句匹配指定描述的widget | |
| 查找所有引用特定字段的widget | |
| 列出所有仪表盘 | - |
| 获取完整的仪表盘定义 | - |
输出格式: 添加 或 可获得机器可读的输出。
-o json-o agentsWhen to Use Each Command
各命令的适用场景
| Goal | Command |
|---|---|
| Check if a dashboard for a service or topic already exists | |
| Find widgets whose queries cover a topic you care about | |
| Find widgets whose queries reference a specific field path | |
| Browse all dashboards | |
| 目标 | 命令 |
|---|---|
| 检查是否已存在针对某服务或主题的仪表盘 | |
| 查找查询语句涵盖你关注主题的widget | |
| 查找查询语句引用特定字段路径的widget | |
| 浏览所有仪表盘 | |
Examples
示例
Find a dashboard for a service
查找某服务的仪表盘
bash
cx dashboards search "payment service error rate"
cx dashboards search "kubernetes node cpu"bash
cx dashboards search "payment service error rate"
cx dashboards search "kubernetes node cpu"Find widgets whose queries cover a topic
查找查询语句涵盖某主题的widget
bash
cx dashboards query-search --description "http 5xx error rate"
cx dashboards query-search --description "p99 latency over time"bash
cx dashboards query-search --description "http 5xx error rate"
cx dashboards query-search --description "p99 latency over time"Find all widgets that reference a field
查找所有引用某字段的widget
bash
cx dashboards query-search --field '$d.http.status_code'
cx dashboards query-search --field '$d.kubernetes.pod.name'This reveals query patterns already in use — useful for reusing existing approaches when adding new widgets.
bash
cx dashboards query-search --field '$d.http.status_code'
cx dashboards query-search --field '$d.kubernetes.pod.name'这可以揭示已在使用的查询模式——在添加新widget时,有助于复用现有方案。
Inspect and clone a found dashboard
查看并克隆找到的仪表盘
bash
undefinedbash
undefinedGet full JSON of a dashboard you found
获取找到的仪表盘完整JSON
cx dashboards get <dashboard-id> -o json > dashboard.json
cx dashboards get <dashboard-id> -o json > dashboard.json
Modify it, then create a copy
修改后创建副本
cx dashboards create --from-file dashboard.json
undefinedcx dashboards create --from-file dashboard.json
undefinedKey Principles
核心原则
- Search before creating — always run before building a new dashboard to avoid duplicates
cx dashboards search - Use field search for discovery — shows how a field is already being queried, which is the fastest way to find reusable PromQL or DataPrime patterns
cx dashboards query-search --field - Description search is fuzzy — the results are ranked by similarity, not exact match; try several phrasings if the first search returns nothing useful
- Use to inspect — once you find a relevant dashboard or widget, pull its full JSON to study the query structure
cx dashboards get
- 创建前先搜索——在构建新仪表盘前,务必运行以避免重复
cx dashboards search - 使用字段搜索进行发现——可展示字段的现有查询方式,这是查找可复用PromQL或DataPrime模式的最快途径
cx dashboards query-search --field - 描述搜索为模糊匹配——结果按相似度排序,而非精确匹配;若首次搜索无有效结果,可尝试多种表述
- 使用查看详情——找到相关仪表盘或widget后,获取其完整JSON以研究查询结构
cx dashboards get
Related Skills
相关技能
- — build and deploy a new Coralogix dashboard from scratch
cx-create-dashboard - — discover what telemetry fields and metrics exist before searching dashboards
cx-telemetry-querying
- ——从头构建并部署新的Coralogix仪表盘
cx-create-dashboard - ——在搜索仪表盘前,先发现存在哪些遥测字段和指标
cx-telemetry-querying