← 返回列表
全部 Skill›DevOps›topology-authoring

topology-authoring

作者 @netdata · 语言 en
Design, change or review Netdata topology producers and netdata.topology.v1 payloads, including actors, links, evidence, correlation, presentation, modals, overlays and validators. Operator topology queries use query skills; SNMP profile topology rows use collectors-snmp-profiles.
DevOps监控通用读写文件待翻译
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
81,611
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

Topology Producers

Developer skill for assistants working in this repository, not an operator skill. It routes to the documents that

own each fact and keeps only the rules and workflow that have no other owner. When you find a fact here and in an

owner document, verify the affected contract at its source and correct stale guidance during authorized maintenance.

Apply AGENTS.md#skill-selection. Review the affected planes and existing design/validation evidence; authoring steps

below do not require reviewers to create a SOW, redesign unrelated planes or query a live Agent. Live verification

recipes apply only when the task includes that operation. A changed validator requires checking the claims it affects.

Owners

Read the owner for the plane you touch; do not work from memory of it.

| Owner | Owns |

|---|---|

| src/plugins.d/FUNCTION_TOPOLOGY_SCHEMA.json | Every required field and closed token (icons, colors, layout, cell types, visibility, projections, arrow, direction, severities, rule classes). Named record definitions are additionalProperties: false; the type registries, evidence, scale_keys, correlation.rules, and the maps under data.tables.actor / .relationship are maps keyed by producer-chosen ids (propertyNames = id); dictionaries, stats, extensions, badge_map, and link_aggregation.metrics are open maps; required_params[] stays open except for optional typed focus metadata. |

| src/plugins.d/FUNCTION_TOPOLOGY_DEVELOPER_GUIDE.md | The payload contract, plane by plane, plus per-producer Shape sections and the aggregator rules a producer relies on. |

| src/plugins.d/FUNCTION_TOPOLOGY_IMPLEMENTATION_SCOPE.md | Migration state per producer, Cloud aggregator and frontend scope, the CTS gate, and design that is not yet in the schema. |

| src/go/pkg/topology/v1 | Go builders and semantic validators (validate.go, validate_notification.go, validate_focus.go, validate_view.go). |

| src/go/plugin/go.d/collector/snmp_topology/ARCHITECTURE.md | SNMP producer internals, where to change what, and its validation commands. |

| src/go/pkg/l2topology/parity/README.md | The L2 parity runbook against the enlinkd oracle. |

| src/go/tools/functions-validation/README.md#validate-topology-v1-fixtures | Validating any topology payload file from the CLI. |

| src/plugins.d/FUNCTION_UI_REFERENCE.md, src/plugins.d/FUNCTION_UI_DEVELOPER_GUIDE.md | Function transport: envelope, v: 3, selections, info responses. |

| docs/npm/topology/ | What operators are told the topology means. Change it when a user-visible meaning changes. |

If the task also changes or reviews the collector that hosts the producer,

.agents/skills/collectors-authoring/SKILL.md routes that work. SNMP profile topology: rows (which OIDs feed the

producer) belong to collectors-snmp-profiles; this skill starts where those rows have become observations.

Producers

| Function | Producer | Tests |

|---|---|---|

| topology:network-connections | src/collectors/network-viewer.plugin/network-viewer-topology.c (shared renderer; Windows main in network-viewer-windows.c, container rules in network-viewer-topology-containers.c) | src/collectors/network-viewer.plugin/tests/validate_topology_payload.py, validate_topology_container_fixtures.py, the C unit tests test_network_viewer_topology_containers.c and test_network_viewer_apps_lookup_client.c, and fixtures under tests/fixtures/topology/ (all under src/collectors/network-viewer.plugin/tests/) |

| topology:streaming | src/web/api/functions/function-topology-streaming.c (path facts from src/streaming/stream-path.c) | no producer-level test; src/go/tools/functions-validation/fixtures/topology-v1/streaming.json is a hand-authored schema sample that does not mirror the emitted shape |

| topology:snmp | src/go/plugin/go.d/collector/snmp_topology/ (render in internal/topologyv1) | topology_scenario_golden_test.go, internal/topologyv1/golden_test.go, see src/go/plugin/go.d/collector/snmp_topology/ARCHITECTURE.md#validation-checklist |

| topology:vsphere | src/go/plugin/go.d/collector/vsphere/func_topology*.go | func_topology_test.go |

| topology:cato_networks | src/go/plugin/go.d/collector/cato_networks/topology.go, catofunc/topology.go | topology_test.go |

| topology:tracing | src/crates/otel-service-map/ (payload.rs, topology_template.json, function.rs), served by the otel-plugin ingestor | the crate's tests (cargo test -p otel-service-map), including the golden test that keeps src/go/tools/functions-validation/fixtures/topology-v1/tracing.json current |

All six emit netdata.topology.v1; no producer still emits a pre-v1 payload. Remaining per-producer refinements

are tracked in src/plugins.d/FUNCTION_TOPOLOGY_IMPLEMENTATION_SCOPE.md#current-migration-inventory. Cross-producer

fixtures live in src/go/tools/functions-validation/fixtures/topology-v1/ (none for topology:cato_networks); the

Cloud aggregator itself is not in this repository.

What The Code Enforces

Use this map to locate enforcement and its known limits. Before relying on a claim affected by the task, verify it in

the current schema, validator and relevant tests. Do not re-audit unrelated behavior or infer enforcement from this

summary alone; distinguish intended contract from what the checked implementation actually rejects.

  • JSON Schema (FUNCTION_TOPOLOGY_SCHEMA.json): structure, required fields, closed tokens, unknown properties. A

violation is an error from any validator that loads the schema. It does not check cross-references or row counts.

  • Go semantic vali
评论
Nnetdata
netdata
netdata/netdata
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@netdata
所属大类DevOps / 监控
国内可用性通用
最近源活动—
风险提示读写文件
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。