diff --git a/.agents/skills/project-redirects/SKILL.md b/.agents/skills/project-redirects/SKILL.md new file mode 100644 index 0000000000..2610370bfc --- /dev/null +++ b/.agents/skills/project-redirects/SKILL.md @@ -0,0 +1,117 @@ +--- +name: project-redirects +description: "Mandatory workflow when adding, changing or removing Netlify redirect rules for learn.netdata.cloud (static.toml, the static section of netlify.toml, config/redirect-policy.json, scripts/verify-redirect-graph.js). Use before choosing redirect targets, adding a wildcard, or claiming a redirect batch is validated." +--- +# Learn Redirects + +## Purpose + +Keeps redirect batches correct: every same-site rule lands on a rendered page in one hop (rules to +other hosts are only checked as valid URLs), wildcards stay +bounded to relocated sections whose whole historical inventory is pinned and verified, and the two +redirect files stay in sync. Beyond the pinned inventory, a section wildcard also aliases every +page added later under the new prefix, and forwards unknown children to the new prefix, where they +still answer 404. + +## Scope + +Use this skill when: + +- adding redirects for dead URLs (backlinks, crawler or assistant requests, moved sections); +- relocating a docs section whose old paths must keep working; +- editing `config/redirect-policy.json` or `scripts/verify-redirect-graph.js`. + +Do not use this skill for: + +- the generated dynamic section of `netlify.toml` (written by `ingest/autogenerateRedirects.py` + during ingest; fix its producer, not the output); +- redirects on www.netdata.cloud (the website repository). + +## Mandatory Knowledge + +- Hand-maintained rules live in `static.toml`. The static section of `netlify.toml` (between + `# section: static << START` and `# section: static << END`) must be identical to it; edit both. +- Netlify applies the first matching rule. A wildcard placed before an exact rule it matches makes + that rule dead, and the verifier fails with "shadowed by wildcard". +- When a static wildcard whose destination ends in `:splat` covers a generated rule and the + wildcard's expanded target equals the generated target, the ingest generator drops the generated + rule; if the targets differ it raises an error (`ingest/autogenerateRedirects.py`, + `write_netlify_config`). When the targets match, remove the covered generated rule from + `netlify.toml` yourself until the next ingest (or regenerate with the script's `--refresh-current` + path), or the verifier reports the shadowing (SOW-0002). When they differ, decide the intended + destination first and change the wildcard or add an exact exception ahead of it; removing the + generated rule alone silently changes where that page goes. +- The verifier rejects exact-rule chains, targets that do not render, sources that shadow rendered routes, and + returned retired wildcards (`retired_wildcard_sources`). Relocated sections (`network_flows`, + `snmp_traps`) pin their full pre-move inventory in the policy. For `:splat` wildcards it probes the + pinned routes and one synthetic suffix only, so it can miss another child that lands on another + rule's source (a two-hop chain); check those overlaps by hand (SOW-0004). A wildcard with a fixed + destination is checked like an exact rule. +- The live sitemap writes `&` as `&`; decode it before comparing routes. Paths with a literal + `&` are real requests from sites that publish escaped links. +- The repository builds with Node.js 22 and Yarn 1; newer Node versions refuse the gate package. + +## Best Practices + +- Prefer exact rules. A wildcard is right for a whole relocated section where every old child has a + new counterpart (the Network Flows and SNMP Traps moves), or for decoding a literal `&` + segment across a section (the notifications and authentication wildcards). +- Before adding a wildcard, measure what it would catch: in SOW-0002 a `/docs/agent/*` rule would + have turned about 1,550 requested dead paths into 301s ending on a 404. +- Use the history of this repository to decide whether a path was a real page (`git log` on + `docs/`, slug and `learn_link` frontmatter, earlier rules). Real former pages and URLs with live + backlinks get rules; guessed URLs need an explicit user decision. +- Target the page that covers the same subject today; when none does, the closest parent section. + A 301 followed by a 200 does not prove the subject matches: read the old page (from git history) + and the target before choosing. A removed collector whose module no longer exists goes to + `/docs/collecting-metrics`, never to a sibling collector of the same plugin (SOW-0002: Zabbix). +- Add a batch under a dated comment that says what the batch is and how targets were chosen. Netlify + uses the first match, so any rule whose source an earlier wildcard also matches must go above that + wildcard (as SOW-0002 did for the `&` exceptions); the rest can go at the end of the static + section. + +## Bad Practices + +- Catch-all wildcards over legacy prefixes: they hide 404s behind redirects that still end on a 404. +- Editing only one of `static.toml` / `netlify.toml`. +- Rewriting `config/redirect-policy.json` with a JSON dumper: it reformats unrelated arrays; insert + text instead. + +## Workflow Checklist + +1. Collect the dead URLs and their evidence (backlinks, request counts, repository history). +2. Check each URL live (`curl -s -o /dev/null -w '%{http_code} %{redirect_url}'`) and against the + existing rules; drop those already handled. +3. Choose each target; confirm it is a rendered route and not itself a redirect source. +4. Write the rules to `static.toml` and mirror the static section into `netlify.toml`. +5. For a relocated section, add its inventory to the policy and its tests. + +## Validation Checklist + +Before claiming done: + +- `npm run build:netlify` with Node.js 22: the redirect graph, rendered-link and site gates pass. +- The required same-site job follows redirects to their final page (SOW-0003): run + `node scripts/link-integrity/check.mjs inventory --build-dir build --redirects netlify.toml + --policy config/link-integrity.json --output ` and then `... same-site --inventory ` + on the build; `node --test tests/link_integrity.test.mjs` covers the checker. +- `npx vitest run src/seo` and the ingest redirect tests (`pytest` in `ingest/`) pass; update the + pinned wildcard list in `src/seo/renderedLinks.test.js` when adding a wildcard. +- On the pull request's deploy preview, every new source answers 301 to its target and ends on 200 + after one hop. +- `src/seo/redirectGraph.test.js` reads `build/`, so keep it until the tests have run. Removing it + afterwards is optional disk cleanup, not part of validation. + +## Evidence + +- `scripts/verify-redirect-graph.js`: the redirect gates. +- `ingest/autogenerateRedirects.py` (`write_netlify_config`): static wildcard subsumption. +- `SOW-0002`: the fifth redirect batch, the wildcard measurement and the preview check. + +## Update Rules + +Update this skill when: + +- a gate, generator or test changes how redirects are validated; +- a batch finds a new failure mode (encoding, ordering, shadowing); +- the user changes which URL classes get redirects. diff --git a/.agents/sow/SOW.template.md b/.agents/sow/SOW.template.md new file mode 100644 index 0000000000..5b1c44f537 --- /dev/null +++ b/.agents/sow/SOW.template.md @@ -0,0 +1,199 @@ +# SOW-NNNN - + +## Status + +Status: open | in-progress | paused | completed | closed + +`completed` is the successful terminal status. `done` is a directory name, not a status value. Do not use `Status: done` or `Status: complete`. + +Sub-state: <short current truth> + +## Requirements + +### Purpose + +<User-stated purpose. All recommendations must align with this.> + +### User Request + +<Concise quote or faithful summary. Do not lose constraints.> + +### Assistant Understanding + +Facts: + +- <Established from user/project/code/specs.> + +Inferences: + +- <Reasoned but not directly stated.> + +Unknowns: + +- <Only real unknowns that cannot be resolved by investigation.> + +### Acceptance Criteria + +- <Outcome with verification method.> +- <Outcome with verification method.> + +## Analysis + +Sources checked: + +- <file/source> + +Current state: + +- <evidence> + +Risks: + +- <risk and implication> + +## Pre-Implementation Gate + +Status: blocked | ready | needs-user-decision + +Problem / root-cause model: + +- <What is happening, why it is happening, and evidence supporting that model.> + +Evidence reviewed: + +- <Specs, code, docs, tests, logs, traces, prior SOWs, issues, external references.> +- <For mirrored or cloned open-source repositories: cite `owner/repo @ commit` and repository-relative paths; never paste workstation absolute paths.> + +Affected contracts and surfaces: + +- <APIs, schemas, files, commands, UI, docs, specs, skills, tests, integrations, operators, users.> + +Existing patterns to reuse: + +- <Local modules, helpers, conventions, tests, and docs that shape the implementation.> + +Risk and blast radius: + +- <Regression, compatibility, performance, security, data loss, migration, rollout, and operational risks.> + +Sensitive data handling plan: + +- <Whether the work may expose secrets, credentials, bearer tokens, SNMP communities, community/customer data, personal data, non-private customer-identifying IPs, private endpoints, or proprietary incident details; how evidence will be redacted in SOWs, specs, docs, skills, instructions, and code comments.> + +Implementation plan: + +1. <Ordered chunk with scope, dependencies, and likely files/modules.> +2. <Ordered chunk with scope, dependencies, and likely files/modules.> + +Validation plan: + +- <Tests, fixtures, manual checks, real-use evidence, review passes, same-failure searches.> + +Artifact impact plan: + +- AGENTS.md: <expected update or reason likely unaffected> +- Runtime project skills: <expected update or reason likely unaffected> +- Specs: <expected update or reason likely unaffected> +- End-user/operator docs: <expected update or reason likely unaffected> +- End-user/operator skills: <expected update or reason likely unaffected> +- SOW lifecycle: <split/merge/status/follow-up/regression handling> + +Open-source reference evidence: + +- <If local mirrored or cloned open-source repositories were checked, list each as `owner/repo @ commit` plus repository-relative paths. If none were checked, record why external OSS references were not relevant.> + +Open decisions: + +- <Resolved decision, or numbered options that block implementation until the user decides.> + +## Implications And Decisions + +<Numbered user decisions, options, selection, and reasoning. User decisions must be recorded before implementation.> + +## Plan + +1. <chunk, scope, risk, dependencies> +2. <chunk, scope, risk, dependencies> + +## Execution Log + +### YYYY-MM-DD + +- <files touched, decisions, deviations, reviewers> + +## Validation + +Acceptance criteria evidence: + +- <evidence> + +Tests or equivalent validation: + +- <command/output summary> + +Real-use evidence: + +- <manual/API/CLI/UI path> + +Reviewer findings: + +- <reviewer and findings> + +Same-failure scan: + +- <search and result> + +Sensitive data gate: + +- <Confirm durable artifacts contain no raw secrets, credentials, bearer tokens, SNMP communities, community member names, customer names, personal data, non-private customer-identifying IPs, private endpoints, or proprietary incident details; note redactions used.> + +Artifact maintenance gate: + +- AGENTS.md: <updated path or evidence-backed reason no update was needed> +- Runtime project skills: <updated .agents/skills/project-*/ path or evidence-backed reason no update was needed> +- Specs: <updated .agents/sow/specs/ path or evidence-backed reason no update was needed> +- End-user/operator docs: <updated docs/runbooks/help paths or evidence-backed reason none were affected> +- End-user/operator skills: <updated output/reference skill paths or evidence-backed reason none were affected> +- SOW lifecycle: <status/directory checked; if successful close, `Status: completed` and move to `.agents/sow/done/` are committed together with the work in one commit unless user explicitly requested a different split; split/merge/follow-up/regression handling recorded> + +Specs update: + +- <updated spec or specific reason no update was needed> + +Project skills update: + +- <updated runtime project skill or specific reason no update was needed> + +End-user/operator docs update: + +- <updated docs or evidence-backed reason none were affected> + +End-user/operator skills update: + +- <updated output/reference skills affected by docs/spec changes, or evidence-backed reason none were affected> + +Lessons: + +- <lesson or specific reason none> + +Follow-up mapping: + +- <implemented/rejected/tracked> + +## Outcome + +Pending. + +## Lessons Extracted + +Pending. + +## Followup + +None yet. + +## Regression Log + +None yet. + +Append regression entries here only after this SOW was completed or closed and later testing or use found broken behavior. Use a dated `## Regression - YYYY-MM-DD` heading at the end of the file. Never prepend regression content above the original SOW narrative. diff --git a/.agents/sow/audit.sh b/.agents/sow/audit.sh new file mode 100755 index 0000000000..407aa694f7 --- /dev/null +++ b/.agents/sow/audit.sh @@ -0,0 +1,799 @@ +#!/usr/bin/env bash +# Read-only audit for a project-local SOW setup. +# Reports current state of cwd: is SOW initialized? what's in place? what's missing? +# Never modifies anything. + +set -uo pipefail + +# Color output if stdout is a tty +if [ -t 1 ]; then + RED=$'\033[0;31m' + GREEN=$'\033[0;32m' + YELLOW=$'\033[1;33m' + BLUE=$'\033[0;34m' + GRAY=$'\033[0;90m' + NC=$'\033[0m' +else + RED=""; GREEN=""; YELLOW=""; BLUE=""; GRAY=""; NC="" +fi + +cwd=$(pwd) +echo "${BLUE}=== SOW audit (cwd=$cwd) ===${NC}" +echo + +is_output_reference_skill() { + local name="$1" + [ -f ./AGENTS.md ] && awk -v name="$name" ' + BEGIN { in_output = 0; found = 0 } + /^[[:space:]]*Output\/reference skills:[[:space:]]*$/ { in_output = 1; next } + /^[[:space:]]*(Runtime input skills|Legacy runtime skills):[[:space:]]*$/ { if (in_output) in_output = 0 } + /^#{1,6}[[:space:]]/ && $0 !~ /Project Skills/ { if (in_output) in_output = 0 } + in_output && index($0, ".agents/skills/" name "/") { found = 1 } + END { exit found ? 0 : 1 } + ' ./AGENTS.md 2>/dev/null +} + +is_legacy_runtime_skill() { + local name="$1" + [ -f ./AGENTS.md ] && awk -v name="$name" ' + BEGIN { in_legacy = 0; found = 0 } + /^[[:space:]]*Legacy runtime skills:[[:space:]]*$/ { in_legacy = 1; next } + /^[[:space:]]*(Runtime input skills|Output\/reference skills):[[:space:]]*$/ { if (in_legacy) in_legacy = 0 } + /^#{1,6}[[:space:]]/ && $0 !~ /Project Skills/ && $0 !~ /Legacy runtime skills/ { if (in_legacy) in_legacy = 0 } + in_legacy && index($0, ".agents/skills/" name "/") { found = 1 } + END { exit found ? 0 : 1 } + ' ./AGENTS.md 2>/dev/null +} + +list_indexed_skills() { + awk ' + /^### Project Skills( Index)?[[:space:]]*$/ { in_skills = 1; in_example = 0; next } + /^###?[[:space:]]|^#[[:space:]]/ { in_skills = 0 } + !in_skills { next } + /^[[:space:]]*Example:[[:space:]]*$/ { in_example = 1; next } + /^[[:space:]]*(Runtime input skills|Legacy runtime skills|Output\/reference skills):[[:space:]]*$/ { in_example = 0; next } + !in_example && /^[[:space:]]*[-*+][[:space:]]+/ { + entry = $0 + sub(/^[[:space:]]*[-*+][[:space:]]+/, "", entry) + sub(/^\[[^]]+\]\(/, "", entry) + sub(/^`/, "", entry) + if (match(entry, /^(\.\/)?\.agents\/skills\/[A-Za-z0-9._-]+(\/SKILL\.md|\/)?([`)>[:space:]]|$)/)) { + dir = substr(entry, 1, RLENGTH) + sub(/^\.\//, "", dir) + sub(/[`)>[:space:]]$/, "", dir) + sub(/\/(SKILL\.md)?$/, "", dir) + if (!seen[dir]++) print dir + } + } + ' ./AGENTS.md 2>/dev/null +} + +read_sow_status() { + awk ' + function clean(s, a) { + gsub(/^[[:space:]]+|[[:space:]]+$/, "", s) + gsub(/`/, "", s) + gsub(/\*\*/, "", s) + sub(/^Status:[[:space:]]*/, "", s) + sub(/^status:[[:space:]]*/, "", s) + gsub(/^[[:space:]]+|[[:space:]]+$/, "", s) + split(s, a, /[[:space:]|—]+/) + print a[1] + exit + } + /^Status:[[:space:]]*/ { clean($0) } + /^status:[[:space:]]*/ { clean($0) } + /^\*\*Status:\*\*[[:space:]]*/ { clean($0) } + /^## Status[[:space:]]*$/ { in_status = 1; next } + in_status && NF { clean($0) } + ' "$1" 2>/dev/null +} + +in_git_worktree=false +if [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = true ]; then + in_git_worktree=true +fi + +list_agents_files() { + local file + find . -path ./.git -prune -o -type f -name AGENTS.md -print0 2>/dev/null | + while IFS= read -r -d '' file; do + if $in_git_worktree; then + git check-ignore -q -- "$file" 2>/dev/null + case $? in + 0) continue ;; + 1) ;; + *) return 1 ;; + esac + fi + printf '%s\0' "$file" + done +} + +list_sensitive_files() { + local file sow_dir + for file in ./AGENTS.md ./AGENTS.md.pre-sow.bak ./SKILL.md ./SOW-status.md ./.agents/sow/SOW.template.md; do + if [ -f "$file" ]; then + printf '%s\0' "$file" + fi + done + list_agents_files || return 1 + for sow_dir in ./.agents/sow/pending ./.agents/sow/current ./.agents/sow/done ./.agents/sow/specs; do + if [ -d "$sow_dir" ]; then + find "$sow_dir" -type f -name '*.md' -print0 2>/dev/null || return 1 + fi + done + if [ -d ./.agents/skills ]; then + find ./.agents/skills -type f \( -name '*.md' -o -name '*.yaml' -o -name '*.yml' \) -print0 2>/dev/null || return 1 + fi + if [ "${SOW_AUDIT_SENSITIVE_FULL_HISTORY:-0}" = "1" ]; then + find . -path ./.git -prune -o -type f \( -name '*.md' -o -name '*.rst' -o -name '*.adoc' -o -name '*.txt' -o -name '*.yaml' -o -name '*.yml' \) -print0 2>/dev/null + elif [ "${SOW_AUDIT_SENSITIVE_CHANGED:-0}" = "1" ] && $in_git_worktree; then + { + git diff --name-only --diff-filter=ACMR -z -- 2>/dev/null && + git diff --cached --name-only --diff-filter=ACMR -z -- 2>/dev/null && + git ls-files -o --exclude-standard -z 2>/dev/null + } | perl -0ne ' + chomp; + print "./$_\0" if /\.(md|rst|adoc|txt|yaml|yml|json|toml|ini|conf|cfg|env|sh|bash|zsh|py|js|jsx|ts|tsx|go|rs|c|h|hpp|cpp|java|rb|php|lua|sql)\z/ + || m{(?:^|/)(README|CHANGELOG|CONTRIBUTING|Dockerfile|Makefile)(\..*)?\z}; + ' 2>/dev/null + fi +} + +scan_sensitive_files() { + perl -e ' + sub is_public_customer_ip { + my ($ip) = @_; + my @o = split(/\./, $ip); + return 0 unless @o == 4; + return 0 if grep { $_ !~ /^\d+$/ || $_ < 0 || $_ > 255 } @o; + return 0 if $o[0] == 10; + return 0 if $o[0] == 172 && $o[1] >= 16 && $o[1] <= 31; + return 0 if $o[0] == 192 && $o[1] == 168; + return 0 if $o[0] == 127; + return 0 if $o[0] == 169 && $o[1] == 254; + return 0 if $o[0] == 100 && $o[1] >= 64 && $o[1] <= 127; + return 0 if $o[0] == 0; + return 0 if $o[0] >= 224; + return 0 if $o[0] == 192 && $o[1] == 0 && $o[2] == 2; + return 0 if $o[0] == 198 && $o[1] == 51 && $o[2] == 100; + return 0 if $o[0] == 203 && $o[1] == 0 && $o[2] == 113; + return 1; + } + + sub scan_line { + my ($path, $number, $line) = @_; + chomp $line; + my @hits; + push @hits, "private-key-material" if $line =~ /-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----/; + push @hits, "aws-access-key" if $line =~ /\b(?:AKIA|ASIA)[0-9A-Z]{16}\b/; + push @hits, "github-token" if $line =~ /\b(?:github_pat_[A-Za-z0-9_]{20,}|gh[pousr]_[A-Za-z0-9_]{20,})\b/; + push @hits, "slack-token" if $line =~ /\bxox[baprs]-[A-Za-z0-9-]{20,}\b/; + push @hits, "openai-key" if $line =~ /\bsk-(?:proj-)?[A-Za-z0-9_-]{20,}\b/; + push @hits, "google-api-key" if $line =~ /\bAIza[0-9A-Za-z_-]{20,}\b/; + push @hits, "jwt" if $line =~ /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/; + push @hits, "credentialed-url" if $line =~ m{[a-z][a-z0-9+.-]*://[^/\s:@]+:[^/\s:@]+@}i; + push @hits, "bearer-token" if $line =~ /\bBearer\s+[A-Za-z0-9._~+\/=-]{16,}\b/i && $line !~ /\b(REDACTED|EXAMPLE|PLACEHOLDER|YOUR[_-]?TOKEN|TOKEN|API[_-]?KEY|ACCESS[_-]?TOKEN)\b/i; + + if ($line =~ /\b(?:pass(?:word)?|passwd|pwd|api[_-]?key|secret|token|client[_-]?secret|private[_-]?key|access[_-]?key)\b\s*[:=]\s*["'\''`]?([^"'\''`\s<>{}\[\]&,]{8,})/i) { + my $value = lc $1; + push @hits, "credential-assignment" unless $value =~ /^(redacted|example|placeholder|changeme|change-me|xxx|xxxx|null|none|your[_-]?|dummy|sample|fake|test)/ || $value =~ /^\$/ || $value =~ /^(config|settings|options|opts|env|process\.env|os\.environ)\./ || $value =~ /^[a-z_][a-z0-9_.]*(token|secret|key|password)[a-z0-9_.]*$/; + } + + if ($line =~ /\b(?:snmp[_-]?)?(?:community|community[_-]?string|rocommunity|rwcommunity)\b\s*[:=]\s*["'\''`]?([^"'\''`\s<>{}\[\]]{3,})/i) { + my $value = lc $1; + push @hits, "snmp-community" unless $value =~ /^(redacted|example|placeholder|changeme|change-me|xxx|xxxx|null|none)$/; + } + + if ($line =~ /\b(?:customer|client|tenant|account|organization|org|community[ _-]?member)[ _-](?:name|id|identifier)\b\s*[:=]\s*["'\''`]?([^"'\''`<>\[\]{}][^"'\''`<>\[\]{}]{2,})/i) { + my $value = $1; + $value =~ s/^\s+|\s+$//g; + push @hits, "customer-or-private-identifier" unless $value =~ /^(redacted|example|placeholder|customer-|client-|tenant-|account-|org-|user|none|null)/i; + } + + if ($line =~ /\b[A-Z0-9._%+\-]+@[A-Z0-9.\-]+\.[A-Z]{2,}\b/i) { + push @hits, "email-address" unless $line =~ /\b(example\.com|example\.org|example\.net|localhost)\b/i; + } + + if ($line =~ /\b(customer|client|tenant|account|community member|support|production|prod|log|trace|request|source ip|remote ip|x-forwarded-for|host ip)\b/i) { + while ($line =~ /\b((?:\d{1,3}\.){3}\d{1,3})\b/g) { + push @hits, "public-ip-address" if is_public_customer_ip($1); + } + } + + for my $hit (@hits) { + print "finding\t$path:$number:$hit\n"; + } + } + + # Explicit reads distinguish EOF from a failed open or read. The -n + # shorthand can exit successfully after skipping unreadable files. + my %seen; + local $/ = "\0"; + while (defined(my $file = <STDIN>)) { + chomp $file; + next if $seen{$file}++; + my $path = $file; + $path =~ s/([\x00-\x1f\x7f])/sprintf("\\x%02x", ord($1))/ge; + if (!-f $file || !open(my $stream, "<", $file)) { + print "error\t$path (cannot open file)\n"; + next; + } else { + local $/ = "\n"; + my $number = 0; + my $read_ok = 1; + while (1) { + $! = 0; + my $line = <$stream>; + if (!defined $line) { + $read_ok = !$!; + last; + } + scan_line($path, ++$number, $line); + } + if (close($stream) && $read_ok) { + print "checked\n"; + } else { + print "error\t$path (cannot read file)\n"; + } + } + } + ' 2>/dev/null +} + +# --- Marker check --- +echo "${BLUE}-- initialization marker --${NC}" +if [ -f ./AGENTS.md ]; then + if grep -q "^Project SOW status: initialized$" ./AGENTS.md 2>/dev/null; then + echo " ${GREEN}OK${NC} marker present in ./AGENTS.md" + initialized=true + else + echo " ${YELLOW}--${NC} AGENTS.md exists but marker absent (partial state or not initialized)" + initialized=false + fi +else + echo " ${RED}--${NC} ./AGENTS.md does not exist (create or normalize project instructions first, then SOW init)" + initialized=false +fi +echo + +# --- Canonical AGENTS.md sections --- +echo "${BLUE}-- canonical AGENTS.md sections --${NC}" +required_sections=( + "## Goals" + "## SOW System" + "### Roles" + "### Git Worktrees" + "### Sensitive Data In Durable Artifacts" + "### Open-Source Reference Evidence" + "### Pre-Implementation Gate" + "### SOW Completion And Commit" + "### Regressions" + "### Project Skills" + "### Specs" + "### Project-specific overrides" +) +sections_ok=0 +sections_missing=0 +sensitive_warning_missing=0 +if [ -f ./AGENTS.md ]; then + for s in "${required_sections[@]}"; do + if grep -qF "$s" ./AGENTS.md 2>/dev/null; then + echo " ${GREEN}OK${NC} $s" + sections_ok=$((sections_ok + 1)) + else + echo " ${RED}--${NC} $s (missing)" + sections_missing=$((sections_missing + 1)) + fi + done + if grep -qF "CRITICAL: Never write raw sensitive data to durable artifacts." ./AGENTS.md 2>/dev/null; then + echo " ${GREEN}OK${NC} CRITICAL sensitive-data warning" + else + echo " ${RED}--${NC} CRITICAL sensitive-data warning (missing)" + sensitive_warning_missing=1 + fi +else + echo " ${GRAY}(AGENTS.md not present; skipping section check)${NC}" +fi +echo + +# --- All AGENTS.md sensitive-data warnings --- +echo "${BLUE}-- all AGENTS.md sensitive-data warnings --${NC}" +agents_warning_missing=0 +agents_warning_checked=0 +agents_list_complete=false +while IFS= read -r -d '' f; do + if [ -z "$f" ]; then + agents_list_complete=true + break + fi + agents_warning_checked=$((agents_warning_checked + 1)) + if grep -qF "CRITICAL: Never write raw sensitive data to durable artifacts." "$f" 2>/dev/null; then + echo " ${GREEN}OK${NC} $f" + else + echo " ${RED}--${NC} $f (missing CRITICAL sensitive-data warning)" + agents_warning_missing=$((agents_warning_missing + 1)) + fi +done < <(list_agents_files && printf '\0') +if ! $agents_list_complete; then + echo " ${RED}--${NC} AGENTS.md enumeration incomplete" +elif [ "$agents_warning_checked" -eq 0 ]; then + echo " ${GRAY}(no AGENTS.md files found)${NC}" +fi +echo + +# --- Cross-tool instruction bridges --- +echo "${BLUE}-- cross-tool instruction bridges --${NC}" +bridge_missing=0 +if [ -f ./AGENTS.md ]; then + if [ -L ./CLAUDE.md ] && [ "$(readlink ./CLAUDE.md 2>/dev/null)" = "AGENTS.md" ]; then + echo " ${GREEN}OK${NC} CLAUDE.md -> AGENTS.md" + else + echo " ${RED}--${NC} CLAUDE.md -> AGENTS.md (missing or not a relative symlink)" + bridge_missing=$((bridge_missing + 1)) + fi + if [ -L ./GEMINI.md ] && [ "$(readlink ./GEMINI.md 2>/dev/null)" = "AGENTS.md" ]; then + echo " ${GREEN}OK${NC} GEMINI.md -> AGENTS.md" + else + echo " ${RED}--${NC} GEMINI.md -> AGENTS.md (missing or not a relative symlink)" + bridge_missing=$((bridge_missing + 1)) + fi + if [ -d ./.agents/skills ]; then + echo " ${GREEN}OK${NC} .agents/skills/" + else + echo " ${RED}--${NC} .agents/skills/ (missing; create even when no project skills exist)" + bridge_missing=$((bridge_missing + 1)) + fi + if [ -L ./.claude/skills ] && [ "$(readlink ./.claude/skills 2>/dev/null)" = "../.agents/skills" ]; then + echo " ${GREEN}OK${NC} .claude/skills -> ../.agents/skills" + else + echo " ${RED}--${NC} .claude/skills -> ../.agents/skills (missing or not a relative symlink)" + bridge_missing=$((bridge_missing + 1)) + fi +else + echo " ${GRAY}(AGENTS.md not present; skipping bridge check)${NC}" +fi +echo + +# --- .agents/sow/ directories --- +echo "${BLUE}-- SOW directories --${NC}" +sow_dirs=(specs pending current done) +sow_dir_ok=0 +sow_dir_missing=0 +empty_sow_dir_missing_keep=0 +for d in "${sow_dirs[@]}"; do + if [ -d ".agents/sow/$d" ]; then + echo " ${GREEN}OK${NC} .agents/sow/$d/" + sow_dir_ok=$((sow_dir_ok + 1)) + has_entries=$(find ".agents/sow/$d" -mindepth 1 -maxdepth 1 2>/dev/null | wc -l | tr -d ' ') + if [ "$has_entries" -eq 0 ] && [ ! -f ".agents/sow/$d/.gitkeep" ] && [ ! -f ".agents/sow/$d/.keep" ]; then + echo " ${YELLOW}*${NC} empty directory has no .gitkeep or .keep placeholder" + empty_sow_dir_missing_keep=$((empty_sow_dir_missing_keep + 1)) + fi + else + echo " ${RED}--${NC} .agents/sow/$d/ (missing)" + sow_dir_missing=$((sow_dir_missing + 1)) + fi +done +echo + +# --- Project-local framework files --- +echo "${BLUE}-- project-local SOW framework files --${NC}" +framework_missing=0 +if [ -f ".agents/sow/SOW.template.md" ]; then + echo " ${GREEN}OK${NC} .agents/sow/SOW.template.md" + if grep -q "^## Pre-Implementation Gate$" ".agents/sow/SOW.template.md" 2>/dev/null; then + echo " ${GREEN}OK${NC} template includes Pre-Implementation Gate" + sow_template_pre_impl_missing=0 + else + echo " ${RED}--${NC} template missing ## Pre-Implementation Gate" + sow_template_pre_impl_missing=1 + fi + if grep -q "^Sensitive data handling plan:$" ".agents/sow/SOW.template.md" 2>/dev/null && grep -q "^Sensitive data gate:$" ".agents/sow/SOW.template.md" 2>/dev/null; then + echo " ${GREEN}OK${NC} template includes sensitive data gates" + sow_template_sensitive_gate_missing=0 + else + echo " ${RED}--${NC} template missing sensitive data handling plan or gate" + sow_template_sensitive_gate_missing=1 + fi + if grep -q "^Open-source reference evidence:$" ".agents/sow/SOW.template.md" 2>/dev/null; then + echo " ${GREEN}OK${NC} template includes open-source reference evidence" + sow_template_open_source_reference_missing=0 + else + echo " ${RED}--${NC} template missing open-source reference evidence" + sow_template_open_source_reference_missing=1 + fi + if grep -qF "directory name, not a status value" ".agents/sow/SOW.template.md" 2>/dev/null && grep -qF '`completed` is the successful terminal status' ".agents/sow/SOW.template.md" 2>/dev/null && grep -qF "one commit" ".agents/sow/SOW.template.md" 2>/dev/null; then + echo " ${GREEN}OK${NC} template includes completed-status and one-commit close rule" + sow_template_completion_rule_missing=0 + else + echo " ${RED}--${NC} template missing completed-status or one-commit close rule" + sow_template_completion_rule_missing=1 + fi +else + echo " ${RED}--${NC} .agents/sow/SOW.template.md (missing)" + framework_missing=$((framework_missing + 1)) + sow_template_pre_impl_missing=1 + sow_template_sensitive_gate_missing=1 + sow_template_open_source_reference_missing=1 + sow_template_completion_rule_missing=1 +fi +if [ -f ".agents/sow/audit.sh" ]; then + echo " ${GREEN}OK${NC} .agents/sow/audit.sh" +else + echo " ${RED}--${NC} .agents/sow/audit.sh (missing)" + framework_missing=$((framework_missing + 1)) +fi +echo + +# --- SOW counts per status --- +echo "${BLUE}-- SOW counts per status --${NC}" +for d in pending current done; do + if [ -d ".agents/sow/$d" ]; then + n=$(find ".agents/sow/$d" -mindepth 1 -maxdepth 1 -name 'SOW-*.md' -type f 2>/dev/null | wc -l | tr -d ' ') + if [ "$n" -gt 0 ]; then + echo " $d: $n" + find ".agents/sow/$d" -mindepth 1 -maxdepth 1 -name 'SOW-*.md' -type f -printf ' %f\n' 2>/dev/null | sort + else + echo " $d: ${GRAY}(empty)${NC}" + fi + fi +done +echo + +# --- SOW status/directory consistency --- +echo "${BLUE}-- SOW status/directory consistency --${NC}" +sow_status_mismatch=0 +sow_status_missing=0 +sow_status_checked=0 +for d in pending current done; do + [ -d ".agents/sow/$d" ] || continue + while IFS= read -r f; do + [ -z "$f" ] && continue + sow_status_checked=$((sow_status_checked + 1)) + status=$(read_sow_status "$f") + if [ -z "$status" ]; then + echo " ${RED}--${NC} $f (missing Status: line)" + sow_status_missing=$((sow_status_missing + 1)) + continue + fi + ok=false + case "$d:$status" in + pending:open|current:in-progress|current:paused|done:completed|done:closed) + ok=true + ;; + esac + if $ok; then + echo " ${GREEN}OK${NC} $f ($status)" + elif [ "$status" = "done" ]; then + echo " ${RED}--${NC} $f (Status: done is invalid; use Status: completed in done/. done is the directory name, not a status)" + sow_status_mismatch=$((sow_status_mismatch + 1)) + elif [ "$status" = "complete" ]; then + echo " ${RED}--${NC} $f (Status: complete is invalid; use Status: completed in done/)" + sow_status_mismatch=$((sow_status_mismatch + 1)) + else + echo " ${RED}--${NC} $f (Status: $status does not match $d/)" + sow_status_mismatch=$((sow_status_mismatch + 1)) + fi + done < <(find ".agents/sow/$d" -mindepth 1 -maxdepth 1 -name 'SOW-*.md' -type f 2>/dev/null | sort) +done +if [ "$sow_status_checked" -eq 0 ]; then + echo " ${GRAY}(no SOW files found)${NC}" +fi +echo + +# --- Current SOW pre-implementation gates --- +echo "${BLUE}-- current SOW pre-implementation gates --${NC}" +current_sow_pre_impl_missing=0 +current_sow_pre_impl_checked=0 +current_sow_sensitive_gate_missing=0 +if [ -d ".agents/sow/current" ]; then + while IFS= read -r f; do + [ -z "$f" ] && continue + current_sow_pre_impl_checked=$((current_sow_pre_impl_checked + 1)) + if grep -q "^## Pre-Implementation Gate$" "$f" 2>/dev/null; then + echo " ${GREEN}OK${NC} $f" + else + echo " ${RED}--${NC} $f (missing ## Pre-Implementation Gate before implementation continues)" + current_sow_pre_impl_missing=$((current_sow_pre_impl_missing + 1)) + fi + if ! grep -q "^Sensitive data handling plan:$" "$f" 2>/dev/null || ! grep -q "^Sensitive data gate:$" "$f" 2>/dev/null; then + echo " ${RED}--${NC} missing sensitive data handling plan or validation gate" + current_sow_sensitive_gate_missing=$((current_sow_sensitive_gate_missing + 1)) + fi + done < <(find ".agents/sow/current" -mindepth 1 -maxdepth 1 -name 'SOW-*.md' -type f 2>/dev/null | sort) +fi +if [ "$current_sow_pre_impl_checked" -eq 0 ]; then + echo " ${GRAY}(no current SOW files found)${NC}" +fi +echo + +# --- Regression section placement --- +echo "${BLUE}-- regression section placement --${NC}" +regression_order_violations=0 +regression_order_checked=0 +for d in pending current done; do + [ -d ".agents/sow/$d" ] || continue + while IFS= read -r f; do + [ -z "$f" ] && continue + result=$(awk ' + /^## Regression - [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]([[:space:]]|$)/ && !first_reg { first_reg = NR } + /^## (Outcome|[Ll]essons [Ee]xtracted|Followup|Follow-up)$/ { if (NR > last_tail) last_tail = NR } + END { + if (!first_reg) { + exit + } + if (last_tail && first_reg < last_tail) { + print "bad:" first_reg ":" last_tail + } else { + print "ok:" first_reg ":" last_tail + } + } + ' "$f") + [ -z "$result" ] && continue + regression_order_checked=$((regression_order_checked + 1)) + status=${result%%:*} + details=${result#*:} + if [ "$status" = "ok" ]; then + echo " ${GREEN}OK${NC} $f (Regression section is appended)" + else + first_reg=${details%%:*} + last_tail=${details#*:} + echo " ${RED}--${NC} $f (Regression section starts at line $first_reg before original tail section ending at line $last_tail; append regressions to the end)" + regression_order_violations=$((regression_order_violations + 1)) + fi + done < <(find ".agents/sow/$d" -mindepth 1 -maxdepth 1 -name 'SOW-*.md' -type f 2>/dev/null | sort) +done +if [ "$regression_order_checked" -eq 0 ]; then + echo " ${GRAY}(no regression sections found)${NC}" +fi +echo + +# --- Mirrored open-source reference evidence --- +echo "${BLUE}-- mirrored open-source reference evidence --${NC}" +mirror_path_violations=0 +mirror_path_checked=0 +for d in pending current done; do + [ -d ".agents/sow/$d" ] || continue + while IFS= read -r f; do + [ -z "$f" ] && continue + mirror_path_checked=$((mirror_path_checked + 1)) + if grep -Eq '/(home|Users|opt|tmp|var/tmp)/.*/(repos|mirrors)/' "$f" 2>/dev/null; then + echo " ${RED}--${NC} $f (uses a local mirror absolute path; cite owner/repo @ commit plus repo-relative path)" + mirror_path_violations=$((mirror_path_violations + 1)) + fi + done < <(find ".agents/sow/$d" -mindepth 1 -maxdepth 1 -name 'SOW-*.md' -type f 2>/dev/null | sort) +done +if [ "$mirror_path_checked" -eq 0 ]; then + echo " ${GRAY}(no SOW files found)${NC}" +elif [ "$mirror_path_violations" -eq 0 ]; then + echo " ${GREEN}OK${NC} checked $mirror_path_checked SOW file(s); mirrored repository evidence uses durable citations" +fi +echo + +# --- Sensitive data guardrail --- +echo "${BLUE}-- sensitive data guardrail --${NC}" +sensitive_findings=0 +sensitive_files_checked=0 +sensitive_scan_errors=0 +if ! command -v perl >/dev/null 2>&1; then + echo " ${RED}--${NC} Perl is required for the sensitive-data scan" + sensitive_scan_errors=1 +else + if ! scan_output=$(list_sensitive_files | scan_sensitive_files); then + echo " ${RED}--${NC} cannot enumerate or scan all durable artifacts" + sensitive_scan_errors=1 + fi + while IFS=$'\t' read -r result detail; do + case "$result" in + checked) sensitive_files_checked=$((sensitive_files_checked + 1)) ;; + finding) + echo " ${RED}--${NC} $detail" + sensitive_findings=$((sensitive_findings + 1)) + ;; + error) + echo " ${RED}--${NC} $detail" + sensitive_scan_errors=$((sensitive_scan_errors + 1)) + ;; + esac + done <<< "$scan_output" +fi +if [ "$sensitive_scan_errors" -gt 0 ]; then + echo " ${RED}--${NC} sensitive-data scan incomplete (${sensitive_files_checked} file(s) successfully scanned)" +elif [ "$sensitive_files_checked" -eq 0 ]; then + echo " ${GRAY}(no durable artifact files found)${NC}" +elif [ "$sensitive_findings" -eq 0 ]; then + echo " ${GREEN}OK${NC} scanned $sensitive_files_checked durable artifact file(s); no sensitive-data patterns found" +else + echo " ${RED}--${NC} $sensitive_findings sensitive-data pattern(s) found. Output is file:line:rule only; inspect locally and redact before commit." +fi +echo + +# --- Project skills --- +echo "${BLUE}-- runtime project skills --${NC}" +project_skills_ok=0 +project_skills_total=0 +project_output_reference_total=0 +project_skill_errors=0 +if [ -d .agents/skills ]; then + while IFS= read -r d; do + [ -z "$d" ] && continue + name=$(basename "$d") + if is_output_reference_skill "$name"; then + project_output_reference_total=$((project_output_reference_total + 1)) + echo " ${GREEN}OK${NC} $name (listed as output/reference; excluded from default runtime guidance)" + continue + fi + project_skills_total=$((project_skills_total + 1)) + if [ -f "$d/SKILL.md" ] && [ -r "$d/SKILL.md" ]; then + lines=$(wc -l <"$d/SKILL.md" 2>/dev/null | tr -d ' ') + echo " ${GREEN}OK${NC} $name ($lines lines)" + project_skills_ok=$((project_skills_ok + 1)) + else + echo " ${RED}--${NC} $name (missing or unreadable SKILL.md)" + project_skill_errors=$((project_skill_errors + 1)) + fi + done < <(find .agents/skills -mindepth 1 -maxdepth 1 -type d -name 'project-*' 2>/dev/null | sort) + if [ "$project_skills_total" -eq 0 ] && [ "$project_output_reference_total" -eq 0 ]; then + echo " ${YELLOW}(no .agents/skills/project-*/ found)${NC}" + elif [ "$project_skills_total" -eq 0 ]; then + echo " ${YELLOW}(no runtime input project-* skills found; only output/reference exceptions)${NC}" + fi +else + echo " ${YELLOW}(.agents/skills/ does not exist)${NC}" +fi +if [ -f ./AGENTS.md ]; then + if indexed_skills=$(list_indexed_skills); then + while IFS= read -r skill_dir; do + [ -z "$skill_dir" ] && continue + if [ ! -f "$skill_dir/SKILL.md" ] || [ ! -r "$skill_dir/SKILL.md" ]; then + echo " ${RED}--${NC} $skill_dir/SKILL.md (indexed in AGENTS.md but missing or unreadable)" + project_skill_errors=$((project_skill_errors + 1)) + fi + done <<< "$indexed_skills" + else + echo " ${RED}--${NC} cannot read the AGENTS.md skill index" + project_skill_errors=$((project_skill_errors + 1)) + fi +fi +echo + +# --- Non-project skill directories --- +echo "${BLUE}-- non-project skill directories --${NC}" +non_project_skills_total=0 +non_project_skills_unclassified=0 +if [ -d .agents/skills ]; then + while IFS= read -r d; do + [ -z "$d" ] && continue + non_project_skills_total=$((non_project_skills_total + 1)) + name=$(basename "$d") + if is_output_reference_skill "$name"; then + echo " ${GREEN}OK${NC} $name (listed as output/reference; not auto-loaded as runtime SOW skill)" + elif is_legacy_runtime_skill "$name"; then + echo " ${GREEN}OK${NC} $name (listed as legacy runtime skill; project-* alignment deferred)" + elif [ -f "$d/SKILL.md" ]; then + echo " ${YELLOW}*${NC} $name (not auto-loaded as runtime SOW skill)" + non_project_skills_unclassified=$((non_project_skills_unclassified + 1)) + else + echo " ${RED}--${NC} $name (not project-* and no SKILL.md)" + non_project_skills_unclassified=$((non_project_skills_unclassified + 1)) + fi + done < <(find .agents/skills -mindepth 1 -maxdepth 1 -type d ! -name 'project-*' 2>/dev/null | sort) + if [ "$non_project_skills_total" -eq 0 ]; then + echo " ${GREEN}OK${NC} none" + elif [ "$non_project_skills_unclassified" -gt 0 ]; then + echo " ${GRAY}Classify each warning as output/reference, obsolete, or rename/wrap it as project-* if it is runtime input.${NC}" + fi +else + echo " ${GRAY}(.agents/skills/ does not exist)${NC}" +fi +echo + +# --- TODO files at project root --- +echo "${BLUE}-- TODO files at project root --${NC}" +todo_count=0 +todo_tracked=false +while IFS= read -r f; do + [ -z "$f" ] && continue + todo_count=$((todo_count + 1)) + echo " ${YELLOW}*${NC} $f (not yet migrated)" +done < <(find . -maxdepth 1 -name 'TODO-*.md' -o -maxdepth 1 -name 'TODO.md' 2>/dev/null | sort) +if [ "$todo_count" -gt 0 ]; then + if grep -RiqE "root TODO|TODO file|TODO migration|TODO classification|orphan TODO" .agents/sow/pending .agents/sow/current 2>/dev/null; then + todo_tracked=true + echo " ${GREEN}OK${NC} root TODO classification/migration is tracked by a pending/current SOW" + fi +else + if [ -d .agents/sow/.todo-backup ]; then + bk=$(find .agents/sow/.todo-backup -maxdepth 1 -name 'TODO*.md' 2>/dev/null | wc -l | tr -d ' ') + if [ "$bk" -gt 0 ]; then + echo " ${GREEN}OK${NC} no orphan TODO files (${bk} backed up at .agents/sow/.todo-backup/)" + else + echo " ${GREEN}OK${NC} no TODO files at project root" + fi + else + echo " ${GREEN}OK${NC} no TODO files at project root" + fi +fi +todo_untracked_count=$todo_count +if $todo_tracked; then + todo_untracked_count=0 +fi +echo + +# --- Backup of pre-SOW AGENTS.md --- +echo "${BLUE}-- pre-SOW AGENTS.md backup --${NC}" +if [ -f ./AGENTS.md.pre-sow.bak ]; then + echo " ${GREEN}OK${NC} AGENTS.md.pre-sow.bak present (preserves original)" +else + if $initialized; then + echo " ${GRAY}(no backup file; either init was clean or backup name differs)${NC}" + else + echo " ${GRAY}(not yet initialized)${NC}" + fi +fi +echo + +# --- Final verdict --- +echo "${BLUE}-- verdict --${NC}" +skill_classification_warnings=${non_project_skills_unclassified:-0} + +sow_status_errors=$((sow_status_mismatch + sow_status_missing)) +pre_impl_errors=$((sow_template_pre_impl_missing + current_sow_pre_impl_missing)) +sensitive_gate_errors=$((sow_template_sensitive_gate_missing + current_sow_sensitive_gate_missing + sensitive_findings)) +open_source_reference_errors=${sow_template_open_source_reference_missing:-0} +completion_rule_errors=${sow_template_completion_rule_missing:-0} +sow_evidence_errors=$((regression_order_violations + mirror_path_violations + open_source_reference_errors + completion_rule_errors)) +framework_errors=$((framework_missing + project_skill_errors)) + +if [ "$sensitive_findings" -gt 0 ]; then + echo " ${RED}=== CRITICAL: sensitive data patterns found in durable artifacts. Redact before commit. ===${NC}" + exit 2 +fi +if [ "$sensitive_scan_errors" -gt 0 ] || ! $agents_list_complete; then + echo " ${RED}=== SOW audit incomplete. Resolve the checks reported above and rerun. ===${NC}" + exit 1 +fi + +if $initialized && [ "$sections_missing" -eq 0 ] && [ "$sensitive_warning_missing" -eq 0 ] && [ "$agents_warning_missing" -eq 0 ] && [ "$bridge_missing" -eq 0 ] && [ "$sow_dir_missing" -eq 0 ] && [ "$empty_sow_dir_missing_keep" -eq 0 ] && [ "$framework_errors" -eq 0 ] && [ "$sow_status_errors" -eq 0 ] && [ "$pre_impl_errors" -eq 0 ] && [ "$sensitive_gate_errors" -eq 0 ] && [ "$sow_evidence_errors" -eq 0 ] && [ "$todo_untracked_count" -eq 0 ] && [ "$skill_classification_warnings" -eq 0 ]; then + echo " ${GREEN}=== SOW initialization complete and clean. ===${NC}" + exit 0 +elif $initialized && [ "$sections_missing" -eq 0 ] && [ "$sensitive_warning_missing" -eq 0 ] && [ "$agents_warning_missing" -eq 0 ] && [ "$bridge_missing" -eq 0 ] && [ "$sow_dir_missing" -eq 0 ] && [ "$empty_sow_dir_missing_keep" -eq 0 ] && [ "$framework_errors" -eq 0 ] && [ "$sow_status_errors" -eq 0 ] && [ "$pre_impl_errors" -eq 0 ] && [ "$sensitive_gate_errors" -eq 0 ] && [ "$sow_evidence_errors" -eq 0 ] && [ "$todo_untracked_count" -eq 0 ]; then + echo " ${YELLOW}=== SOW initialization structurally complete with skill classification warning(s):${NC}" + echo " ${YELLOW}- ${skill_classification_warnings} non-project skill director(y/ies) need classification in AGENTS.md${NC}" + echo " ${YELLOW}- Runtime input skills should be renamed/wrapped as .agents/skills/project-*/${NC}" + echo " ${YELLOW}- Output/reference skills should be listed separately and kept out of the generic runtime hook${NC}" + exit 0 +elif $initialized; then + echo " ${YELLOW}=== SOW marker present but partial state detected:${NC}" + [ "$sections_missing" -gt 0 ] && echo " ${YELLOW}- ${sections_missing} canonical AGENTS.md section(s) missing${NC}" + [ "$sensitive_warning_missing" -gt 0 ] && echo " ${YELLOW}- CRITICAL sensitive-data warning missing from AGENTS.md${NC}" + [ "$agents_warning_missing" -gt 0 ] && echo " ${YELLOW}- ${agents_warning_missing} AGENTS.md file(s) missing CRITICAL sensitive-data warning${NC}" + [ "$bridge_missing" -gt 0 ] && echo " ${YELLOW}- ${bridge_missing} cross-tool instruction bridge(s) missing${NC}" + [ "$sow_dir_missing" -gt 0 ] && echo " ${YELLOW}- ${sow_dir_missing} SOW directory(ies) missing${NC}" + [ "$empty_sow_dir_missing_keep" -gt 0 ] && echo " ${YELLOW}- ${empty_sow_dir_missing_keep} empty SOW directory(ies) missing .gitkeep/.keep${NC}" + [ "$framework_missing" -gt 0 ] && echo " ${YELLOW}- ${framework_missing} project-local framework file(s) missing${NC}" + [ "$project_skill_errors" -gt 0 ] && echo " ${YELLOW}- required project skill check(s) failed${NC}" + [ "$sow_status_mismatch" -gt 0 ] && echo " ${YELLOW}- ${sow_status_mismatch} SOW status/directory mismatch(es)${NC}" + [ "$sow_status_missing" -gt 0 ] && echo " ${YELLOW}- ${sow_status_missing} SOW file(s) missing Status line${NC}" + [ "$sow_template_pre_impl_missing" -gt 0 ] && echo " ${YELLOW}- project-local SOW template missing Pre-Implementation Gate${NC}" + [ "$current_sow_pre_impl_missing" -gt 0 ] && echo " ${YELLOW}- ${current_sow_pre_impl_missing} current SOW(s) missing Pre-Implementation Gate${NC}" + [ "$sow_template_sensitive_gate_missing" -gt 0 ] && echo " ${YELLOW}- project-local SOW template missing sensitive data gates${NC}" + [ "$current_sow_sensitive_gate_missing" -gt 0 ] && echo " ${YELLOW}- ${current_sow_sensitive_gate_missing} current SOW(s) missing sensitive data handling/gate${NC}" + [ "$sensitive_findings" -gt 0 ] && echo " ${YELLOW}- ${sensitive_findings} sensitive-data finding(s) in durable artifacts${NC}" + [ "${sow_template_open_source_reference_missing:-0}" -gt 0 ] && echo " ${YELLOW}- project-local SOW template missing open-source reference evidence field${NC}" + [ "${sow_template_completion_rule_missing:-0}" -gt 0 ] && echo " ${YELLOW}- project-local SOW template missing completed-status or one-commit close rule${NC}" + [ "$regression_order_violations" -gt 0 ] && echo " ${YELLOW}- ${regression_order_violations} SOW file(s) have regression sections before original outcome/lessons/follow-up${NC}" + [ "$mirror_path_violations" -gt 0 ] && echo " ${YELLOW}- ${mirror_path_violations} SOW file(s) use local mirror absolute paths instead of owner/repo @ commit citations${NC}" + [ "$todo_untracked_count" -gt 0 ] && echo " ${YELLOW}- ${todo_untracked_count} untracked orphan TODO file(s) at project root${NC}" + [ "$skill_classification_warnings" -gt 0 ] && echo " ${YELLOW}- ${skill_classification_warnings} non-project skill director(y/ies) need classification${NC}" + echo " ${YELLOW} Repair non-destructively using the project-local AGENTS.md and .agents/sow/SOW.template.md.${NC}" + exit 1 +else + echo " ${YELLOW}=== SOW NOT initialized. Install a project-local SOW framework before using SOWs here. ===${NC}" + if [ ! -f ./AGENTS.md ]; then + echo " ${YELLOW} AGENTS.md missing; create or normalize project instructions first.${NC}" + fi + exit 0 +fi diff --git a/.agents/sow/current/.gitkeep b/.agents/sow/current/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/.agents/sow/done/SOW-0001-20261201-bootstrap-sow.md b/.agents/sow/done/SOW-0001-20261201-bootstrap-sow.md new file mode 100644 index 0000000000..3d711a577e --- /dev/null +++ b/.agents/sow/done/SOW-0001-20261201-bootstrap-sow.md @@ -0,0 +1,215 @@ +# SOW-0001 - Bootstrap the project-local SOW system + +## Status + +Status: completed + +Sub-state: framework installed, existing instructions preserved, audit clean. + +## Requirements + +### Purpose + +Give work in this repository a project-local Statement of Work system so that non-trivial changes +(redirect batches, ingest and gate changes, docs-site behavior) carry their analysis, decisions, +validation and follow-ups in the repository itself instead of in external notes. + +### User Request + +The user asked to bootstrap the SOW system in the Learn repository (2026-12-01), after redirect +work was tracked outside the repository. + +### Assistant Understanding + +Facts: + +- Before this SOW the repository had `AGENTS.md` only: no `CLAUDE.md`, `GEMINI.md`, `.claude/`, + `.agents/`, SOW files, specs, project skills or root `TODO*` files. +- `AGENTS.md` held four rule sections (link integrity contract, change discipline, static build gate + contract, generated Prometheus profile metrics) and a repository purpose paragraph. + +Inferences: + +- Mode: existing stable project, bootstrapped incrementally. Specs and project skills are added by + later SOWs when a slice is worked on and understood. + +Unknowns: + +- None. + +### Acceptance Criteria + +- `AGENTS.md` carries the SOW runtime contract and every pre-existing rule with its body text + unchanged; headings may move under the new structure. Verified by comparing the preserved + sections with the previous file. +- Cross-tool bridges exist: `CLAUDE.md -> AGENTS.md`, `GEMINI.md -> AGENTS.md`, + `.claude/skills -> ../.agents/skills`. Verified with `ls -l` and the local audit. +- `.agents/sow/{specs,pending,current,done}/`, `SOW.template.md` and `audit.sh` exist. Verified by + the local audit. + +## Analysis + +Sources checked: + +- `AGENTS.md` at `origin/master` `8fff539e2`. +- Repository tree at the same commit (no instruction bridges, SOW or TODO files). +- `package.json`, `netlify.toml`, `.learn_environment/`, `ingest/`, `scripts/verify-redirect-graph.js` + for the commands section. + +Current state: + +- Instructions existed only in `AGENTS.md`, unreadable by tools that look for `CLAUDE.md`/`GEMINI.md`. + +Risks: + +- Losing or rewording existing rules while merging the template. Mitigated by moving the sections + with unchanged body text (one heading renamed, four demoted) and listing them in Preservation Notes. + +## Pre-Implementation Gate + +Status: ready + +Problem / root-cause model: + +- Work in this repository had no in-repository place for analysis, decisions and follow-ups; + redirect batches were tracked in an external program file. + +Evidence reviewed: + +- `AGENTS.md` and the repository tree at `8fff539e2`; the commands in `package.json` and + `netlify.toml`. + +Affected contracts and surfaces: + +- `AGENTS.md` (structure only; rules unchanged), new `CLAUDE.md`/`GEMINI.md` symlinks, new + `.agents/` and `.claude/` trees. No site, build, ingest or CI behavior changes. + +Existing patterns to reuse: + +- The existing `AGENTS.md` rule sections, kept as project-specific overrides. + +Risk and blast radius: + +- Documentation-only for agents; no effect on the Docusaurus build, Netlify, ingest or CI. + +Sensitive data handling plan: + +- The bootstrap copies no logs, credentials or customer data. Durable text names repository paths + and commands only. + +Implementation plan: + +1. Create the SOW directories, template, audit and bridges. +2. Merge the runtime contract into `AGENTS.md`, preserving every existing section. +3. Record this SOW and run the local audit. + +Validation plan: + +- `bash .agents/sow/audit.sh`; verify the preserved sections against the previous `AGENTS.md`. + +Artifact impact plan: + +- `AGENTS.md`: updated (runtime contract, commands, preserved sections). +- Runtime project skills: none created (see Decisions). +- Specs: none created (see Decisions). +- End-user/operator docs and skills: unaffected; the change is agent instructions only. +- SOW lifecycle: this SOW is created and completed in the bootstrap commit. + +Open decisions: + +- None. + +## Implications And Decisions + +1. Project skills and specs grow incrementally: none are written at bootstrap because no SOW has yet + recorded a repeatable procedure with known failure modes here. The redirect-batch workflow is the + first candidate once a SOW in this repository runs it. + +## Plan + +1. Install the framework files and bridges. +2. Merge `AGENTS.md`. +3. Audit and commit together with this SOW in `done/`. + +## Execution Log + +### 2026-12-01 + +- Installed `.agents/sow/` (template, audit, directories with placeholders), `.agents/skills/`, + `.claude/skills`, `CLAUDE.md` and `GEMINI.md`. +- Merged the runtime contract into `AGENTS.md`; added Project-specific commands; preserved the four + rule sections with unchanged body text and recorded the heading changes in Preservation Notes. + +## Validation + +Acceptance criteria evidence: + +- Preserved sections compared with the previous `AGENTS.md`: body text identical; `## Repository purpose` + was renamed `## Goals` and the four rule headings were demoted one level. +- Bridges and directories present; local audit result recorded below. + +Tests or equivalent validation: + +- `bash .agents/sow/audit.sh`: "SOW initialization complete and clean". + +Real-use evidence: + +- The local audit is the runnable part of this change; its run is recorded above. + +Reviewer findings: + +- None at commit time; PR review handled on the PR. + +Same-failure search: + +- No other instruction files exist in the repository that would need the same bridges. + +Sensitive data gate: + +- The new and changed files contain repository paths, commands and policy text only. + +Artifact maintenance gate: + +- AGENTS.md: updated as described. +- Runtime project skills: none; incremental growth decision above. +- Specs: none; incremental growth decision above. +- End-user/operator docs: unaffected; no published page or operator workflow changed. +- End-user/operator skills: none exist. +- SOW lifecycle: SOW-0001 completed and placed in `done/` in the bootstrap commit. + +Specs update: + +- None; no product behavior was described or changed. + +Project skills update: + +- None; see the incremental growth decision. + +End-user/operator docs update: + +- None; agent-facing instructions only. + +End-user/operator skills update: + +- None exist. + +Lessons: + +- Instructions kept only in `AGENTS.md` are invisible to tools that read `CLAUDE.md`; the bridges fix it. + +Follow-up mapping: + +- Project skills and specs: tracked by the incremental growth decision; each future SOW records + whether it adds one. No deferred work remains. + +## Outcome + +The repository has a self-contained SOW system with all previous rules preserved. + +## Lessons Extracted + +- See Validation → Lessons. + +## Followup + +- None. diff --git a/.agents/sow/done/SOW-0002-20261201-redirect-batch-5.md b/.agents/sow/done/SOW-0002-20261201-redirect-batch-5.md new file mode 100644 index 0000000000..c7d18fc770 --- /dev/null +++ b/.agents/sow/done/SOW-0002-20261201-redirect-batch-5.md @@ -0,0 +1,327 @@ +# SOW-0002 - Redirect dead Learn URLs that backlinks, assistants and crawlers still request + +## Status + +Status: completed + +Sub-state: rules merged into the pull request, validated by the build gates, tests and the deploy +preview. + +## Requirements + +### Purpose + +Recover the search and AI-answer value of dead Learn URLs: links from other sites, and old Learn +pages that AI assistants and crawlers keep requesting, should land on the page that covers the +subject today. + +### User Request + +The SEO team asked (2026-12-01) for 301 redirects on learn.netdata.cloud for the unfixed rows of +their backlink reclamation sheet. The user then asked to find other Learn 404s or redirects needed, +using the SEO evidence server. + +### Assistant Understanding + +Facts: + +- The sheet listed 9 unfixed Learn URLs with backlinks. +- The SEO evidence server listed 4 more dead Learn URLs with live backlinks and 285 dead addresses + requested by assistants, crawlers or people (Cloudflare and analytics, 2026-10-30..2026-11-26). +- The SNMP Traps section had moved under Network Performance Monitoring. Only its root and, through + one generated rule, `/snmp-trap-profile-format` were redirected; the other 16 subpages answered + 404. +- Existing `&` authentication rules redirected to an address still containing `&`, which + answered 404. + +Inferences: + +- Many requested addresses are real former Learn pages that assistants learned in training; serving + a 404 loses the answer. + +Unknowns: + +- None. + +### Acceptance Criteria + +- Every new rule answers 301 to a rendered page in one hop on the deploy preview. +- The redirect graph, rendered-link and site gates pass on a Node.js 22 build. +- The SNMP Traps inventory is pinned in the policy and verified like Network Flows. + +## Analysis + +Sources checked: + +- SEO evidence server: `read-links aspect=to_fix`, `read-pages aspect=dead_with_links`, + `read-pages aspect=requested`, and Cloudflare 404 facts by referer. +- This repository's history: `docs/` paths, slug and `learn_link` frontmatter, earlier redirect rules. +- The live sitemap and live HTTP answers of every candidate. + +Current state: + +- 289 candidate addresses were classified: 68 former pages, 165 guessed, 33 `/docs/agent/` prefix + paths, 13 SNMP Traps pages, 7 `&` paths, 3 noise. +- Cloudflare showed 1,886 dead `/docs/agent/` paths since 2026-09-01: 300 of them have a live page + at `/docs/<path>`; 1,554 do not (mostly scanner probes and very old collector pages); the saved + working data does not classify the remaining 32. The 302-rule batch is those 300 plus two + `/docs/agent/` addresses from the requested-pages list whose stripped path is live. + +Risks: + +- A wildcard over `/docs/agent/` would turn the 1,554 paths into redirects ending on a 404 and + revive the retired `/docs/agent/zh/*` class. + +## Pre-Implementation Gate + +Status: ready + +Problem / root-cause model: + +- Pages moved or were removed without redirects (section relocations, category removals, the old + `/docs/agent/` tree), and an earlier `&` wildcard only decoded the first escaped segment. + +Evidence reviewed: + +- See Analysis. Rule locations: the `&` wildcard in the "HTML-escaped ampersands (2026-10-31)" + block of `static.toml`; the SNMP Traps root rule next to `/docs/security`. + +Affected contracts and surfaces: + +- `static.toml`, the static section of `netlify.toml`, `config/redirect-policy.json`, + `scripts/verify-redirect-graph.js`, `src/seo/redirectGraph.test.js`, + `src/seo/renderedLinks.test.js`. No page content changes. + +Existing patterns to reuse: + +- Earlier backlink batches (dated comment blocks in `static.toml`), the Network Flows policy + inventory, and the generator's static-wildcard subsumption. + +Risk and blast radius: + +- Redirect rules only. Wrong targets would send visitors to an unrelated page; the gates and the + preview check cover rendering and hops, and every target was reviewed for subject. + +Sensitive data handling plan: + +- Evidence is URL paths and aggregate request counts; no visitor, customer or credential data is + recorded. + +Implementation plan: + +1. SNMP Traps: bounded wildcard, policy inventory, verifier generalised to both section moves, tests. + Measured scope: the section had 18 pages before the move (`7c5a43854^`), all pinned in the policy + and checked to land on a rendered page in one hop; Cloudflare's requested addresses under the old + prefix were those pages. Beyond them the wildcard aliases pages added later under the new prefix, + and sends unknown children to the new prefix, where they 404 as they did before the rule. +2. Exact rules for backlinks, former pages and `/docs/agent/` paths; favicon rules. +3. `&` fixes placed before the existing authentication wildcard. +4. Mirror the static section into `netlify.toml`. + +Validation plan: + +- `npm run build:netlify` (Node.js 22), `npx vitest run src/seo`, ingest redirect tests, and a + deploy-preview check of every new rule. + +Artifact impact plan: + +- `AGENTS.md`: Project Skills Index lists the new skill. +- Runtime project skills: `project-redirects` added from this SOW's lessons. +- Specs, end-user/operator docs and skills: unaffected (no page or operator workflow changes). + +Open decisions: + +- Resolved; see Implications And Decisions. + +## Implications And Decisions + +User decisions (2026-12-01): + +1. Scope B: backlink URLs plus former Learn pages confirmed in history. The 165 guessed URLs are not + redirected in this batch. +2. SNMP Traps: policy inventory plus bounded wildcard, like Network Flows. +3. `/docs/agent/<path>`: exact rules only, after the wildcard measurement above. +4. Learn targets for Docker, Proxmox VE, AWS Kinesis and TimescaleDB (not the www integration pages). +5. Favicon rules: yes. + +6. SOW record (user decision 2A, 2026-12-01): the redirect implementation was committed before + this repository had a SOW system; the user then asked for the bootstrap and for this SOW to be + added to the same pull request. The SOW therefore closes in a later commit of that pull request + than the implementation, an explicit exception to the one-commit rule in `AGENTS.md`. + +Target choices made within those decisions: removed collectors go to `/docs/collecting-metrics` +(as the policy already does for `energid`); developer internals go to the developer corner; removed +Prometheus-exporter integrations go to the generic Prometheus endpoint page; `/contribute/license` +(the former Contributor License Agreement page) goes to the contributing page. + +## Plan + +As in the Pre-Implementation Gate. + +## Execution Log + +### 2026-12-01 + +- Added 381 exact rules (9 backlinks, 68 former pages, 302 `/docs/agent/` paths, 2 favicon; 329 of + them start with `/docs/agent/`: the 302-rule batch, which includes 63 under + `/docs/agent/network-performance-monitoring/snmp-traps/`, plus 27 among the backlink and former-page + rules), 5 + `&` rules (4 for authentication, 1 notifications exception from the fourth review round) and + the SNMP Traps wildcard; removed the one generated rule it covers. +- Generalised the section-move check in `scripts/verify-redirect-graph.js`; review fix: uniqueness is + checked on normalised full source paths. + +## Validation + +Acceptance criteria evidence: + +- Deploy preview of the pull request at commit `a5228cd64` (rules unchanged after it): 407 checks (382 new exact rules, 8 `&` paths, 17 SNMP + Traps pages), each 301 to the expected target and 200 after one hop; 0 failures. +- Build gates: 4,319 redirects verified, 60 historical routes of relocated sections, rendered links + clean, site gate clean against its baseline. + +Tests or equivalent validation: + +- `npx vitest run src/seo`: all pass. Ingest redirect tests: 43 passed. The full vitest suite has 5 + failures in component snapshot and CSS tests (`Grid_integrations`, `Nedi`) that import no file + this SOW changed. + +Real-use evidence: + +- The deploy-preview check above serves the same `netlify.toml` that production deploys. + +Reviewer findings: + +- cubic: asked for `status = 302`; rejected, the moves are permanent and no rule was described as + temporary. +- CodeRabbit: section inventories counted distinct suffix strings, so `/x` and `/x/` would pass as + two routes; fixed by counting normalised full source paths. +- Independent review (P2): the former Zabbix Preprocessing page redirected to the Nagios page, a + different collector of the same plugin; the Zabbix module no longer exists, so it now goes to + `/docs/collecting-metrics` like the other removed collectors. Same-failure search over the 84 rules + outside the 302-rule `/docs/agent/` batch: no other target names a different subject (category pages go to their + parent or, for FTP servers, to ProFTPD, the category's only collector per the ingest that moved it). +- Independent review (P2): `.agents/sow/audit.sh` skipped `.agents/sow/done/` in its default + sensitive-data scan, so a completed SOW escaped the check; `done/` is now scanned. +- Independent review (P3): skill wording overstated what the wildcard guarantees, and the spec + rationale below was imprecise; both corrected. +- Independent review, second round (P2): the former Troubleshoot with AI Button page now goes to + Custom Investigations, which documents that button; the former Netdata Web Client guide now goes + to Supported AI Clients, which lists it. Both had pointed at broader parents. +- Second round, consequence: the new Custom Investigations target made the existing "active + wildcard source" mutation test hit the chain check before the shadow check; its fixture now uses + `/docs/netdata-ai/insights/*`, a rendered section no rule targets, so it still tests shadowing. +- Second round (P2): a test now asserts the destination of both escaped spellings of the auth + integrations page and its three children, so dropping `:splat` fails the suite. +- Second round (P2): the SOW close happened in a later commit than the implementation; recorded as + decision 6 above. +- Second round, not changed here: the standalone link-integrity job treats any path under a + redirect wildcard as existing (`scripts/link-integrity/check.mjs`), so a mistyped link under + `/docs/snmp-traps/` would pass it; the strict rendered-link gate in the Netlify build still fails + any rendered link to a wildcard source. This is the existing behavior for every wildcard (Network + Flows included) and was reported to the user as a separate decision. +- Third round (P2): `/docs/agent/parser` now goes to the libnetdata page, like the existing parser + aliases; the auth test also asserts that the four decoded destinations render and do not redirect + again; the `/docs/agent/` counts above are reconciled; the follow-ups below are tracked. +- Third round, rejected: the old HyperV page stays on the Hyper-V collector page (the visitor's + subject, and the destination master already uses for `/docs/data-collection/windows-systems/hyperv`); + the old ISC BIND page stays on Collecting Metrics (Learn has no BIND collector page; the go.d + plugin page only lists the module with a source link); the Netdata Web Client guide stays on + Supported AI Clients, whose stale listing is an upstream docs defect. +- Fourth round (P2): the decoded `agent-alert-notifications` alias now goes to the Agent + Notifications Reference, like the older `alerts-and-notifications` spelling, and an exact rule for + its `&` spelling sits ahead of the escaped notifications wildcard, which would otherwise have + sent it through two hops. +- PR bots (CodeRabbit, cubic) on the later commits: section-inventory normalization now has a + regression test; the same-site resolver matches parameter rules with either trailing slash and + resolves dot segments in destinations; the redirects skill states where a batch must go relative + to earlier wildcards, the `&` decoding wildcards, the `:splat` limit of the chain check, and + what to do when a generated rule's target differs; `AGENTS.md` states that pytest is installed + separately; a redirect contract spec was added (see the artifact maintenance gate); SOW-0001 + records the heading changes consistently; SOW-0004 uses a valid gate status. +- Fourth round, outside this SOW: other children of the escaped notifications wildcard already + reach two hops on master (for example `configure-health-alerts`); recorded in SOW-0004. +- Second round, not changed here: the audit script, copied unchanged apart from the scan list from + the bootstrap skill, can report a clean verdict when a scan cannot read a file, when a runtime + skill lacks `SKILL.md`, and counts the template's empty Regression Log heading; reported to the + user for the shared skill. The template is now included in the sensitive-data scan. +- Independent review, outside this SOW: the rendered-link checker compares exact redirect sources + without trailing-slash normalisation (pre-existing on master); reported to the user, not changed. + +Same-failure search: + +- Other `&` rules: the notifications wildcard has no child with a second escaped segment; no rule + target contains `&`. +- Other relocated sections: Network Flows already pinned; SNMP Traps was the only section moved + without child redirects among the requested addresses. + +Sensitive data gate: + +- The changed files hold URL paths, aggregate counts and policy text only. + +Artifact maintenance gate: + +- AGENTS.md: Project Skills Index updated. +- Runtime project skills: `project-redirects` added. +- Specs: added `.agents/sow/specs/redirects.md`, the public redirect contract (where rules live, the + one-hop and rendered-target guarantees, wildcard policy, and which gates enforce them during + `npm run build:netlify` and in the same-site job). The individual rules stay in `static.toml` and + `config/redirect-policy.json`. +- End-user/operator docs: unaffected; no published page changes. +- End-user/operator skills: none exist. +- SOW lifecycle: completed in `done/` in the pull request that carries the work. + +Specs update: + +- `.agents/sow/specs/redirects.md` added; see the artifact maintenance gate above. + +Project skills update: + +- `project-redirects` records the workflow, the wildcard measurement, file mirroring and the preview + check. + +End-user/operator docs update: + +- None, as above. + +End-user/operator skills update: + +- None exist. + +Lessons: + +- Measure what a wildcard would catch before adding it. +- Assistants request real former pages far more than guessed ones; repository history separates them. + +Follow-up mapping: + +- 165 guessed URLs: rejected for this batch by user decision 1; a later batch needs its own SOW. +- Reply to the SEO team: communication outside the repository, not repository work. +- Wildcard destinations unchecked by the required same-site job: fixed in this pull request by + SOW-0003 (user decision, 2026-12-01). Wildcard aliases that become chains after a later rename: + tracked in `.agents/sow/pending/SOW-0004-20261201-wildcard-alias-chains.md`. +- Audit script weaknesses (unreadable files counted as clean, missing runtime `SKILL.md` not failing + the verdict, the template's Regression Log heading counted as a regression, nested `AGENTS.md` + not content-scanned): rejected for this repository, because `.agents/sow/audit.sh` is the shared + bootstrap skill's audit; by user decision (2026-12-01) it was fixed in the repository that + maintains that skill (its SOW-0164, commit `146e45c`), and `.agents/sow/audit.sh` here was + refreshed from that version (it now fails closed without Perl, counts missing runtime `SKILL.md` + files in the verdict, and matches only dated regression headings). Two PR-bot findings remain in + that shared version too: a line containing both a bearer credential and the word `token` is + exempted, and an email address is exempted when any example domain appears on its line. Rejected + here for the same reason (shared tool); reported to the user for that repository. +- Supported AI Clients still lists the retired Netdata Web Client: rejected here, because the page + is generated from netdata/netdata docs; by user decision (2026-12-01) it is fixed by + netdata/netdata#25108. + +## Outcome + +Dead Learn URLs with backlinks or recurring requests now land on their current page in one hop. + +## Lessons Extracted + +- Captured in `.agents/skills/project-redirects/SKILL.md`. + +## Followup + +- SOW-0004 (pending): wildcard aliases that land on another rule's source. diff --git a/.agents/sow/done/SOW-0003-20261201-wildcard-destination-checks.md b/.agents/sow/done/SOW-0003-20261201-wildcard-destination-checks.md new file mode 100644 index 0000000000..87e76b663f --- /dev/null +++ b/.agents/sow/done/SOW-0003-20261201-wildcard-destination-checks.md @@ -0,0 +1,227 @@ +# SOW-0003 - Make the same-site link check follow redirects + +## Status + +Status: completed + +Sub-state: delivered in the same pull request as SOW-0002, at the user's request. + +## Requirements + +### Purpose + +The required same-site link job must fail a link that ends on a missing page, even when the link's +first address matches a redirect rule. + +### User Request + +The SOW-0002 reviews found that the job accepted any link matching a redirect source. The user +decided (2026-12-01): "fix the link-check script in this PR". + +### Assistant Understanding + +Facts: + +- `scripts/link-integrity/check.mjs` `checkSameSite` treated a link as existing when its path + matched any redirect source (`redirectMatches` over `redirect_sources`). Where the redirect led + was never checked, and fragments on redirected links were never checked. +- Example: with SOW-0002's `/docs/snmp-traps/*` wildcard, a mistyped link to + `/docs/snmp-traps/quik-start` passed, although it redirects to a missing page. +- The Netlify post-build gate (`scripts/verify-rendered-links.js`) separately fails any rendered + link to a redirect source; the standalone job is the required GitHub check. +- Both inventories in `.github/workflows/rendered-link-integrity.yml` are built by the pull + request's own checker (it copies `scripts/link-integrity/` before switching to the merge base), + so fresh runs always carry the new field; older inventory files are still accepted by the advisory + jobs (decision 3). + +Inferences: + +- None. + +Unknowns: + +- None. + +### Acceptance Criteria + +- A link whose redirect ends on a missing page is reported as `missing-path`, with the final path. +- A fragment on a redirected link is checked against the final page. +- Redirect cycles and over-long chains are reported, the first matching rule wins, and redirects to + another host are not checked here. +- The real Learn build passes the job with no new findings. + +## Analysis + +Sources checked: + +- `scripts/link-integrity/check.mjs` (`parseRedirectSources`, `redirectMatches`, `checkSameSite`, + `validateInventory`), `tests/link_integrity.test.mjs`, `.github/workflows/rendered-link-integrity.yml`. + +Current state: + +- See Facts. + +Risks: + +- Following redirects could expose existing links that resolve to missing pages and turn the + required job red for unrelated pull requests. Checked against a full build: no such links. + +## Pre-Implementation Gate + +Status: ready + +Problem / root-cause model: + +- The job used redirect sources as proof of existence instead of resolving them. + +Evidence reviewed: + +- The files listed under Sources checked. + +Affected contracts and surfaces: + +- The inventory JSON (new `redirect_rules` array, required only by the same-site check; + `redirect_sources` kept), the same-site + job's findings (new optional `resolved_path`), and its tests. The cross-site and third-party jobs + read neither field. + +Existing patterns to reuse: + +- The existing redirect pattern syntax (`*`, `:name`), `normalizeUrlPath`, `decodeFragment` and the + rendered route map. + +Risk and blast radius: + +- The required GitHub check for every Learn pull request. Mitigated by the full-build run below. + +Sensitive data handling plan: + +- Code and test fixtures only; no data from outside the repository. + +Implementation plan: + +1. Parse redirect rules with their targets in file order (`parseRedirectRules`). +2. Resolve each same-site link through the rules to a rendered page (`resolveSameSitePath`). +3. Report missing destinations, missing fragments at the destination, and cycles. +4. Tests for each case; run the job against a real build. + +Validation plan: + +- `node --test tests/link_integrity.test.mjs`; inventory and same-site job on a full + `npm run build:netlify` output. + +Artifact impact plan: + +- `AGENTS.md`: link integrity contract unchanged (it already requires same-site links to resolve to + an existing rendered path and fragment); commands section names the checker's tests. +- Runtime project skills: `project-redirects` names the new check. +- Specs, end-user/operator docs and skills: unaffected; CI-internal behavior. + +Open decisions: + +- None. + +## Implications And Decisions + +1. User decision (2026-12-01): fix the same-site checker in this pull request. +2. Review fixes (2026-12-01): exact rules match with or without a trailing slash, as Netlify does; + wildcard captures stay decoded path data and are never re-parsed as a URL, so an encoded `?` in + a link cannot drop part of its path; a destination fragment on a rule replaces the link's + fragment; patterns compile once per inventory, sharing one grammar with `redirectMatches`. +3. Inventory contract: `redirect_rules` is optional in `validateInventory`, so the advisory + cross-site and third-party jobs still accept inventories built before this change; only the + same-site check requires it and fails with a clear message without it. The schema identifier + stays `netdata-rendered-link-inventory-v1` because the change only adds a field. +4. The graph verifier's related gap (a page renamed under a wildcard's target prefix makes the + wildcard alias take two hops) was not part of that decision; it is tracked in SOW-0004. + +## Plan + +As in the Pre-Implementation Gate. + +## Execution Log + +### 2026-12-01 + +- Added `parseRedirectRules`, `resolveSameSitePath` and the `redirect_rules` inventory field; + `checkSameSite` now resolves every same-site link to its final page and checks the fragment there. +- Updated the fixture whose redirect pointed at a page that did not exist, and added tests. + +## Validation + +Acceptance criteria evidence: + +- `tests/link_integrity.test.mjs`: 26 pass, including the new cases: a wildcard to a missing page + (reported with its final path), a redirect whose target lacks the fragment, a two-hop chain that + ends on a page, a cycle, a redirect to another host, first-match ordering, trailing-slash + matching of exact rules, an encoded `?` inside a wildcard capture, a destination fragment on a + rule, and an inventory without `redirect_rules`. +- Full `npm run build:netlify` output: inventory of 2,047 HTML files; same-site job + `checked=50157 failures=0`. + +Tests or equivalent validation: + +- As above; `npx vitest run src/seo` still passes. + +Real-use evidence: + +- The full-build run above is the job's real input. + +Reviewer findings: + +- Raised by the SOW-0002 reviews; this SOW is the fix. + +Same-failure search: + +- Before this change, matching `redirect_sources` was the only existence shortcut in + `checkSameSite`; it is gone. The cross-site and third-party jobs do not use redirect rules. + +Sensitive data gate: + +- Code and synthetic fixtures only. + +Artifact maintenance gate: + +- AGENTS.md: the commands section now names the standalone checker's install and test commands. +- Runtime project skills: `project-redirects` updated. +- Specs: none; CI-internal behavior already required by the link integrity contract in `AGENTS.md`. +- End-user/operator docs: unaffected; no published page changes. +- End-user/operator skills: none exist. +- SOW lifecycle: completed in `done/` in the pull request that carries the work; SOW-0004 opened + for the verifier gap. + +Specs update: + +- None, as above. + +Project skills update: + +- `project-redirects` validation checklist names the same-site job. + +End-user/operator docs update: + +- None, as above. + +End-user/operator skills update: + +- None exist. + +Lessons: + +- A redirect source is not evidence that a link works; only its rendered destination is. + +Follow-up mapping: + +- Graph verifier overlap check: tracked in SOW-0004. + +## Outcome + +The required same-site job now fails links that redirect to missing pages or fragments. + +## Lessons Extracted + +- Recorded in `.agents/skills/project-redirects/SKILL.md`. + +## Followup + +- SOW-0004. diff --git a/.agents/sow/pending/SOW-0004-20261201-wildcard-alias-chains.md b/.agents/sow/pending/SOW-0004-20261201-wildcard-alias-chains.md new file mode 100644 index 0000000000..0a9ee09406 --- /dev/null +++ b/.agents/sow/pending/SOW-0004-20261201-wildcard-alias-chains.md @@ -0,0 +1,79 @@ +# SOW-0004 - Detect wildcard aliases that turn into redirect chains + +## Status + +Status: open + +Sub-state: recorded from the SOW-0002 reviews; awaiting a user decision before any work. + +## Requirements + +### Purpose + +Keep every address served by a section wildcard (such as `/docs/snmp-traps/*`) a single hop away +from its page, even after later ingests rename pages under the wildcard's target prefix. + +### User Request + +None yet. Recorded so the finding is tracked, as `AGENTS.md` requires for deferred work. + +### Assistant Understanding + +Facts: + +- `scripts/verify-redirect-graph.js` checks a wildcard's pinned historical routes and one synthetic + suffix. It does not look for other redirect sources under the wildcard's target prefix. +- If ingest renames a page under `/docs/network-performance-monitoring/snmp-traps/`, the generator + adds a redirect from the old name; the old `/docs/snmp-traps/...` alias then takes two hops. +- The gap already exists on master: children of the escaped notifications wildcard + (`/docs/alerts-&-notifications/*`), such as `configure-health-alerts`, reach a second redirect. + SOW-0002 added an exact exception for the one child its batch made reachable. +- The same-site link job (SOW-0003) would report a rendered link that ended on a missing page, but + not a working two-hop chain. + +Unknowns: + +- Whether such chains should fail the build or be rewritten by the generator. + +### Acceptance Criteria + +- To be set with the user before the Pre-Implementation Gate. + +## Analysis + +- See Facts. + +## Pre-Implementation Gate + +Status: needs-user-decision + +The gate's sections are filled once the user decides between failing the build and rewriting the +chains in the generator (see Unknowns); until then there is no plan to gate. + +## Implications And Decisions + +- None yet. + +## Plan + +- Not yet planned. + +## Execution Log + +- None. + +## Validation + +- Not started. + +## Outcome + +- Pending. + +## Lessons Extracted + +- Pending. + +## Followup + +- None yet. diff --git a/.agents/sow/specs/redirects.md b/.agents/sow/specs/redirects.md new file mode 100644 index 0000000000..109cedc031 --- /dev/null +++ b/.agents/sow/specs/redirects.md @@ -0,0 +1,46 @@ +# Redirects on learn.netdata.cloud + +What visitors, crawlers and AI assistants can rely on when they request an address that is not a +current page. + +## Where the rules live + +- Hand-maintained rules: `static.toml`. The static section of `netlify.toml` is an identical copy. +- Generated rules: the dynamic section of `netlify.toml`, written by + `ingest/autogenerateRedirects.py` when ingest moves or renames a page. +- Policy: `config/redirect-policy.json` (pinned historical inventories of relocated sections, + retired wildcard sources, required exact redirects). +- Netlify applies the first rule that matches, and a file that exists is served before any rule. + +## Guarantees + +- Every same-site rule ends on a rendered page in one hop: no chains, no cycles, no target that is + itself a redirect source or that does not render. Rules to other hosts are only checked to be + valid URLs. +- No rule's source is a rendered page, so a rule never hides a current page. +- All rules are permanent (301). None is a rewrite (200) or forced. +- A relocated section keeps every address it had before the move: Network Flows (42 routes) and + SNMP Traps (18 routes) are pinned in the policy and each must reach its new page in one hop. +- Wildcards exist only for relocated sections and for decoding a literal `&` segment across a + section. A section wildcard also aliases pages added later under the new prefix, and sends unknown + children to the new prefix, where they answer 404 as before. +- Legacy prefixes such as `/docs/agent/` have exact rules only, for addresses whose page exists + under `/docs/`; other addresses under them answer 404. +- Rendered pages never link to a redirect source. +- A same-site link in the rendered site must reach a rendered page and fragment after following + redirects. + +## Enforcement + +- `npm run build:netlify` runs the post-build gates: `scripts/verify-redirect-graph.js` (rules, + chains, rendered targets, pinned inventories) and `scripts/verify-rendered-links.js` (no rendered + link to a redirect source). +- The required GitHub job "Required same-site links" (`scripts/link-integrity/check.mjs same-site`) + follows redirects for every rendered same-site link. +- `src/seo/redirectGraph.test.js`, `src/seo/renderedLinks.test.js` and + `tests/link_integrity.test.mjs` cover the gates. + +## Known gaps + +- A `:splat` wildcard child that lands on another rule's source (a two-hop chain) is not detected + automatically: SOW-0004. diff --git a/.claude/skills b/.claude/skills new file mode 120000 index 0000000000..2b7a412b8f --- /dev/null +++ b/.claude/skills @@ -0,0 +1 @@ +../.agents/skills \ No newline at end of file diff --git a/AGENTS.md b/AGENTS.md index bbd770c1be..e5fbe3b3ba 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,12 +1,304 @@ # Netdata Learn Working Rules -## Repository purpose +## Goals This repository builds `learn.netdata.cloud` with Docusaurus and deploys the static result through Netlify. Public-route validation must use rendered output; source Markdown alone is not proof that a published path or fragment exists. -## Link integrity contract +## SOW System + +This project uses a local Statement of Work system. + +The SOW system is self-contained in this repository. Normal SOW work must not depend on `~/.agents`, `~/.AGENTS.md`, global skills, global templates, or global scripts. Use this `AGENTS.md`, project-local SOW files, project-local specs, project-local skills, and the active SOW. + +### Roles + +- **User responsibilities:** purpose, scope decisions, design forks, risk acceptance, destructive approvals, and final product judgment. +- **Assistant responsibilities:** investigation, evidence, implementation, tests or equivalent validation, reviews, documentation, memory updates, and concise reporting. + +### Required First Checks + +Before creating a SOW or starting non-trivial implementation: + +1. Confirm the user has requested implementation. +2. Inspect code/docs/data to establish whether a change is needed. +3. Read pending/current SOWs for overlap, contradictions, and existing decisions. +4. Read relevant specs under `.agents/sow/specs/`. +5. Inspect `.agents/skills/project-*/SKILL.md` and load every runtime project skill whose trigger matches the work. +6. Ask the user only for irreducible product/design/risk decisions. + +### Git Worktrees + +Assistants must not create git worktrees on their own. Create a git worktree only when the user explicitly asks for it or approves it. + +### Sensitive Data In Durable Artifacts + +SOWs, specs, documentation, project skills, agent instructions, and code comments are commit-ready artifacts. Treat them as public unless a repository-specific policy explicitly says otherwise. + +CRITICAL: Never write raw sensitive data to durable artifacts. This includes passwords, API keys, bearer tokens, SNMP communities, private keys, connection strings with embedded credentials, session cookies, community member names, customer names, customer identifiers, personal data, non-private IP addresses that can identify customers, private endpoints, account IDs, and proprietary incident details. + +Write only sanitized evidence: + +- use placeholders such as `[REDACTED_SECRET]`, `[CUSTOMER]`, `[ACCOUNT]`, `[PRIVATE_ENDPOINT]`; +- use stable aliases such as `customer-a` only when the real mapping is not stored in the repository; +- cite file paths, line numbers, command names, schema fields, or error classes instead of copying sensitive values; +- summarize logs and traces; include only minimal redacted snippets. + +If sensitive data is required to continue, stop and ask the user for a secure handling path. If sensitive data is found in a durable artifact, sanitize it before any commit. If sensitive data was already committed, tell the user and do not rewrite history without explicit approval. + +### Open-Source Reference Evidence + +When a SOW uses external open-source repositories as evidence, record the upstream repository identity and checked commit, not the workstation mirror path. + +For local mirrored or cloned open-source repositories, cite evidence in this form: + +```text +owner/repo @ commit +relative/path/inside/repo:line +``` + +Rules: + +- Never use workstation absolute paths for external open-source evidence in SOWs. +- Resolve `owner/repo` from the repository remote, not only from the local directory name. +- Record the commit with `git -C <repo> rev-parse --short=12 HEAD` or the full hash when precision matters. +- Use paths relative to the upstream repository root after the `owner/repo @ commit` line. +- If multiple repositories were checked, list each repository and commit separately. + +### Pre-Implementation Gate + +Implementation covered by a SOW must not begin until the SOW contains a concrete `## Pre-Implementation Gate` section. Before moving a SOW from `pending/open` to `current/in-progress`, or before continuing implementation in an existing current SOW that lacks this section, fill the gate. + +The gate must record: + +- Problem / root-cause model: what is happening, why it is happening, and what evidence supports that model. +- Evidence reviewed: specs, code, docs, tests, logs, traces, prior SOWs, issues, or external references checked. Open-source references from local mirrors or clones must be cited as `owner/repo @ commit` plus repository-relative paths, never as workstation absolute paths. +- Affected contracts and surfaces: APIs, schemas, files, commands, UI, docs, specs, skills, tests, integrations, operators, users. +- Existing patterns to reuse: local modules, helpers, conventions, tests, and docs that should shape the implementation. +- Risk and blast radius: regressions, compatibility, performance, security, data loss, migration, rollout, and operational risks. +- Sensitive data handling plan: whether the work may expose secrets, credentials, bearer tokens, SNMP communities, community/customer data, personal data, non-private customer-identifying IPs, private endpoints, or proprietary incident details; how evidence will be redacted in SOWs, specs, docs, skills, instructions, and code comments. +- Implementation plan: ordered chunks with scope, dependencies, and files or modules likely to change. +- Validation plan: tests, fixtures, manual checks, real-use evidence, review passes, and same-failure searches. +- Artifact impact plan: expected updates to `AGENTS.md`, runtime project skills, specs, end-user/operator docs, end-user/operator skills, and SOW lifecycle. +- Open decisions: resolved decisions or numbered options for the user; unresolved decisions block implementation. + +Generic placeholders such as `TBD`, `N/A`, or "to be checked later" are invalid unless the SOW explains why the item truly does not apply. If the gate exposes an unknown that cannot be resolved by investigation, stop and ask the user before implementation. + +### When A SOW Is Required + +Create or reuse a SOW only after the user requests implementation and preliminary analysis confirms a non-trivial change is needed. + +Questions, discussions, reviews, status reports, and read-only investigation do not need a SOW. Trivial implementation such as typo or formatting-only fixes does not need one. + +When unsure whether a change is needed, investigate first. When an authorized change has unclear risk, treat it as non-trivial. + +### SOW Locations + +- Pending: `.agents/sow/pending/` +- Current: `.agents/sow/current/` +- Done: `.agents/sow/done/` +- Specs: `.agents/sow/specs/` +- Template for new SOWs: `.agents/sow/SOW.template.md` +- Local audit: `.agents/sow/audit.sh` + +Create new SOW files from `.agents/sow/SOW.template.md`. The template is project-local and may be customized for this repository. + +Empty SOW directories must contain `.gitkeep` or `.keep` so the committed repository preserves the full SOW layout after clone/checkout. + +Filename: + +```text +SOW-NNNN-YYYYMMDD-{slug}.md +``` + +Status and directory must agree: + +- `open` lives in `pending/` +- `in-progress` lives in `current/` +- `paused` lives in `current/` +- `completed` lives in `done/` +- `closed` lives in `done/` + +### SOW Completion And Commit + +The successful terminal SOW status is `completed`. `done` is a directory name, not a status value. Never write `Status: done` or `Status: complete`. + +When a SOW's work is ready to close: + +1. Finish implementation, docs, specs, skills, validation, and follow-up mapping. +2. Update the SOW to `Status: completed`. +3. Move the SOW file to `.agents/sow/done/`. +4. Commit the work, artifact updates, SOW status change, and SOW move together as one commit, unless the user explicitly requested a different commit split. + +Do not create a separate commit just to mark or move the SOW. Do not claim a SOW is completed while the implementation and the SOW lifecycle change live in separate uncommitted or separately committed states. + +### One SOW At A Time + +Never execute multiple SOWs as one batch. + +If work overlaps: + +- merge or consolidate before implementation; or +- split into separate SOWs and complete one before starting the next. + +Progress reports are not stop points. Once a SOW is in progress, continue until it is delivered, failed with evidence, blocked on a real user decision/approval, or superseded by newer user instructions. + +### User Decisions + +When user decisions are needed: + +1. Present concrete evidence with files/lines or source references. +2. Provide numbered options. +3. Explain pros, cons, implications, and risks. +4. Recommend one option with reasoning. +5. Record the user's decision in the SOW before implementation. + +### Followup Discipline + +"Deferred" is not a terminal outcome. + +Before a SOW can close, every valid deferred item must be: + +- implemented in the current SOW; or +- explicitly rejected as not worth doing, with evidence; or +- represented by a real pending/current SOW file. + +Pre-close, search the SOW for: + +```text +defer|later|follow-up|future|TODO|pending +``` + +Map every remaining item to implemented, rejected, or tracked. + +### Regressions + +A regression is discovered after a SOW was considered completed or closed, later testing or use finds broken behavior, and the original SOW's claimed outcome is no longer true. + +When behavior that a completed SOW claimed working stops working: + +1. Find the original SOW in `done/`. +2. Move it back to `current/`. +3. Mark it `in-progress` with a regression note in `## Status`. +4. Append a new dated `## Regression - YYYY-MM-DD` section at the end of the file, after the original outcome, lessons, and follow-up content. +5. In that appended section, record what broke, evidence, why previous validation missed it, the repair plan, validation, and updates needed to specs, skills, docs, audits, or follow-up SOWs. +6. Fix and validate there. + +Never prepend regression content above the original SOW narrative. The original requirements, analysis, plan, validation, outcome, lessons, and follow-up must remain readable first. +Do not create a new SOW for a true regression. + +### Validation Gate + +A SOW cannot be completed until Validation records: + +- acceptance criteria evidence; +- tests or equivalent validation; +- real-use evidence when a runnable path exists; +- reviewer findings and how they were handled; +- same-failure search results; +- sensitive data gate: durable artifacts contain no raw secrets, credentials, bearer tokens, SNMP communities, community member names, customer names, personal data, non-private customer-identifying IPs, private endpoints, or proprietary incident details; +- artifact maintenance gate for `AGENTS.md`, runtime project skills, specs, end-user/operator docs, end-user/operator skills, and SOW lifecycle; +- SOW status/directory consistency; +- spec update or specific reason no spec update was needed; +- project skill update or specific reason no skill update was needed; +- end-user/operator docs update or evidence-backed reason none were affected; +- end-user/operator skill update or evidence-backed reason none were affected by docs/spec changes; +- lessons extracted or specific reason there were none; +- follow-up mapping. + +Generic "N/A" is invalid. + +### Artifact Maintenance Gate + +Every SOW close must explicitly record whether each durable artifact class was updated or why no update was needed: + +- `AGENTS.md` - workflow, responsibility, local framework, project-wide guardrails. +- Runtime project skills - `.agents/skills/project-*/SKILL.md` for HOW to work here. +- Specs - `.agents/sow/specs/` for WHAT the project does. +- End-user/operator docs - README, docs site, runbooks, published guides, help text, or other human-facing documentation. +- End-user/operator skills - output/reference skills copied or consumed outside normal repo work. +- SOW lifecycle - split, merge, status, directory, deferred work, regression reopening, and follow-up mapping. + +This is an assistant responsibility. If a SOW changes behavior, docs, specs, commands, schemas, defaults, workflows, examples, or operating procedure, the assistant must update every affected artifact in the same SOW, or record the evidence-backed reason an artifact is unaffected. + +### Specs + +Specs are memory of WHAT this project does. + +Update specs when shipped work changes: + +- product behavior; +- public contracts; +- data formats; +- UX rules; +- business logic; +- operational guarantees; +- known edge cases. + +Specs describe current reality, not aspiration. If specs and code disagree, record the discrepancy in the active SOW and resolve or track it. + +### Project Skills + +Project skills are memory of HOW to work here. + +Runtime input project skills should live under `.agents/skills/project-*/SKILL.md`. The `project-` prefix is the generic hook meaning "agents working in this repo must consider this skill." Before non-trivial implementation, inspect those skill descriptions and load every matching runtime skill. Skill descriptions are mandatory hooks, not suggestions. + +Do not create generic `project-*` skills only to make the framework look complete. If this project intentionally grows project skills incrementally, record that in the active SOW and keep this section honest until concrete reusable knowledge exists. + +Output/reference skills may also use `project-*` when that name is part of the exported artifact semantics. Do not rename, shorten, or change their frontmatter descriptions only to satisfy runtime discovery. Instead, list them separately below and exclude them from default runtime guidance unless editing or validating those artifacts. + +Non-`project-*` skills under `.agents/skills/` are not automatically runtime instructions. If they are runtime input skills, rename them or add `project-*` wrappers. If the user explicitly defers conversion, preserve them under `Legacy runtime skills` below and track the unresolved alignment with a real SOW. If they are output/reference skills for end users, operators, or downstream assistants, list them separately below with their intended consumer. + +Output/reference skills are part of the documentation/specification surface, not just internal agent memory. When docs, specs, schemas, commands, defaults, examples, or public/operator-facing workflows change, update every affected output/reference skill in the same SOW, or record the evidence-backed reason none are affected. + +Skills must be updated during retrospection when: + +- the user corrects the assistant's workflow; +- a reviewer finds a repeated mistake; +- validation misses a failure mode; +- a new command or workflow becomes canonical; +- a new project hazard is discovered; +- a new best or bad practice is learned; +- an output/reference skill would otherwise become stale after a docs/spec/product change. + +### Project Skills Index + +Runtime skills grow incrementally: a skill is added when a SOW has run a repeatable procedure here +and its failure modes are known (decision recorded in +`.agents/sow/done/SOW-0001-20261201-bootstrap-sow.md`). + +- `.agents/skills/project-redirects/` + Trigger: mandatory before adding, changing or removing redirect rules (`static.toml`, + `netlify.toml`, `config/redirect-policy.json`, `scripts/verify-redirect-graph.js`). + Enforces: exact rules over wildcards, mirrored static sections, rendered one-hop targets, the + Node.js 22 build gates and a deploy-preview check of every new rule. + +Output/reference skills: none. + +### Project-specific commands + +- Node.js 22 (the version Netlify builds with, `netlify.toml` `NODE_VERSION`); dependencies through + Yarn 1 with the committed `yarn.lock`: `yarn install --frozen-lockfile`. +- Production build with every post-build gate: `npm run build:netlify` (git history check, + Docusaurus build, `scripts/run-post-build-gates.mjs`, non-production headers). +- Unit tests: `npx vitest run` (redirect and link gates: `npx vitest run src/seo`); vitest plus the + node test runners: `npm run test:run`. The standalone link checker has its own dependencies and + tests: `npm ci --prefix scripts/link-integrity --ignore-scripts` then + `node --test tests/link_integrity.test.mjs`. +- Ingest tests: install the runtime dependencies pinned in + `.learn_environment/ingest-requirements.txt` plus `pytest` (not pinned there), then run `pytest` + from `ingest/`. +- Redirect rules: hand-maintained rules live in `static.toml`; the static section of `netlify.toml` + mirrors it, and the dynamic section is written by `ingest/autogenerateRedirects.py`. + `config/redirect-policy.json` and `scripts/verify-redirect-graph.js` are the redirect gates. + +### Project-specific overrides + +The sections below predate the SOW system and are preserved verbatim. They govern their areas; +the SOW contract above adds process without replacing them. + +#### Link integrity contract Implementation status: policy specified; enforcement is unsupported until the standalone GitHub jobs and corresponding branch-protection settings exist. @@ -38,7 +330,7 @@ Netlify build or deployment responsible for merge eligibility: request stay in this repository. Confirmation policy, issue lifecycle behavior, request policy, and optional AI-assisted repair require explicit user decisions before implementation. -## Change discipline +#### Change discipline - Keep the required same-site job independent from the advisory cross-site and third-party jobs. - Do not weaken Docusaurus or CI link enforcement to make a pull request pass. Repair the owning @@ -47,7 +339,7 @@ Netlify build or deployment responsible for merge eligibility: do not hand-edit output that regeneration will replace. - Use explicit file paths when staging changes; never stage the whole worktree. -## Static build gate contract +#### Static build gate contract - Learn installs the SEO-owned Node.js 22 gate as the published npm package `@netdata/site-build-gate` and runs it locally after Docusaurus. Its major version is the @@ -59,9 +351,19 @@ Netlify build or deployment responsible for merge eligibility: - `config/site-build-gate-baseline.json` contains only exact, reasoned current findings. Never add or widen an entry to make a build pass without an explicit policy decision. -## Generated Prometheus profile metrics +#### Generated Prometheus profile metrics Agent-generated Prometheus profile coverage is rendered as ordinary tables grouped by each profile's top-level metric family. Learn identifies the exact generated table header only to apply responsive wrapping; it does not add search, disclosure, or other interactive catalogue behavior. Learn must not parse Agent profile source contracts or hand-edit generated integration pages. + +### Preservation Notes + +- `## Repository purpose` became `## Goals` (text unchanged). +- `## Link integrity contract`, `## Change discipline`, `## Static build gate contract` and + `## Generated Prometheus profile metrics` are preserved verbatim under Project-specific overrides + (heading level changed only). +- No content was removed. + +Project SOW status: initialized diff --git a/CLAUDE.md b/CLAUDE.md new file mode 120000 index 0000000000..47dc3e3d86 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +AGENTS.md \ No newline at end of file diff --git a/GEMINI.md b/GEMINI.md new file mode 120000 index 0000000000..47dc3e3d86 --- /dev/null +++ b/GEMINI.md @@ -0,0 +1 @@ +AGENTS.md \ No newline at end of file diff --git a/config/redirect-policy.json b/config/redirect-policy.json index c154b51b82..7b334949b7 100644 --- a/config/redirect-policy.json +++ b/config/redirect-policy.json @@ -51,6 +51,30 @@ "/visualization/time-series" ] }, + "snmp_traps": { + "source_prefix": "/docs/snmp-traps", + "target_prefix": "/docs/network-performance-monitoring/snmp-traps", + "historical_suffixes": [ + "", + "/alerts", + "/anti-patterns", + "/configuration", + "/enrichment", + "/field-reference", + "/forwarding-to-siem", + "/installation", + "/investigation-playbooks", + "/journal-and-querying", + "/metrics", + "/quick-start", + "/sizing-and-capacity-planning", + "/snmp-trap-profile-format", + "/trap-profiles", + "/troubleshooting", + "/usage-and-output", + "/validation-and-data-quality" + ] + }, "retired_wildcard_sources": [ "/docs/cloud/monitoring/*", "/docs/agent/zh/docs/*", diff --git a/netlify.toml b/netlify.toml index 32eb2237d7..02173809a4 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1078,6 +1078,10 @@ from="/docs/snmp-traps" to="/docs/network-performance-monitoring/snmp-traps" +[[redirects]] + from="/docs/snmp-traps/*" + to="/docs/network-performance-monitoring/snmp-traps/:splat" + [[redirects]] from="/docs/top-monitoring-netdata-functions" to="/docs/live-view" @@ -1279,461 +1283,2019 @@ to="/docs/netdata-agent/configuration/securing-agents/web-server-reference" [[redirects]] - from="/docs/configuring/health" - to="/docs/alerts-&-notifications/alert-configuration-reference" + from="/docs/configuring/health" + to="/docs/alerts-&-notifications/alert-configuration-reference" + +[[redirects]] + from="/docs/deployment-guides/parents-your-centralization-points" + to="/docs/netdata-parents" + +[[redirects]] + from="/docs/integrations/proxmox" + to="/docs/collecting-metrics/collectors/containers-and-vms/proxmox-ve" + +[[redirects]] + from="/docs/netdata-agent/configuration/configuration" + to="/docs/netdata-agent/configuration" + +[[redirects]] + from="/docs/netdata-agent/configuration/optimization/performance" + to="/docs/netdata-agent/configuration/performance-optimization" + +[[redirects]] + from="/docs/netdata-agent/configuration/securing-netdata-agents" + to="/docs/netdata-agent/configuration/securing-agents" + +[[redirects]] + from="/docs/netdata-agent/netdata.conf" + to="/docs/netdata-agent/configuration/daemon" + +[[redirects]] + from="/docs/netdata-agent/observability-centrality-points/streaming/reference" + to="/docs/netdata-parents/parent-child-configuration-reference" + +[[redirects]] + from="/docs/observability-centralization-points/metrics-centralization-points/configuration" + to="/docs/netdata-parents/metrics-centralization-points/configuring-metrics-centralization-points" + +# HTML-escaped ampersands (2026-10-31): some sites publish Learn links with "&" written as "&", +# which arrives as a literal path that does not exist. Each such section or page goes to its real +# spelling; sections with children keep the rest of the path. + +[[redirects]] + from="/docs/alerts-&-notifications" + to="/docs/alerts-&-notifications" + +# Exact exception ahead of the escaped wildcard below, so this former page reaches its reference +# in one hop instead of passing through the decoded alias (2026-12-01). +[[redirects]] + from="/docs/alerts-&-notifications/notifications/agent-alert-notifications" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/agent-notifications-reference" + +[[redirects]] + from="/docs/alerts-&-notifications/*" + to="/docs/alerts-&-notifications/:splat" + +[[redirects]] + from="/docs/collecting-metrics/collectors/hardware-and-sensors/amd-cpu-&-gpu" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/amd-cpu-&-gpu" + +[[redirects]] + from="/docs/netdata-agent/resource-utilization/disk-&-retention" + to="/docs/netdata-agent/resource-utilization/disk-&-retention" + +[[redirects]] + from="/docs/netdata-agent/versions-&-platforms" + to="/docs/netdata-agent/versions-&-platforms" + +[[redirects]] + from="/docs/netdata-cloud/authentication-&-authorization" + to="/docs/netdata-cloud/authentication-&-authorization" + +[[redirects]] + from="/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations" + to="/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations" + +[[redirects]] + from="/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations/*" + to="/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations/:splat" + +[[redirects]] + from="/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations" + to="/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations" + +[[redirects]] + from="/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations/*" + to="/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations/:splat" + +[[redirects]] + from="/docs/netdata-cloud/authentication-&-authorization/*" + to="/docs/netdata-cloud/authentication-&-authorization/:splat" + +[[redirects]] + from="/docs/netdata-cloud/netdata-plans-&-billing" + to="/docs/netdata-cloud/netdata-plans-&-billing" + +# Guessed addresses (2026-11-01): AI assistants and their crawlers keep requesting these paths, +# which never existed or no longer do, hundreds of times a month. Each goes to the page that +# covers the subject; guesses without one clear subject are left to the 404 page. + +[[redirects]] + from="/docs/netdata-ai/machine-learning-and-anomaly-detection" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/netdata-ai/machine-learning-anomaly-detection" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/netdata-agent/machine-learning-and-anomaly-detection" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/netdata-agent/machine-learning-anomaly-detection" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/netdata-agent/ml-anomaly-detection" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/netdata-agent/ml" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/netdata-anomaly-detection" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/netdata-ai/anomaly-advisor" + to="/docs/netdata-ai/troubleshooting/anomaly-advisor" + +[[redirects]] + from="/docs/netdata-agent/configuration/optimize-the-netdata-agents-performance" + to="/docs/netdata-agent/configuration/performance-optimization" + +[[redirects]] + from="/docs/netdata-agent/configuration/running-the-agent-behind-a-reverse-proxy" + to="/docs/netdata-agent/configuration/securing-agents/running-the-agent-behind-a-reverse-proxy" + +[[redirects]] + from="/docs/netdata-agent/observability-centralization-points" + to="/docs/netdata-parents" + +[[redirects]] + from="/docs/netdata-agent/streaming" + to="/docs/netdata-parents" + +[[redirects]] + from="/docs/netdata-agent/daemons" + to="/docs/netdata-agent/daemon" + +[[redirects]] + from="/docs/collectors" + to="/docs/collecting-metrics/collectors" + +[[redirects]] + from="/docs/netdata-agent/collectors" + to="/docs/collecting-metrics/collectors" + +[[redirects]] + from="/docs/collecting-metrics/system-metrics/system-statistics" + to="/docs/collecting-metrics/collectors/operating-systems/system-statistics" + +[[redirects]] + from="/docs/alerts-&-notifications/configure-health-alerts" + to="/docs/alerts-&-notifications/alert-configuration-reference" + +# Corrected generated redirects (2026-10-07): these dead pages went to an unrelated or generic page +# although a page with their content, a native page for the same product, or the page that now +# covers their subject exists. Each rule overrides the generated rule with the same source; a few +# cover another spelling of the same page that had no rule. + +[[redirects]] + from="/docs/agent/collectors/apps.plugin" + to="/docs/collecting-metrics/collectors/operating-systems/applications" + +[[redirects]] + from="/docs/agent/collectors/freebsd.plugin" + to="/docs/collecting-metrics/collectors/operating-systems" + +[[redirects]] + from="/docs/agent/collectors/python.d.plugin/changefinder" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/agent/collectors/python.d.plugin/zscores" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/agent/netdata-for-iot" + to="/docs/edge-device-monitoring" + +[[redirects]] + from="/docs/agent/packaging/installer/methods/packages" + to="/docs/netdata-agent/installation/linux/native-linux-distribution-packages" + +[[redirects]] + from="/docs/agent/streaming" + to="/docs/netdata-parents/parent-child-configuration-reference" + +[[redirects]] + from="/docs/collect/application-metrics" + to="/docs/welcome-to-netdata/monitor-anything" + +[[redirects]] + from="/docs/collecting-metrics/databases/sql-database-agnostic" + to="/docs/collecting-metrics/collectors/databases/sql-databases-generic" + +[[redirects]] + from="/docs/collecting-metrics/other/python.d-changefinder" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/collecting-metrics/other/python.d-zscores" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/collecting-metrics/storage%20-mount-points-and-filesystems/dell-emc-isilon-cluster" + to="/docs/network-performance-monitoring/device-metrics/integrations/isilon" + +[[redirects]] + from="/docs/dashboards-and-charts/tabs/top" + to="/docs/dashboards-and-charts/tabs/live" + +[[redirects]] + from="/docs/data-collection/application-metrics" + to="/docs/welcome-to-netdata/monitor-anything" + +[[redirects]] + from="/docs/data-collection/authentication-and-authorization/openldap-community" + to="/docs/collecting-metrics/collectors/applications/openldap" + +[[redirects]] + from="/docs/data-collection/cloud-provider-managed/aws-ecs" + to="/docs/collecting-metrics/collectors/containers-and-vms/aws-ecs-containers" + +[[redirects]] + from="/docs/data-collection/cloud-provider-managed/aws-instance-health" + to="/docs/collecting-metrics/collectors/cloud-and-devops/amazon-cloudwatch" + +[[redirects]] + from="/docs/data-collection/cloud-provider-managed/aws-s3-buckets" + to="/docs/collecting-metrics/collectors/cloud-and-devops/amazon-cloudwatch" + +[[redirects]] + from="/docs/data-collection/cloud-provider-managed/aws-sqs" + to="/docs/collecting-metrics/collectors/cloud-and-devops/amazon-cloudwatch" + +[[redirects]] + from="/docs/data-collection/cloud-provider-managed/azure-application" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-monitor" + +[[redirects]] + from="/docs/data-collection/cloud-provider-managed/azure-elastic-pool-sql" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-sql-elastic-pool" + +[[redirects]] + from="/docs/data-collection/cloud-provider-managed/azure-resources" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-monitor" + +[[redirects]] + from="/docs/data-collection/cloud-provider-managed/azure-service-bus" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-service-bus-namespace" + +[[redirects]] + from="/docs/data-collection/cloud-provider-managed/azure-sql" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-sql-database" + +[[redirects]] + from="/docs/data-collection/databases/memcached-community" + to="/docs/collecting-metrics/collectors/databases/memcached" + +[[redirects]] + from="/docs/data-collection/databases/oracle-db-community" + to="/docs/collecting-metrics/collectors/databases/oracle-db" + +[[redirects]] + from="/docs/data-collection/databases/sql-database-agnostic" + to="/docs/collecting-metrics/collectors/databases/sql-databases-generic" + +[[redirects]] + from="/docs/data-collection/generic-data-collection/generic-command-line-output" + to="/docs/collecting-metrics/collectors/synthetic-testing/nagios-plugins-and-custom-scripts" + +[[redirects]] + from="/docs/data-collection/generic-data-collection/shell-command" + to="/docs/collecting-metrics/collectors/synthetic-testing/nagios-plugins-and-custom-scripts" + +[[redirects]] + from="/docs/data-collection/hardware-devices-and-sensors/ipmi-by-soundcloud" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/intelligent-platform-management-interface-ipmi" + +[[redirects]] + from="/docs/data-collection/hardware-devices-and-sensors/nvml" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/nvidia-gpu" + +[[redirects]] + from="/docs/data-collection/monitor-anything/Any%20Application%20-%20Generic%20Collectors/Anomalies" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/data-collection/monitor-anything/Netdata/zscores" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/data-collection/monitor-anything/Qos/changefinder" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/data-collection/monitor-anything/System%20Metrics/Application-monitoring" + to="/docs/collecting-metrics/collectors/operating-systems/applications" + +[[redirects]] + from="/docs/data-collection/monitor-anything/System%20Metrics/FreeBSD-system-metrics-freebsd.plugin" + to="/docs/collecting-metrics/collectors/operating-systems" + +[[redirects]] + from="/docs/data-collection/monitor-anything/System%20Metrics/OS-provided-metrics-proc.plugin" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/data-collection/monitor-anything/Virtualized%20Environments/Containers-and-VMs-cgroups" + to="/docs/collecting-metrics/containers-and-cgroups" + +[[redirects]] + from="/docs/data-collection/monitor-anything/any-application---generic-collectors/anomalies" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/data-collection/monitor-anything/netdata/zscores" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/data-collection/monitor-anything/qos/changefinder" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/data-collection/monitor-anything/system-metrics/application-monitoring" + to="/docs/collecting-metrics/collectors/operating-systems/applications" + +[[redirects]] + from="/docs/data-collection/monitor-anything/system-metrics/freebsd-system-metrics-freebsd.plugin" + to="/docs/collecting-metrics/collectors/operating-systems" + +[[redirects]] + from="/docs/data-collection/monitor-anything/system-metrics/os-provided-metrics-proc.plugin" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/data-collection/monitor-anything/virtualized-environments/containers-and-vms-cgroups" + to="/docs/collecting-metrics/containers-and-cgroups" + +[[redirects]] + from="/docs/data-collection/netdata-specific/change-finder" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/data-collection/netdata-specific/zscores" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/data-collection/networking-stack-and-network-interfaces/a10-acos-network-devices" + to="/docs/network-performance-monitoring/device-metrics/integrations/a10-thunder" + +[[redirects]] + from="/docs/data-collection/networking-stack-and-network-interfaces/aruba-devices" + to="/docs/network-performance-monitoring/device-metrics/integrations/aruba" + +[[redirects]] + from="/docs/data-collection/networking-stack-and-network-interfaces/checkpoint-device" + to="/docs/network-performance-monitoring/device-metrics/integrations/checkpoint" + +[[redirects]] + from="/docs/data-collection/networking-stack-and-network-interfaces/fortigate-firewall" + to="/docs/network-performance-monitoring/device-metrics/integrations/fortinet-fortigate" + +[[redirects]] + from="/docs/data-collection/networking-stack-and-network-interfaces/meraki-dashboard" + to="/docs/network-performance-monitoring/device-metrics/integrations/cisco-meraki-cloud-controller" + +[[redirects]] + from="/docs/data-collection/networking-stack-and-network-interfaces/mikrotik-devices" + to="/docs/network-performance-monitoring/device-metrics/integrations/mikrotik-router" + +[[redirects]] + from="/docs/data-collection/networking-stack-and-network-interfaces/mikrotik-routeros-devices" + to="/docs/network-performance-monitoring/device-metrics/integrations/mikrotik-router" + +[[redirects]] + from="/docs/data-collection/other/python.d-changefinder" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/data-collection/other/python.d-zscores" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/data-collection/security-systems/ssl-certificate" + to="/docs/collecting-metrics/collectors/synthetic-testing/x.509-certificate" + +[[redirects]] + from="/docs/data-collection/storage%20-mount-points-and-filesystems/lagerist-disk-latency" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/ebpf-disk" + +[[redirects]] + from="/docs/data-collection/storage,-mount-points-and-filesystems/dell-emc-isilon-cluster" + to="/docs/network-performance-monitoring/device-metrics/integrations/isilon" + +[[redirects]] + from="/docs/data-collection/storage,-mount-points-and-filesystems/lagerist-disk-latency" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/ebpf-disk" + +[[redirects]] + from="/docs/data-collection/system-metrics" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/data-collection/windows-systems/hyperv" + to="/docs/collecting-metrics/collectors/containers-and-vms/hyper-v" + +[[redirects]] + from="/docs/deployment-in-production/streaming-and-replication" + to="/docs/netdata-parents" + +[[redirects]] + from="/docs/deployment-in-production/streaming-and-replication/streaming-configuration-reference" + to="/docs/netdata-parents/parent-child-configuration-reference" + +[[redirects]] + from="/docs/machine-learning-and-anomaly-detection/run-time-troubleshooting-with-functions" + to="/docs/dashboards-and-charts/tabs/live" + +[[redirects]] + from="/docs/machine-learning-and-assisted-troubleshooting/run-time-troubleshooting-with-functions" + to="/docs/dashboards-and-charts/tabs/live" + +[[redirects]] + from="/docs/metrics-storage-management/enable-streaming" + to="/docs/netdata-parents" + +[[redirects]] + from="/docs/metrics-storage-management/how-streaming-works" + to="/docs/netdata-parents" + +[[redirects]] + from="/docs/metrics-storage-management/reference-streaming" + to="/docs/netdata-parents/parent-child-configuration-reference" + +[[redirects]] + from="/docs/metrics-streaming-and-replication/streaming-configuration-reference" + to="/docs/netdata-parents/parent-child-configuration-reference" + +[[redirects]] + from="/docs/metrics-streaming-and-replication/understanding-how-streaming-works" + to="/docs/netdata-parents" + +[[redirects]] + from="/docs/miscellaneous/monitor-pi-hole-and-a-raspberry-pi-with-netdata" + to="/docs/collecting-metrics/collectors/networking/pi-hole" + +[[redirects]] + from="/docs/ml-and-troubleshooting/run-time-troubleshooting-with-functions" + to="/docs/dashboards-and-charts/tabs/live" + +[[redirects]] + from="/docs/streaming/streaming-configuration-reference" + to="/docs/netdata-parents/parent-child-configuration-reference" + +[[redirects]] + from="/docs/troubleshooting-and-machine-learning/run-time-troubleshooting-with-functions" + to="/docs/dashboards-and-charts/tabs/live" + +[[redirects]] + from="/guides/monitor/pi-hole-raspberry-pi" + to="/docs/collecting-metrics/collectors/networking/pi-hole" + +[[redirects]] + from="/streaming" + to="/docs/netdata-parents" + +# Broken backlinks, fifth batch (2026-12-01): dead URLs that hold a live backlink, sent to the page +# that covers the subject today or, when none does, to the closest parent section. + +[[redirects]] + from="/contribute/license" + to="/docs/developer-and-contributor-corner/contributing" + +[[redirects]] + from="/docs/%20collecting-metrics/docker-containers" + to="/docs/collecting-metrics/collectors/containers-and-vms/docker-containers" + +[[redirects]] + from="/docs/%20collecting-metrics/monitoring-virtual-machines-and-containers/proxmox-ve" + to="/docs/collecting-metrics/collectors/containers-and-vms/proxmox-ve" + +[[redirects]] + from="/docs/agent/collectors/go.d.plugin/pkg/matcher" + to="/docs/developer-and-contributor-corner/external-plugins/go.d.plugin" + +[[redirects]] + from="/docs/agent/ml-powered-anomaly-detection" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/agent/step-by-step/step-04" + to="/docs/netdata-agent/configuration" + +[[redirects]] + from="/docs/collecting" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/collecting-metrics/virtual-machines-and-hypervisors/proxmox-ve" + to="/docs/collecting-metrics/collectors/containers-and-vms/proxmox-ve" + +[[redirects]] + from="/docs/netdata-agent/configuration/find-anything-about-your-infrastructure/service-discovery" + to="/docs/collecting-metrics/service-discovery" + +# Former Learn pages (2026-12-01): pages that once existed at these paths and that AI assistants and +# crawlers keep requesting, sent to the page that covers the subject today or, when none does, to the +# closest parent section. + +[[redirects]] + from="/docs/agent/backends/aws_kinesis" + to="/docs/exporting-metrics/connectors/aws-kinesis" + +[[redirects]] + from="/docs/agent/backends/mongodb" + to="/docs/exporting-metrics/connectors/mongodb" + +[[redirects]] + from="/docs/agent/backends/timescale" + to="/docs/exporting-metrics/connectors/timescaledb" + +[[redirects]] + from="/docs/agent/collectors/charts.d.plugin/example" + to="/docs/developer-and-contributor-corner/external-plugins/charts.d.plugin" + +[[redirects]] + from="/docs/agent/collectors/checks.plugin" + to="/docs/developer-and-contributor-corner" + +[[redirects]] + from="/docs/agent/collectors/go.d.plugin/agent" + to="/docs/developer-and-contributor-corner/external-plugins/go.d.plugin" + +[[redirects]] + from="/docs/agent/collectors/go.d.plugin/modules/example" + to="/docs/developer-and-contributor-corner/external-plugins/go.d.plugin/how-to-write-a-netdata-collector-in-go" + +[[redirects]] + from="/docs/agent/collectors/go.d.plugin/pkg" + to="/docs/developer-and-contributor-corner/external-plugins/go.d.plugin" + +[[redirects]] + from="/docs/agent/collectors/go.d.plugin/pkg/iprange" + to="/docs/developer-and-contributor-corner/external-plugins/go.d.plugin" + +[[redirects]] + from="/docs/agent/collectors/go.d.plugin/pkg/stm" + to="/docs/developer-and-contributor-corner/external-plugins/go.d.plugin" + +[[redirects]] + from="/docs/agent/collectors/node.d.plugin/fronius" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/agent/collectors/node.d.plugin/named" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/agent/collectors/node.d.plugin/sma_webbox" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/sma-inverters" + +[[redirects]] + from="/docs/agent/collectors/node.d.plugin/stiebeleltron" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/agent/collectors/python.d.plugin/logind" + to="/docs/collecting-metrics/collectors/operating-systems/systemd-logind-users" + +[[redirects]] + from="/docs/agent/collectors/python.d.plugin/nginx_plus" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/nginx-plus" + +[[redirects]] + from="/docs/agent/collectors/python.d.plugin/ovpn_status_log" + to="/docs/collecting-metrics/collectors/networking/openvpn-status-log" + +[[redirects]] + from="/docs/agent/collectors/python.d.plugin/retroshare" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/agent/database/engine/metadata_log" + to="/docs/developer-and-contributor-corner/database-engine" + +[[redirects]] + from="/docs/agent/parser" + to="/docs/developer-and-contributor-corner/libnetdata" + +[[redirects]] + from="/docs/agent/spawn" + to="/docs/developer-and-contributor-corner" + +[[redirects]] + from="/docs/agent/tests" + to="/docs/developer-and-contributor-corner" + +[[redirects]] + from="/docs/agent/tests/ebpf" + to="/docs/developer-and-contributor-corner" + +[[redirects]] + from="/docs/agent/web/gui/dashboard" + to="/docs/dashboards-and-charts" + +[[redirects]] + from="/docs/alerts-&-notifications/notifications/agent-alert-notifications" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/agent-notifications-reference" + +[[redirects]] + from="/docs/alerts-and-notifications/alert-configuration-reference" + to="/docs/alerts-&-notifications/alert-configuration-reference" + +[[redirects]] + from="/docs/alerts-and-notifications/notifications/agent-dispatched-notifications" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications" + +[[redirects]] + from="/docs/alerts-and-notifications/notifications/agent-dispatched-notifications/email" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/email" + +[[redirects]] + from="/docs/alerts-and-notifications/notifications/agent-dispatched-notifications/telegram" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/telegram" + +[[redirects]] + from="/docs/alerts-and-notifications/notifications/centralized-cloud-notifications" + to="/docs/alerts-&-notifications/notifications/centralized-cloud-notifications" + +[[redirects]] + from="/docs/collecting-metrics/OpenTelemetry/OpenTelemetry-Metrics" + to="/docs/opentelemetry/opentelemetry-plugin-reference" + +[[redirects]] + from="/docs/collecting-metrics/apm/audisto" + to="/docs/collecting-metrics/collectors/applications/prometheus-endpoint" + +[[redirects]] + from="/docs/collecting-metrics/applications/nagios" + to="/docs/collecting-metrics/collectors/synthetic-testing/nagios-plugins-and-custom-scripts" + +[[redirects]] + from="/docs/collecting-metrics/applications/scripts.d-scheduler" + to="/docs/collecting-metrics/collectors/synthetic-testing/nagios-plugins-and-custom-scripts" + +[[redirects]] + from="/docs/collecting-metrics/applications/zabbix-preprocessing" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/collecting-metrics/blockchain-servers/energi-core-wallet" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/collecting-metrics/cloud-and-devops" + to="/docs/collecting-metrics/collectors/cloud-and-devops" + +[[redirects]] + from="/docs/collecting-metrics/collectors/cloud-and-devops/cloudwatch" + to="/docs/collecting-metrics/collectors/cloud-and-devops/amazon-cloudwatch" + +[[redirects]] + from="/docs/collecting-metrics/collectors/networking/ebpf-socket" + to="/docs/collecting-metrics/collectors/operating-systems/ebpf-socket" + +[[redirects]] + from="/docs/collecting-metrics/containers-and-vms/libvirt-containers" + to="/docs/collecting-metrics/collectors/containers-and-vms/libvirt-vms-and-containers" + +[[redirects]] + from="/docs/collecting-metrics/databases/ms-sql-server" + to="/docs/collecting-metrics/collectors/databases/microsoft-sql-server" + +[[redirects]] + from="/docs/collecting-metrics/distributed-computing-systems/boinc" + to="/docs/collecting-metrics/collectors/applications/boinc" + +[[redirects]] + from="/docs/collecting-metrics/ftp-servers" + to="/docs/collecting-metrics/collectors/applications/proftpd" + +[[redirects]] + from="/docs/collecting-metrics/hardware-and-sensors/amd-cpu-&-gpu" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/amd-cpu-&-gpu" + +[[redirects]] + from="/docs/collecting-metrics/hardware-devices-and-sensors/amd-cpu-&-gpu" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/amd-cpu-&-gpu" + +[[redirects]] + from="/docs/collecting-metrics/hardware-devices-and-sensors/linux-sensors-sysfs" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/linux-hardware-sensors-libsensors" + +[[redirects]] + from="/docs/collecting-metrics/linux-systems/cpu" + to="/docs/collecting-metrics/collectors/operating-systems" + +[[redirects]] + from="/docs/collecting-metrics/linux-systems/filesystem/zfs" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/zfs" + +[[redirects]] + from="/docs/collecting-metrics/linux-systems/ipc" + to="/docs/collecting-metrics/collectors/operating-systems/inter-process-communication" + +[[redirects]] + from="/docs/collecting-metrics/linux-systems/pressure" + to="/docs/collecting-metrics/collectors/operating-systems/pressure-stall-information" + +[[redirects]] + from="/docs/collecting-metrics/networking-stack-and-network-interfaces/andrews-&-arnold-line-status" + to="/docs/collecting-metrics/collectors/applications/prometheus-endpoint" + +[[redirects]] + from="/docs/collecting-metrics/provisioning-systems" + to="/docs/collecting-metrics/collectors/cloud-and-devops" + +[[redirects]] + from="/docs/collecting-metrics/storage-and-filesystems" + to="/docs/collecting-metrics/collectors/storage-and-filesystems" + +[[redirects]] + from="/docs/collecting-metrics/synthetic-testing" + to="/docs/collecting-metrics/collectors/synthetic-testing" + +[[redirects]] + from="/docs/collecting-metrics/telephony-servers" + to="/docs/collecting-metrics/collectors/applications" + +[[redirects]] + from="/docs/collecting-metrics/vpns/speedify-cli" + to="/docs/collecting-metrics/collectors/applications/prometheus-endpoint" + +[[redirects]] + from="/docs/collecting-metrics/windows-systems/hyperv" + to="/docs/collecting-metrics/collectors/containers-and-vms/hyper-v" + +[[redirects]] + from="/docs/logs/systemd-journal-logs/journal-viewer-plugin" + to="/docs/logs-management/systemd-journal-logs/systemd-journal-plugin-reference" + +[[redirects]] + from="/docs/machine-learning-and-anomaly-detection/anomaly-advisor" + to="/docs/netdata-ai/troubleshooting/anomaly-advisor" + +[[redirects]] + from="/docs/netdata-agent/sizing-netdata-agents/disk-requirements-and-retention" + to="/docs/netdata-agent/resource-utilization/disk-&-retention" + +[[redirects]] + from="/docs/netdata-agent/versions-and-platforms" + to="/docs/netdata-agent/versions-&-platforms" + +[[redirects]] + from="/docs/netdata-ai/anomaly-detection/ml-anomaly-detection" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/netdata-ai/mcp/mcp-clients/netdata-web-client" + to="/docs/netdata-ai/mcp/supported-ai-clients" + +[[redirects]] + from="/docs/netdata-ai/troubleshooting/troubleshoot-button" + to="/docs/netdata-ai/investigations/custom-investigations" + +[[redirects]] + from="/docs/netdata-cloud/authentication-and-authorization/api-tokens" + to="/docs/netdata-cloud/authentication-&-authorization/api-tokens" + +[[redirects]] + from="/docs/netdata-cloud/authentication-and-authorization/role-based-access-model" + to="/docs/netdata-cloud/authentication-&-authorization/role-based-access-model" + +[[redirects]] + from="/docs/netdata-cloud/versions" + to="/docs/netdata-cloud" + +[[redirects]] + from="/docs/netdata-cloud/view-plan-and-billing" + to="/docs/netdata-cloud/netdata-plans-&-billing" + +# Agent-prefixed paths (2026-12-01): requested /docs/agent/<path> addresses whose /docs/<path> page +# exists. Exact rules, not a wildcard, so unknown /docs/agent/ paths stay on the 404 page. + +[[redirects]] + from="/docs/agent/alerts-&-notifications" + to="/docs/alerts-&-notifications" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/alert-configuration-ordering" + to="/docs/alerts-&-notifications/alert-configuration-ordering" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/alert-configuration-reference" + to="/docs/alerts-&-notifications/alert-configuration-reference" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/health-api-calls" + to="/docs/alerts-&-notifications/health-api-calls" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/agent-notifications-reference" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/agent-notifications-reference" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/alerta" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/alerta" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/aws-sns" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/aws-sns" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/custom" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/custom" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/email" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/email" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/gotify" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/gotify" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/kavenegar" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/kavenegar" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/matrix" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/matrix" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/microsoft-teams" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/microsoft-teams" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/pagerduty" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/pagerduty" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/prowl" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/prowl" + +[[redirects]] + from="/docs/agent/collecting-metrics" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/agent/collecting-metrics/aws-cloudwatch-profile-format" + to="/docs/collecting-metrics/aws-cloudwatch-profile-format" + +[[redirects]] + from="/docs/agent/collecting-metrics/ceph" + to="/docs/collecting-metrics/ceph" + +[[redirects]] + from="/docs/agent/collecting-metrics/chart-template-format" + to="/docs/collecting-metrics/chart-template-format" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/celery" + to="/docs/collecting-metrics/collectors/applications/celery" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/crowdsec" + to="/docs/collecting-metrics/collectors/applications/crowdsec" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/cryptowatch" + to="/docs/collecting-metrics/collectors/applications/cryptowatch" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/discourse" + to="/docs/collecting-metrics/collectors/applications/discourse" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/go-applications-expvar" + to="/docs/collecting-metrics/collectors/applications/go-applications-expvar" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/ibm-mq" + to="/docs/collecting-metrics/collectors/applications/ibm-mq" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/jmx" + to="/docs/collecting-metrics/collectors/applications/jmx" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/lynis-audit-reports" + to="/docs/collecting-metrics/collectors/applications/lynis-audit-reports" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/obs-studio" + to="/docs/collecting-metrics/collectors/applications/obs-studio" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/steam" + to="/docs/collecting-metrics/collectors/applications/steam" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/tankerkoenig-api" + to="/docs/collecting-metrics/collectors/applications/tankerkoenig-api" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/vscode" + to="/docs/collecting-metrics/collectors/applications/vscode" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/cloud-and-devops" + to="/docs/collecting-metrics/collectors/cloud-and-devops" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/cloud-and-devops/azure-cache-for-redis" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-cache-for-redis" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/cloud-and-devops/azure-data-factory" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-data-factory" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/cloud-and-devops/azure-event-hubs-namespace" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-event-hubs-namespace" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/cloud-and-devops/azure-functions" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-functions" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/cloud-and-devops/azure-monitor" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-monitor" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/cloud-and-devops/azure-vpn-gateway" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-vpn-gateway" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/cloud-and-devops/linode" + to="/docs/collecting-metrics/collectors/cloud-and-devops/linode" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/containers-and-vms/cilium-agent" + to="/docs/collecting-metrics/collectors/containers-and-vms/cilium-agent" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/containers-and-vms/containers" + to="/docs/collecting-metrics/collectors/containers-and-vms/containers" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/containers-and-vms/docker" + to="/docs/collecting-metrics/collectors/containers-and-vms/docker" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/containers-and-vms/docker-containers" + to="/docs/collecting-metrics/collectors/containers-and-vms/docker-containers" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/containers-and-vms/mesos" + to="/docs/collecting-metrics/collectors/containers-and-vms/mesos" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/containers-and-vms/vcenter-server-appliance" + to="/docs/collecting-metrics/collectors/containers-and-vms/vcenter-server-appliance" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/containers-and-vms/xen-xcp-ng" + to="/docs/collecting-metrics/collectors/containers-and-vms/xen-xcp-ng" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/aws-rds" + to="/docs/collecting-metrics/collectors/databases/aws-rds" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/cockroachdb" + to="/docs/collecting-metrics/collectors/databases/cockroachdb" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/ibm-db2" + to="/docs/collecting-metrics/collectors/databases/ibm-db2" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/memcached" + to="/docs/collecting-metrics/collectors/databases/memcached" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/mosquitto" + to="/docs/collecting-metrics/collectors/databases/mosquitto" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/nats" + to="/docs/collecting-metrics/collectors/databases/nats" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/pandas" + to="/docs/collecting-metrics/collectors/databases/pandas" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/pgbackrest" + to="/docs/collecting-metrics/collectors/databases/pgbackrest" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/pika" + to="/docs/collecting-metrics/collectors/databases/pika" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/scylladb" + to="/docs/collecting-metrics/collectors/databases/scylladb" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/vernemq" + to="/docs/collecting-metrics/collectors/databases/vernemq" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors" + to="/docs/collecting-metrics/collectors/hardware-and-sensors" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/apc-ups" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/apc-ups" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/elgato-key-light-devices." + to="/docs/collecting-metrics/collectors/hardware-and-sensors/elgato-key-light-devices." + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/ibm-cryptoexpress-cex-cards" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/ibm-cryptoexpress-cex-cards" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/jarvis-standing-desk" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/jarvis-standing-desk" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/nvidia-data-center-gpu-manager-dcgm" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/nvidia-data-center-gpu-manager-dcgm" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/personal-weather-station" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/personal-weather-station" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/philips-hue" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/philips-hue" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/radio-thermostat" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/radio-thermostat" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/salicru-eqx-inverter" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/salicru-eqx-inverter" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/smart-meters-sml" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/smart-meters-sml" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/xiaomi-mi-flora" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/xiaomi-mi-flora" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/conntrack" + to="/docs/collecting-metrics/collectors/networking/conntrack" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/net.inet.tcp.states" + to="/docs/collecting-metrics/collectors/networking/net.inet.tcp.states" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/network-connections" + to="/docs/collecting-metrics/collectors/networking/network-connections" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/open-vswitch" + to="/docs/collecting-metrics/collectors/networking/open-vswitch" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/optical-modules" + to="/docs/collecting-metrics/collectors/networking/optical-modules" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/powerdns-recursor" + to="/docs/collecting-metrics/collectors/networking/powerdns-recursor" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/ripe-atlas" + to="/docs/collecting-metrics/collectors/networking/ripe-atlas" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/socket-statistics" + to="/docs/collecting-metrics/collectors/networking/socket-statistics" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/tc-qos-classes" + to="/docs/collecting-metrics/collectors/networking/tc-qos-classes" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/applications" + to="/docs/collecting-metrics/collectors/operating-systems/applications" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/ebpf-dcstat" + to="/docs/collecting-metrics/collectors/operating-systems/ebpf-dcstat" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/ebpf-shm" + to="/docs/collecting-metrics/collectors/operating-systems/ebpf-shm" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/entropy" + to="/docs/collecting-metrics/collectors/operating-systems/entropy" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/linux-kernel-slab-allocator-statistics" + to="/docs/collecting-metrics/collectors/operating-systems/linux-kernel-slab-allocator-statistics" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/non-uniform-memory-access" + to="/docs/collecting-metrics/collectors/operating-systems/non-uniform-memory-access" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/processor" + to="/docs/collecting-metrics/collectors/operating-systems/processor" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/systemd-units" + to="/docs/collecting-metrics/collectors/operating-systems/systemd-units" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/terminal-services-sessions" + to="/docs/collecting-metrics/collectors/operating-systems/terminal-services-sessions" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/uptime" + to="/docs/collecting-metrics/collectors/operating-systems/uptime" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/windows-services-windows-plugin" + to="/docs/collecting-metrics/collectors/operating-systems/windows-services-windows-plugin" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/bcache" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/bcache" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/btrfs" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/btrfs" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/dell-powervault-me4-me5" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/dell-powervault-me4-me5" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/disk-space" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/disk-space" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/disk-statistics" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/disk-statistics" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/dmcache-devices" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/dmcache-devices" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/ebpf-filesystem" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/ebpf-filesystem" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/ebpf-sync" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/ebpf-sync" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/ebpf-vfs" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/ebpf-vfs" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/nvme-devices" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/nvme-devices" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/synthetic-testing" + to="/docs/collecting-metrics/collectors/synthetic-testing" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/synthetic-testing/http-endpoints" + to="/docs/collecting-metrics/collectors/synthetic-testing/http-endpoints" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/synthetic-testing/ioping" + to="/docs/collecting-metrics/collectors/synthetic-testing/ioping" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/apicast" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/apicast" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/haproxy-prometheus" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/haproxy-prometheus" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/iis" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/iis" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/lighttpd" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/lighttpd" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/nginx-unit" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/nginx-unit" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/nginx-vts" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/nginx-vts" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/php-fpm" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/php-fpm" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/squid-log-files" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/squid-log-files" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/tengine" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/tengine" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/tomcat" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/tomcat" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/varnish" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/varnish" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/web-server-log-files" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/web-server-log-files" + +[[redirects]] + from="/docs/agent/collecting-metrics/prometheus-metric-relabeling" + to="/docs/collecting-metrics/prometheus-metric-relabeling" + +[[redirects]] + from="/docs/agent/collecting-metrics/prometheus-profile-format" + to="/docs/collecting-metrics/prometheus-profile-format" + +[[redirects]] + from="/docs/agent/collecting-metrics/secrets-management" + to="/docs/collecting-metrics/secrets-management" + +[[redirects]] + from="/docs/agent/collecting-metrics/statsd" + to="/docs/collecting-metrics/statsd" + +[[redirects]] + from="/docs/agent/dashboards-and-charts" + to="/docs/dashboards-and-charts" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/nidl-framework" + to="/docs/dashboards-and-charts/nidl-framework" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/tabs" + to="/docs/dashboards-and-charts/tabs" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/tabs/dashboards" + to="/docs/dashboards-and-charts/tabs/dashboards" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/tabs/events" + to="/docs/dashboards-and-charts/tabs/events" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/tabs/live" + to="/docs/dashboards-and-charts/tabs/live" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/tabs/metrics" + to="/docs/dashboards-and-charts/tabs/metrics" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/tabs/nodes" + to="/docs/dashboards-and-charts/tabs/nodes" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/theme" + to="/docs/dashboards-and-charts/theme" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/time-controls" + to="/docs/dashboards-and-charts/time-controls" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner" + to="/docs/developer-and-contributor-corner" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/community-code-of-conduct" + to="/docs/developer-and-contributor-corner/community-code-of-conduct" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/contributing" + to="/docs/developer-and-contributor-corner/contributing" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/database-engine" + to="/docs/developer-and-contributor-corner/database-engine" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/external-plugins" + to="/docs/developer-and-contributor-corner/external-plugins" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/external-plugins/profile.plugin" + to="/docs/developer-and-contributor-corner/external-plugins/profile.plugin" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/external-plugins/python.d.plugin" + to="/docs/developer-and-contributor-corner/external-plugins/python.d.plugin" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/glossary" + to="/docs/developer-and-contributor-corner/glossary" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/health-command-api-tester" + to="/docs/developer-and-contributor-corner/health-command-api-tester" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/install-the-netdata-agent-from-a-git-checkout" + to="/docs/developer-and-contributor-corner/install-the-netdata-agent-from-a-git-checkout" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/libnetdata" + to="/docs/developer-and-contributor-corner/libnetdata" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/libnetdata/circular-buffer" + to="/docs/developer-and-contributor-corner/libnetdata/circular-buffer" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/libnetdata/simple-patterns" + to="/docs/developer-and-contributor-corner/libnetdata/simple-patterns" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/monitor-unbound-dns-servers-with-netdata" + to="/docs/developer-and-contributor-corner/monitor-unbound-dns-servers-with-netdata" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/rest-api" + to="/docs/developer-and-contributor-corner/rest-api" + +[[redirects]] + from="/docs/agent/edge-device-monitoring" + to="/docs/edge-device-monitoring" + +[[redirects]] + from="/docs/agent/exporting-metrics" + to="/docs/exporting-metrics" + +[[redirects]] + from="/docs/agent/exporting-metrics/connectors" + to="/docs/exporting-metrics/connectors" + +[[redirects]] + from="/docs/agent/exporting-metrics/connectors/aws-kinesis" + to="/docs/exporting-metrics/connectors/aws-kinesis" + +[[redirects]] + from="/docs/agent/exporting-metrics/connectors/graphite" + to="/docs/exporting-metrics/connectors/graphite" + +[[redirects]] + from="/docs/agent/exporting-metrics/connectors/mongodb" + to="/docs/exporting-metrics/connectors/mongodb" + +[[redirects]] + from="/docs/agent/exporting-metrics/connectors/prometheus-remote-write" + to="/docs/exporting-metrics/connectors/prometheus-remote-write" + +[[redirects]] + from="/docs/agent/exporting-metrics/enable-an-exporting-connector" + to="/docs/exporting-metrics/enable-an-exporting-connector" + +[[redirects]] + from="/docs/agent/exporting-metrics/exporting-reference" + to="/docs/exporting-metrics/exporting-reference" + +[[redirects]] + from="/docs/agent/exporting-metrics/prometheus" + to="/docs/exporting-metrics/prometheus" + +[[redirects]] + from="/docs/agent/live-demo" + to="/docs/live-demo" + +[[redirects]] + from="/docs/agent/live-view" + to="/docs/live-view" + +[[redirects]] + from="/docs/agent/logs-management" + to="/docs/logs-management" + +[[redirects]] + from="/docs/agent/netdata-agent" + to="/docs/netdata-agent" + +[[redirects]] + from="/docs/agent/netdata-agent/agent-cli" + to="/docs/netdata-agent/agent-cli" + +[[redirects]] + from="/docs/agent/netdata-agent/anonymous-telemetry-events" + to="/docs/netdata-agent/anonymous-telemetry-events" + +[[redirects]] + from="/docs/agent/netdata-agent/configuration" + to="/docs/netdata-agent/configuration" + +[[redirects]] + from="/docs/agent/netdata-agent/configuration/daemon" + to="/docs/netdata-agent/configuration/daemon" + +[[redirects]] + from="/docs/agent/netdata-agent/configuration/dynamic-configuration-manager" + to="/docs/netdata-agent/configuration/dynamic-configuration-manager" + +[[redirects]] + from="/docs/agent/netdata-agent/configuration/organize-systems-metrics-and-alerts" + to="/docs/netdata-agent/configuration/organize-systems-metrics-and-alerts" + +[[redirects]] + from="/docs/agent/netdata-agent/configuration/registry" + to="/docs/netdata-agent/configuration/registry" + +[[redirects]] + from="/docs/agent/netdata-agent/configuration/securing-agents/running-the-agent-behind-a-reverse-proxy/haproxy" + to="/docs/netdata-agent/configuration/securing-agents/running-the-agent-behind-a-reverse-proxy/haproxy" + +[[redirects]] + from="/docs/agent/netdata-agent/configuration/securing-agents/running-the-agent-behind-a-reverse-proxy/nginx" + to="/docs/netdata-agent/configuration/securing-agents/running-the-agent-behind-a-reverse-proxy/nginx" + +[[redirects]] + from="/docs/agent/netdata-agent/configuration/securing-agents/web-server-reference" + to="/docs/netdata-agent/configuration/securing-agents/web-server-reference" + +[[redirects]] + from="/docs/agent/netdata-agent/daemon" + to="/docs/netdata-agent/daemon" + +[[redirects]] + from="/docs/agent/netdata-agent/installation" + to="/docs/netdata-agent/installation" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/ansible" + to="/docs/netdata-agent/installation/ansible" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/azure" + to="/docs/netdata-agent/installation/azure" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/docker" + to="/docs/netdata-agent/installation/docker" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/freebsd" + to="/docs/netdata-agent/installation/freebsd" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/gcp" + to="/docs/netdata-agent/installation/gcp" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/kubernetes" + to="/docs/netdata-agent/installation/kubernetes" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/kubernetes-helm-chart-reference" + to="/docs/netdata-agent/installation/kubernetes-helm-chart-reference" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/linux" + to="/docs/netdata-agent/installation/linux" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/linux/native-linux-distribution-packages" + to="/docs/netdata-agent/installation/linux/native-linux-distribution-packages" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/linux/offline-systems" + to="/docs/netdata-agent/installation/linux/offline-systems" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/linux/switch-install-types-and-release-channels" + to="/docs/netdata-agent/installation/linux/switch-install-types-and-release-channels" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/macos" + to="/docs/netdata-agent/installation/macos" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/pfsense" + to="/docs/netdata-agent/installation/pfsense" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/synology" + to="/docs/netdata-agent/installation/synology" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/windows" + to="/docs/netdata-agent/installation/windows" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/windows/switching-install-types-and-release-channels" + to="/docs/netdata-agent/installation/windows/switching-install-types-and-release-channels" + +[[redirects]] + from="/docs/agent/netdata-agent/logging" + to="/docs/netdata-agent/logging" + +[[redirects]] + from="/docs/agent/netdata-agent/maintenance" + to="/docs/netdata-agent/maintenance" + +[[redirects]] + from="/docs/agent/netdata-agent/maintenance/service-control" + to="/docs/netdata-agent/maintenance/service-control" + +[[redirects]] + from="/docs/agent/netdata-agent/node-identities" + to="/docs/netdata-agent/node-identities" [[redirects]] - from="/docs/deployment-guides/parents-your-centralization-points" - to="/docs/netdata-parents" + from="/docs/agent/netdata-agent/quickstart-deployment" + to="/docs/netdata-agent/quickstart-deployment" [[redirects]] - from="/docs/integrations/proxmox" - to="/docs/collecting-metrics/collectors/containers-and-vms/proxmox-ve" + from="/docs/agent/netdata-agent/registry" + to="/docs/netdata-agent/registry" [[redirects]] - from="/docs/netdata-agent/configuration/configuration" - to="/docs/netdata-agent/configuration" + from="/docs/agent/netdata-agent/resource-utilization" + to="/docs/netdata-agent/resource-utilization" [[redirects]] - from="/docs/netdata-agent/configuration/optimization/performance" - to="/docs/netdata-agent/configuration/performance-optimization" + from="/docs/agent/netdata-agent/resource-utilization/impact-on-cloud-vms" + to="/docs/netdata-agent/resource-utilization/impact-on-cloud-vms" [[redirects]] - from="/docs/netdata-agent/configuration/securing-netdata-agents" - to="/docs/netdata-agent/configuration/securing-agents" + from="/docs/agent/netdata-agent/versions-&-platforms" + to="/docs/netdata-agent/versions-&-platforms" [[redirects]] - from="/docs/netdata-agent/netdata.conf" - to="/docs/netdata-agent/configuration/daemon" + from="/docs/agent/netdata-agent/vm-templates" + to="/docs/netdata-agent/vm-templates" [[redirects]] - from="/docs/netdata-agent/observability-centrality-points/streaming/reference" - to="/docs/netdata-parents/parent-child-configuration-reference" + from="/docs/agent/netdata-ai" + to="/docs/netdata-ai" [[redirects]] - from="/docs/observability-centralization-points/metrics-centralization-points/configuration" - to="/docs/netdata-parents/metrics-centralization-points/configuring-metrics-centralization-points" + from="/docs/agent/netdata-ai/mcp/mcp-connections/pagerduty" + to="/docs/netdata-ai/mcp/mcp-connections/pagerduty" -# HTML-escaped ampersands (2026-10-31): some sites publish Learn links with "&" written as "&", -# which arrives as a literal path that does not exist. Each such section or page goes to its real -# spelling; sections with children keep the rest of the path. +[[redirects]] + from="/docs/agent/netdata-cloud-on-prem" + to="/docs/netdata-cloud-on-prem" [[redirects]] - from="/docs/alerts-&-notifications" - to="/docs/alerts-&-notifications" + from="/docs/agent/netdata-parents" + to="/docs/netdata-parents" [[redirects]] - from="/docs/alerts-&-notifications/*" - to="/docs/alerts-&-notifications/:splat" + from="/docs/agent/netdata-parents/metrics-centralization-points" + to="/docs/netdata-parents/metrics-centralization-points" [[redirects]] - from="/docs/collecting-metrics/collectors/hardware-and-sensors/amd-cpu-&-gpu" - to="/docs/collecting-metrics/collectors/hardware-and-sensors/amd-cpu-&-gpu" + from="/docs/agent/netdata-parents/metrics-centralization-points/clustering-and-high-availability-of-netdata-parents" + to="/docs/netdata-parents/metrics-centralization-points/clustering-and-high-availability-of-netdata-parents" [[redirects]] - from="/docs/netdata-agent/resource-utilization/disk-&-retention" - to="/docs/netdata-agent/resource-utilization/disk-&-retention" + from="/docs/agent/netdata-parents/metrics-centralization-points/replication-of-past-samples" + to="/docs/netdata-parents/metrics-centralization-points/replication-of-past-samples" [[redirects]] - from="/docs/netdata-agent/versions-&-platforms" - to="/docs/netdata-agent/versions-&-platforms" + from="/docs/agent/network-performance-monitoring" + to="/docs/network-performance-monitoring" [[redirects]] - from="/docs/netdata-cloud/authentication-&-authorization" - to="/docs/netdata-cloud/authentication-&-authorization" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/3com-huawei" + to="/docs/network-performance-monitoring/device-metrics/integrations/3com-huawei" [[redirects]] - from="/docs/netdata-cloud/authentication-&-authorization/*" - to="/docs/netdata-cloud/authentication-&-authorization/:splat" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/aruba-clearpass" + to="/docs/network-performance-monitoring/device-metrics/integrations/aruba-clearpass" [[redirects]] - from="/docs/netdata-cloud/netdata-plans-&-billing" - to="/docs/netdata-cloud/netdata-plans-&-billing" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/barracuda" + to="/docs/network-performance-monitoring/device-metrics/integrations/barracuda" -# Guessed addresses (2026-11-01): AI assistants and their crawlers keep requesting these paths, -# which never existed or no longer do, hundreds of times a month. Each goes to the page that -# covers the subject; guesses without one clear subject are left to the 404 page. +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/checkpoint" + to="/docs/network-performance-monitoring/device-metrics/integrations/checkpoint" [[redirects]] - from="/docs/netdata-ai/machine-learning-and-anomaly-detection" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/cisco-firepower" + to="/docs/network-performance-monitoring/device-metrics/integrations/cisco-firepower" [[redirects]] - from="/docs/netdata-ai/machine-learning-anomaly-detection" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/cisco-firepower-asa" + to="/docs/network-performance-monitoring/device-metrics/integrations/cisco-firepower-asa" [[redirects]] - from="/docs/netdata-agent/machine-learning-and-anomaly-detection" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/cisco-icm" + to="/docs/network-performance-monitoring/device-metrics/integrations/cisco-icm" [[redirects]] - from="/docs/netdata-agent/machine-learning-anomaly-detection" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/cradlepoint" + to="/docs/network-performance-monitoring/device-metrics/integrations/cradlepoint" [[redirects]] - from="/docs/netdata-agent/ml-anomaly-detection" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/cyberpower-pdu" + to="/docs/network-performance-monitoring/device-metrics/integrations/cyberpower-pdu" [[redirects]] - from="/docs/netdata-agent/ml" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/dell-powerconnect" + to="/docs/network-performance-monitoring/device-metrics/integrations/dell-powerconnect" [[redirects]] - from="/docs/netdata-anomaly-detection" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/dialogic-media-gateway" + to="/docs/network-performance-monitoring/device-metrics/integrations/dialogic-media-gateway" [[redirects]] - from="/docs/netdata-ai/anomaly-advisor" - to="/docs/netdata-ai/troubleshooting/anomaly-advisor" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/eaton-ups" + to="/docs/network-performance-monitoring/device-metrics/integrations/eaton-ups" [[redirects]] - from="/docs/netdata-agent/configuration/optimize-the-netdata-agents-performance" - to="/docs/netdata-agent/configuration/performance-optimization" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/exagrid" + to="/docs/network-performance-monitoring/device-metrics/integrations/exagrid" [[redirects]] - from="/docs/netdata-agent/configuration/running-the-agent-behind-a-reverse-proxy" - to="/docs/netdata-agent/configuration/securing-agents/running-the-agent-behind-a-reverse-proxy" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/fortinet-fortiswitch" + to="/docs/network-performance-monitoring/device-metrics/integrations/fortinet-fortiswitch" [[redirects]] - from="/docs/netdata-agent/observability-centralization-points" - to="/docs/netdata-parents" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/gigamon" + to="/docs/network-performance-monitoring/device-metrics/integrations/gigamon" [[redirects]] - from="/docs/netdata-agent/streaming" - to="/docs/netdata-parents" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/hpe-proliant" + to="/docs/network-performance-monitoring/device-metrics/integrations/hpe-proliant" [[redirects]] - from="/docs/netdata-agent/daemons" - to="/docs/netdata-agent/daemon" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/huawei-switches" + to="/docs/network-performance-monitoring/device-metrics/integrations/huawei-switches" [[redirects]] - from="/docs/collectors" - to="/docs/collecting-metrics/collectors" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/infinera-coriant-groove" + to="/docs/network-performance-monitoring/device-metrics/integrations/infinera-coriant-groove" [[redirects]] - from="/docs/netdata-agent/collectors" - to="/docs/collecting-metrics/collectors" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/juniper" + to="/docs/network-performance-monitoring/device-metrics/integrations/juniper" [[redirects]] - from="/docs/collecting-metrics/system-metrics/system-statistics" - to="/docs/collecting-metrics/collectors/operating-systems/system-statistics" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/mcafee-web-gateway" + to="/docs/network-performance-monitoring/device-metrics/integrations/mcafee-web-gateway" [[redirects]] - from="/docs/alerts-&-notifications/configure-health-alerts" - to="/docs/alerts-&-notifications/alert-configuration-reference" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/nvidia-cumulus-linux-switch" + to="/docs/network-performance-monitoring/device-metrics/integrations/nvidia-cumulus-linux-switch" -# Corrected generated redirects (2026-10-07): these dead pages went to an unrelated or generic page -# although a page with their content, a native page for the same product, or the page that now -# covers their subject exists. Each rule overrides the generated rule with the same source; a few -# cover another spelling of the same page that had no rule. +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/palo-alto-networks-pan-os" + to="/docs/network-performance-monitoring/device-metrics/integrations/palo-alto-networks-pan-os" [[redirects]] - from="/docs/agent/collectors/apps.plugin" - to="/docs/collecting-metrics/collectors/operating-systems/applications" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/riverbed-interceptor" + to="/docs/network-performance-monitoring/device-metrics/integrations/riverbed-interceptor" [[redirects]] - from="/docs/agent/collectors/freebsd.plugin" - to="/docs/collecting-metrics/collectors/operating-systems" + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/zyxel-switch" + to="/docs/network-performance-monitoring/device-metrics/integrations/zyxel-switch" [[redirects]] - from="/docs/agent/collectors/python.d.plugin/changefinder" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/licensing-monitoring/integrations/blue-coat-licensing" + to="/docs/network-performance-monitoring/licensing-monitoring/integrations/blue-coat-licensing" [[redirects]] - from="/docs/agent/collectors/python.d.plugin/zscores" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/network-flows/enrichment-methods/gcp-ip-ranges" + to="/docs/network-performance-monitoring/network-flows/enrichment-methods/gcp-ip-ranges" [[redirects]] - from="/docs/agent/netdata-for-iot" - to="/docs/edge-device-monitoring" + from="/docs/agent/network-performance-monitoring/network-flows/enrichment-methods/ip2location-lite-ip-country" + to="/docs/network-performance-monitoring/network-flows/enrichment-methods/ip2location-lite-ip-country" [[redirects]] - from="/docs/agent/packaging/installer/methods/packages" - to="/docs/netdata-agent/installation/linux/native-linux-distribution-packages" + from="/docs/agent/network-performance-monitoring/network-flows/enrichment-methods/ipip-country-database" + to="/docs/network-performance-monitoring/network-flows/enrichment-methods/ipip-country-database" [[redirects]] - from="/docs/agent/streaming" - to="/docs/netdata-parents/parent-child-configuration-reference" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/2wcom-gmbh-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/2wcom-gmbh-snmp-traps" [[redirects]] - from="/docs/collect/application-metrics" - to="/docs/welcome-to-netdata/monitor-anything" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/a10-networks-previously-raksha-networks-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/a10-networks-previously-raksha-networks-inc-snmp-traps" [[redirects]] - from="/docs/collecting-metrics/databases/sql-database-agnostic" - to="/docs/collecting-metrics/collectors/databases/sql-databases-generic" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/accuenergy-canada-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/accuenergy-canada-inc-snmp-traps" [[redirects]] - from="/docs/collecting-metrics/other/python.d-changefinder" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/aol-netscape-communications-corp-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/aol-netscape-communications-corp-snmp-traps" [[redirects]] - from="/docs/collecting-metrics/other/python.d-zscores" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/arbor-networks-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/arbor-networks-snmp-traps" [[redirects]] - from="/docs/collecting-metrics/storage%20-mount-points-and-filesystems/dell-emc-isilon-cluster" - to="/docs/network-performance-monitoring/device-metrics/integrations/isilon" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/askey-computer-corp-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/askey-computer-corp-snmp-traps" [[redirects]] - from="/docs/dashboards-and-charts/tabs/top" - to="/docs/dashboards-and-charts/tabs/live" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/atlas-computer-equipment-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/atlas-computer-equipment-inc-snmp-traps" [[redirects]] - from="/docs/data-collection/application-metrics" - to="/docs/welcome-to-netdata/monitor-anything" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/avaya-communication-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/avaya-communication-snmp-traps" [[redirects]] - from="/docs/data-collection/authentication-and-authorization/openldap-community" - to="/docs/collecting-metrics/collectors/applications/openldap" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/bekarts-international-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/bekarts-international-snmp-traps" [[redirects]] - from="/docs/data-collection/cloud-provider-managed/aws-ecs" - to="/docs/collecting-metrics/collectors/containers-and-vms/aws-ecs-containers" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/broadband-access-systems-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/broadband-access-systems-inc-snmp-traps" [[redirects]] - from="/docs/data-collection/cloud-provider-managed/aws-instance-health" - to="/docs/collecting-metrics/collectors/cloud-and-devops/amazon-cloudwatch" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/brocade-communications-systems-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/brocade-communications-systems-inc-snmp-traps" [[redirects]] - from="/docs/data-collection/cloud-provider-managed/aws-s3-buckets" - to="/docs/collecting-metrics/collectors/cloud-and-devops/amazon-cloudwatch" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/cable-television-laboratories-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/cable-television-laboratories-inc-snmp-traps" [[redirects]] - from="/docs/data-collection/cloud-provider-managed/aws-sqs" - to="/docs/collecting-metrics/collectors/cloud-and-devops/amazon-cloudwatch" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/chloride-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/chloride-snmp-traps" [[redirects]] - from="/docs/data-collection/cloud-provider-managed/azure-application" - to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-monitor" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/chromatis-networks-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/chromatis-networks-inc-snmp-traps" [[redirects]] - from="/docs/data-collection/cloud-provider-managed/azure-elastic-pool-sql" - to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-sql-elastic-pool" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/clickarrray-networks-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/clickarrray-networks-inc-snmp-traps" [[redirects]] - from="/docs/data-collection/cloud-provider-managed/azure-resources" - to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-monitor" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/compaq-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/compaq-snmp-traps" [[redirects]] - from="/docs/data-collection/cloud-provider-managed/azure-service-bus" - to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-service-bus-namespace" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/coriolis-networks-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/coriolis-networks-snmp-traps" [[redirects]] - from="/docs/data-collection/cloud-provider-managed/azure-sql" - to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-sql-database" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/crossbeam-systems-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/crossbeam-systems-inc-snmp-traps" [[redirects]] - from="/docs/data-collection/databases/memcached-community" - to="/docs/collecting-metrics/collectors/databases/memcached" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/cube-optics-ag-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/cube-optics-ag-snmp-traps" [[redirects]] - from="/docs/data-collection/databases/oracle-db-community" - to="/docs/collecting-metrics/collectors/databases/oracle-db" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/cumulus-networks-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/cumulus-networks-inc-snmp-traps" [[redirects]] - from="/docs/data-collection/databases/sql-database-agnostic" - to="/docs/collecting-metrics/collectors/databases/sql-databases-generic" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/eaton-corporation-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/eaton-corporation-snmp-traps" [[redirects]] - from="/docs/data-collection/generic-data-collection/generic-command-line-output" - to="/docs/collecting-metrics/collectors/synthetic-testing/nagios-plugins-and-custom-scripts" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/engenio-information-technologies-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/engenio-information-technologies-inc-snmp-traps" [[redirects]] - from="/docs/data-collection/generic-data-collection/shell-command" - to="/docs/collecting-metrics/collectors/synthetic-testing/nagios-plugins-and-custom-scripts" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/fujitsu-germany-gmbh-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/fujitsu-germany-gmbh-snmp-traps" [[redirects]] - from="/docs/data-collection/hardware-devices-and-sensors/ipmi-by-soundcloud" - to="/docs/collecting-metrics/collectors/hardware-and-sensors/intelligent-platform-management-interface-ipmi" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/gigamon-systems-llc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/gigamon-systems-llc-snmp-traps" [[redirects]] - from="/docs/data-collection/hardware-devices-and-sensors/nvml" - to="/docs/collecting-metrics/collectors/hardware-and-sensors/nvidia-gpu" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/h3c-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/h3c-snmp-traps" [[redirects]] - from="/docs/data-collection/monitor-anything/Any%20Application%20-%20Generic%20Collectors/Anomalies" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/hewlett-packard-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/hewlett-packard-snmp-traps" [[redirects]] - from="/docs/data-collection/monitor-anything/Netdata/zscores" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/image-project-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/image-project-inc-snmp-traps" [[redirects]] - from="/docs/data-collection/monitor-anything/Qos/changefinder" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/kcp-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/kcp-inc-snmp-traps" [[redirects]] - from="/docs/data-collection/monitor-anything/System%20Metrics/Application-monitoring" - to="/docs/collecting-metrics/collectors/operating-systems/applications" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/kentix-gmbh-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/kentix-gmbh-snmp-traps" [[redirects]] - from="/docs/data-collection/monitor-anything/System%20Metrics/FreeBSD-system-metrics-freebsd.plugin" - to="/docs/collecting-metrics/collectors/operating-systems" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/lancast-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/lancast-inc-snmp-traps" [[redirects]] - from="/docs/data-collection/monitor-anything/System%20Metrics/OS-provided-metrics-proc.plugin" - to="/docs/collecting-metrics" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/latitude-communications-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/latitude-communications-snmp-traps" [[redirects]] - from="/docs/data-collection/monitor-anything/Virtualized%20Environments/Containers-and-VMs-cgroups" - to="/docs/collecting-metrics/containers-and-cgroups" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/lenovo-enterprise-business-group-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/lenovo-enterprise-business-group-snmp-traps" [[redirects]] - from="/docs/data-collection/monitor-anything/any-application---generic-collectors/anomalies" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/maipu-electric-industrial-co-ltd-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/maipu-electric-industrial-co-ltd-snmp-traps" [[redirects]] - from="/docs/data-collection/monitor-anything/netdata/zscores" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/mellanox-technologies-ltd-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/mellanox-technologies-ltd-snmp-traps" [[redirects]] - from="/docs/data-collection/monitor-anything/qos/changefinder" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/mission-critical-software-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/mission-critical-software-inc-snmp-traps" [[redirects]] - from="/docs/data-collection/monitor-anything/system-metrics/application-monitoring" - to="/docs/collecting-metrics/collectors/operating-systems/applications" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/national-standardization-committee-of-radio-television-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/national-standardization-committee-of-radio-television-snmp-traps" [[redirects]] - from="/docs/data-collection/monitor-anything/system-metrics/freebsd-system-metrics-freebsd.plugin" - to="/docs/collecting-metrics/collectors/operating-systems" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/netline-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/netline-snmp-traps" [[redirects]] - from="/docs/data-collection/monitor-anything/system-metrics/os-provided-metrics-proc.plugin" - to="/docs/collecting-metrics" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/netscaler-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/netscaler-snmp-traps" [[redirects]] - from="/docs/data-collection/monitor-anything/virtualized-environments/containers-and-vms-cgroups" - to="/docs/collecting-metrics/containers-and-cgroups" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/network-appliance-corporation-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/network-appliance-corporation-snmp-traps" [[redirects]] - from="/docs/data-collection/netdata-specific/change-finder" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/nice-systems-ltd-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/nice-systems-ltd-snmp-traps" [[redirects]] - from="/docs/data-collection/netdata-specific/zscores" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/nokia-formerly-infinera-corp-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/nokia-formerly-infinera-corp-snmp-traps" [[redirects]] - from="/docs/data-collection/networking-stack-and-network-interfaces/a10-acos-network-devices" - to="/docs/network-performance-monitoring/device-metrics/integrations/a10-thunder" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/one4net-gmbh-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/one4net-gmbh-snmp-traps" [[redirects]] - from="/docs/data-collection/networking-stack-and-network-interfaces/aruba-devices" - to="/docs/network-performance-monitoring/device-metrics/integrations/aruba" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/oracle-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/oracle-snmp-traps" [[redirects]] - from="/docs/data-collection/networking-stack-and-network-interfaces/checkpoint-device" - to="/docs/network-performance-monitoring/device-metrics/integrations/checkpoint" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/pacific-broadbank-networks-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/pacific-broadbank-networks-snmp-traps" [[redirects]] - from="/docs/data-collection/networking-stack-and-network-interfaces/fortigate-firewall" - to="/docs/network-performance-monitoring/device-metrics/integrations/fortinet-fortigate" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/padtec-optical-components-and-systems-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/padtec-optical-components-and-systems-snmp-traps" [[redirects]] - from="/docs/data-collection/networking-stack-and-network-interfaces/meraki-dashboard" - to="/docs/network-performance-monitoring/device-metrics/integrations/cisco-meraki-cloud-controller" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/pan-dacom-direkt-gmbh-formerly-pan-dacom-networking-ag-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/pan-dacom-direkt-gmbh-formerly-pan-dacom-networking-ag-snmp-traps" [[redirects]] - from="/docs/data-collection/networking-stack-and-network-interfaces/mikrotik-devices" - to="/docs/network-performance-monitoring/device-metrics/integrations/mikrotik-router" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/qlogic-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/qlogic-snmp-traps" [[redirects]] - from="/docs/data-collection/networking-stack-and-network-interfaces/mikrotik-routeros-devices" - to="/docs/network-performance-monitoring/device-metrics/integrations/mikrotik-router" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/qtech-llc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/qtech-llc-snmp-traps" [[redirects]] - from="/docs/data-collection/other/python.d-changefinder" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/qualix-group-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/qualix-group-inc-snmp-traps" [[redirects]] - from="/docs/data-collection/other/python.d-zscores" - to="/docs/netdata-ai/anomaly-detection" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/red-lion-controls-n-tron-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/red-lion-controls-n-tron-snmp-traps" [[redirects]] - from="/docs/data-collection/security-systems/ssl-certificate" - to="/docs/collecting-metrics/collectors/synthetic-testing/x.509-certificate" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/richard-hirschmann-gmbh-co-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/richard-hirschmann-gmbh-co-snmp-traps" [[redirects]] - from="/docs/data-collection/storage%20-mount-points-and-filesystems/lagerist-disk-latency" - to="/docs/collecting-metrics/collectors/storage-and-filesystems/ebpf-disk" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/riverbed-technology-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/riverbed-technology-inc-snmp-traps" [[redirects]] - from="/docs/data-collection/storage,-mount-points-and-filesystems/dell-emc-isilon-cluster" - to="/docs/network-performance-monitoring/device-metrics/integrations/isilon" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/rogue-engineering-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/rogue-engineering-inc-snmp-traps" [[redirects]] - from="/docs/data-collection/storage,-mount-points-and-filesystems/lagerist-disk-latency" - to="/docs/collecting-metrics/collectors/storage-and-filesystems/ebpf-disk" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/schechtertech-llc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/schechtertech-llc-snmp-traps" [[redirects]] - from="/docs/data-collection/system-metrics" - to="/docs/collecting-metrics" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/siemens-ag-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/siemens-ag-snmp-traps" [[redirects]] - from="/docs/data-collection/windows-systems/hyperv" - to="/docs/collecting-metrics/collectors/containers-and-vms/hyper-v" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/trango-networks-llc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/trango-networks-llc-snmp-traps" [[redirects]] - from="/docs/deployment-in-production/streaming-and-replication" - to="/docs/netdata-parents" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/tylink-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/tylink-snmp-traps" [[redirects]] - from="/docs/deployment-in-production/streaming-and-replication/streaming-configuration-reference" - to="/docs/netdata-parents/parent-child-configuration-reference" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/vertiv-formerly-emerson-energy-systems-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/vertiv-formerly-emerson-energy-systems-snmp-traps" [[redirects]] - from="/docs/machine-learning-and-anomaly-detection/run-time-troubleshooting-with-functions" - to="/docs/dashboards-and-charts/tabs/live" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/videoserver-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/videoserver-inc-snmp-traps" [[redirects]] - from="/docs/machine-learning-and-assisted-troubleshooting/run-time-troubleshooting-with-functions" - to="/docs/dashboards-and-charts/tabs/live" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/viptela-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/viptela-inc-snmp-traps" [[redirects]] - from="/docs/metrics-storage-management/enable-streaming" - to="/docs/netdata-parents" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/watchguard-technologies-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/watchguard-technologies-inc-snmp-traps" [[redirects]] - from="/docs/metrics-storage-management/how-streaming-works" - to="/docs/netdata-parents" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/xedia-corporation-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/xedia-corporation-snmp-traps" [[redirects]] - from="/docs/metrics-storage-management/reference-streaming" - to="/docs/netdata-parents/parent-child-configuration-reference" + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/zenitel-norway-as-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/zenitel-norway-as-snmp-traps" [[redirects]] - from="/docs/metrics-streaming-and-replication/streaming-configuration-reference" - to="/docs/netdata-parents/parent-child-configuration-reference" + from="/docs/agent/opentelemetry" + to="/docs/opentelemetry" [[redirects]] - from="/docs/metrics-streaming-and-replication/understanding-how-streaming-works" - to="/docs/netdata-parents" + from="/docs/agent/opentelemetry/syslog-from-network-devices/integrations/syslog-from-network-devices" + to="/docs/opentelemetry/syslog-from-network-devices/integrations/syslog-from-network-devices" [[redirects]] - from="/docs/miscellaneous/monitor-pi-hole-and-a-raspberry-pi-with-netdata" - to="/docs/collecting-metrics/collectors/networking/pi-hole" + from="/docs/agent/security-and-privacy-design" + to="/docs/security-and-privacy-design" [[redirects]] - from="/docs/ml-and-troubleshooting/run-time-troubleshooting-with-functions" - to="/docs/dashboards-and-charts/tabs/live" + from="/docs/agent/welcome-to-netdata" + to="/docs/welcome-to-netdata" [[redirects]] - from="/docs/streaming/streaming-configuration-reference" - to="/docs/netdata-parents/parent-child-configuration-reference" + from="/docs/agent/welcome-to-netdata/monitor-anything" + to="/docs/welcome-to-netdata/monitor-anything" [[redirects]] - from="/docs/troubleshooting-and-machine-learning/run-time-troubleshooting-with-functions" - to="/docs/dashboards-and-charts/tabs/live" + from="/docs/agent/welcome-to-netdata/reporting" + to="/docs/welcome-to-netdata/reporting" + +# Favicon (2026-12-01): forum and chat link previews request these icon paths. [[redirects]] - from="/guides/monitor/pi-hole-raspberry-pi" - to="/docs/collecting-metrics/collectors/networking/pi-hole" + from="/favicon.ico" + to="/img/favicon-32x32.png" [[redirects]] - from="/streaming" - to="/docs/netdata-parents" + from="/img/favicon.ico" + to="/img/favicon-32x32.png" # section: static << END # section: dynamic << START @@ -13898,10 +15460,6 @@ from="/docs/collecting-metrics/collectors/synthetic-testing/nagios-plugins" to="/docs/collecting-metrics/collectors/synthetic-testing/nagios-plugins-and-custom-scripts" -[[redirects]] - from="/docs/snmp-traps/snmp-trap-profile-format" - to="/docs/network-performance-monitoring/snmp-traps/snmp-trap-profile-format" - [[redirects]] from="/docs/collecting-metrics/snmp-profile-format" to="/docs/network-performance-monitoring/device-metrics/configuration/snmp-profile-format" diff --git a/scripts/link-integrity/check.mjs b/scripts/link-integrity/check.mjs index d51a848da7..ac95b980d5 100644 --- a/scripts/link-integrity/check.mjs +++ b/scripts/link-integrity/check.mjs @@ -205,9 +205,10 @@ export function decodeFragment(hash) { } } -export function parseRedirectSources(text, siteOrigin) { +// Same-site redirect rules in file order, because Netlify applies the first match. +export function parseRedirectRules(text, siteOrigin) { const site = new URL(siteOrigin); - const sources = []; + const rules = []; for (const block of text.matchAll(/(?:^|\n)\s*\[\[redirects\]\]([\s\S]*?)(?=(?:\n\s*\[\[)|$)/g)) { const match = block[1].match(/(?:^|\n)\s*from\s*=\s*"([^"]+)"/); if (!match) continue; @@ -218,35 +219,122 @@ export function parseRedirectSources(text, siteOrigin) { source = absolute.pathname; } if (!source.startsWith('/') || /[?#]/.test(source)) continue; - sources.push(normalizeUrlPath(source)); + const target = block[1].match(/(?:^|\n)\s*to\s*=\s*"([^"]+)"/); + rules.push({from: normalizeUrlPath(source), to: target ? target[1] : null}); } - return [...new Set(sources)].sort(); + return rules; +} + +export function parseRedirectSources(text, siteOrigin) { + return [...new Set(parseRedirectRules(text, siteOrigin).map((rule) => rule.from))].sort(); } -function redirectPatternRegex(pattern) { +function compileRedirectPattern(pattern) { + const names = []; let expression = '^'; for (let index = 0; index < pattern.length; index += 1) { const character = pattern[index]; if (character === '*') { - expression += '.*'; + names.push('splat'); + expression += '(.*)'; continue; } if (character === ':') { let end = index + 1; while (end < pattern.length && /[a-z0-9_]/i.test(pattern[end])) end += 1; if (end > index + 1) { - expression += '[^/]+'; + names.push(pattern.slice(index + 1, end)); + expression += '([^/]+)'; index = end - 1; continue; } } expression += character.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); } - return new RegExp(`${expression}$`); + return {regex: new RegExp(`${expression}$`), names, exact: names.length === 0, splat: names.includes('splat')}; } export function redirectMatches(pathname, patterns) { - return patterns.some((pattern) => redirectPatternRegex(pattern).test(pathname)); + return patterns.some((pattern) => compileRedirectPattern(pattern).regex.test(pathname)); +} + +function withoutTrailingSlash(pathname) { + return pathname.length > 1 && pathname.endsWith('/') ? pathname.slice(0, -1) : pathname; +} + +// Netlify normalizes a trailing slash before matching. Exact and parameter rules therefore match +// either spelling; a splat already captures whatever follows its prefix. +function matchCompiledRule(compiled, pathname) { + if (compiled.exact) { + return withoutTrailingSlash(compiled.from) === withoutTrailingSlash(pathname) ? {} : null; + } + if (!compiled.splat && !compiled.slashless) { + compiled.slashless = compileRedirectPattern(withoutTrailingSlash(compiled.from)).regex; + } + const match = compiled.splat + ? compiled.regex.exec(pathname) + : compiled.slashless.exec(withoutTrailingSlash(pathname)); + if (!match) return null; + return Object.fromEntries(compiled.names.map((name, position) => [name, match[position + 1]])); +} + +const compiledRuleCache = new WeakMap(); + +function compiledRules(rules) { + let compiled = compiledRuleCache.get(rules); + if (!compiled) { + compiled = rules.map((rule) => ({...rule, ...compileRedirectPattern(rule.from)})); + compiledRuleCache.set(rules, compiled); + } + return compiled; +} + +// Captures are already-decoded path data. They are substituted into the decoded destination path +// and never re-parsed as a URL, so an encoded "?" or "#" in a link stays part of its path. +function redirectDestination(template, captures, site) { + const parts = template.match(/^(?:https?:\/\/([^/?#]+))?([^?#]*)(?:\?[^#]*)?(?:#(.*))?$/i); + if (!parts) throw new LinkIntegrityError(`redirect destination is malformed: ${template}`); + const [, host, pathTemplate, hashTemplate] = parts; + if (host && !sameHostname(new URL(`https://${host}`).hostname, site.hostname)) { + return {external: template}; + } + const pathOnly = pathTemplate || '/'; + if (!pathOnly.startsWith('/')) throw new LinkIntegrityError(`redirect destination is not a path: ${template}`); + // Resolve "." and ".." in the rule's own path first; captures come from already-normalized links. + const pathname = normalizeUrlPath(new URL(pathOnly, site).pathname).replace(/:([a-z0-9_]+)/gi, (whole, name) => + Object.hasOwn(captures, name) ? captures[name] : whole); + return {pathname, fragment: hashTemplate === undefined ? null : decodeFragment(`#${hashTemplate}`)}; +} + +const MAX_SAME_SITE_REDIRECTS = 10; + +// Follows same-site redirects to the page a visitor would land on. A redirect source is not proof +// that a link works: its destination must render too. +export function resolveSameSitePath(pathname, fragment, {site, htmlRoutes, files, rules}) { + const ordered = compiledRules(rules); + const seen = new Set(); + let current = pathname; + let currentFragment = fragment; + for (let hops = 0; ; hops += 1) { + const html = htmlRoutes.get(current); + if (html || files.has(current)) return {pathname: current, fragment: currentFragment, html, hops}; + let destination = null; + for (const rule of ordered) { + const captures = matchCompiledRule(rule, current); + if (!captures) continue; + if (rule.to === null) return {error: `redirect from ${rule.from} has no destination`, pathname: current, hops}; + destination = redirectDestination(rule.to, captures, site); + break; + } + if (destination === null) return {missing: true, pathname: current, hops}; + if (destination.external) return {external: destination.external, hops: hops + 1}; + if (seen.has(current) || hops >= MAX_SAME_SITE_REDIRECTS) { + return {error: `redirect cycle or more than ${MAX_SAME_SITE_REDIRECTS} hops`, pathname: current, hops}; + } + seen.add(current); + current = destination.pathname; + if (destination.fragment !== null) currentFragment = destination.fragment; + } } export async function inventoryRenderedSite({buildDirectory, policy, redirectsFilename}) { @@ -365,9 +453,10 @@ export async function inventoryRenderedSite({buildDirectory, policy, redirectsFi } const fileRoutes = files.map((filename) => slashPath(path.relative(buildRoot, filename))).sort(); - const redirects = redirectsFilename - ? parseRedirectSources(await fsp.readFile(redirectsFilename, 'utf8'), site.origin) + const redirectRules = redirectsFilename + ? parseRedirectRules(await fsp.readFile(redirectsFilename, 'utf8'), site.origin) : []; + const redirects = [...new Set(redirectRules.map((rule) => rule.from))].sort(); return { schema: INVENTORY_SCHEMA, site_origin: site.origin, @@ -376,6 +465,7 @@ export async function inventoryRenderedSite({buildDirectory, policy, redirectsFi file_routes: fileRoutes, html_pages: htmlPages.sort((left, right) => left.source_route.localeCompare(right.source_route, 'en')), redirect_sources: redirects, + redirect_rules: redirectRules, links: [...links.values()].map((item) => ({...item, sources: item.sources.sort()})) .sort((left, right) => left.url.localeCompare(right.url, 'en')), invalid_links: invalidLinks.sort((left, right) => @@ -423,6 +513,10 @@ export function checkSameSite(inventoryInput) { const site = new URL(inventory.site_origin); const files = new Set(inventory.file_routes); const htmlRoutes = htmlRouteMap(inventory); + // Older inventories lack the ordered rules; resolving redirects needs them, other checks do not. + if (!Array.isArray(inventory.redirect_rules)) { + throw new LinkIntegrityError('inventory has no redirect_rules; rebuild it with this checker'); + } const findings = inventory.invalid_links .filter((item) => item.scope === 'same-site') .map((item) => ({kind: 'invalid-link', ...item})); @@ -449,14 +543,29 @@ export function checkSameSite(inventoryInput) { findings.push({kind: 'invalid-target', target: link.url, sources: link.sources, error: error.message}); continue; } - const html = htmlRoutes.get(pathname); - const exists = Boolean(html) || files.has(pathname) || redirectMatches(pathname, inventory.redirect_sources); - if (!exists) { - findings.push({kind: 'missing-path', target: link.url, pathname, sources: link.sources}); + let resolved; + try { + resolved = resolveSameSitePath(pathname, fragment, {site, htmlRoutes, files, rules: inventory.redirect_rules}); + } catch (error) { + findings.push({kind: 'invalid-target', target: link.url, sources: link.sources, error: error.message}); + continue; + } + const redirected = resolved.hops > 0 ? {resolved_path: resolved.pathname} : {}; + if (resolved.error) { + findings.push({kind: 'invalid-target', target: link.url, pathname, ...redirected, error: resolved.error, + sources: link.sources}); + continue; + } + if (resolved.external) continue; + if (resolved.missing) { + findings.push({kind: 'missing-path', target: link.url, pathname, ...redirected, sources: link.sources}); continue; } - if (fragment && !fragment.startsWith(':~:text=') && html && !html.fragments.has(fragment)) { - findings.push({kind: 'missing-fragment', target: link.url, pathname, fragment, sources: link.sources}); + const finalFragment = resolved.fragment; + if (finalFragment && !finalFragment.startsWith(':~:text=') && resolved.html && + !resolved.html.fragments.has(finalFragment)) { + findings.push({kind: 'missing-fragment', target: link.url, pathname, ...redirected, fragment: finalFragment, + sources: link.sources}); } } return {checked, findings}; diff --git a/scripts/verify-redirect-graph.js b/scripts/verify-redirect-graph.js index 75d1a8f453..48707e91f2 100644 --- a/scripts/verify-redirect-graph.js +++ b/scripts/verify-redirect-graph.js @@ -240,22 +240,31 @@ function verifyRedirectGraph({netlifyPath, staticPath, publishDir, policyPath, p } } - const flows = policy.network_flows; - if (flows.historical_suffixes.length !== 42 || new Set(flows.historical_suffixes).size !== 42) { - throw new Error('Network Flows historical inventory must contain exactly 42 unique routes'); - } - for (const suffix of flows.historical_suffixes) { - const source = flows.source_prefix + suffix; - const expected = flows.target_prefix + suffix; - const match = matchRedirect(source); - if (!match || normalizeRoute(match.target) !== normalizeRoute(expected) || !routes.has(normalizeRoute(expected))) { - throw new Error(`Historical Network Flows route is not terminal: ${source} -> ${expected}`); + // Each relocated section pins its complete pre-move inventory, so a wildcard regression cannot hide a lost page. + const sectionMoves = [ + {label: 'Network Flows', move: policy.network_flows, size: 42}, + {label: 'SNMP Traps', move: policy.snmp_traps, size: 18}, + ]; + let historicalRoutes = 0; + for (const {label, move, size} of sectionMoves) { + const identities = new Set(move.historical_suffixes.map((suffix) => normalizeRoute(move.source_prefix + suffix))); + if (move.historical_suffixes.length !== size || identities.size !== size) { + throw new Error(`${label} historical inventory must contain exactly ${size} unique routes`); + } + for (const suffix of move.historical_suffixes) { + const source = move.source_prefix + suffix; + const expected = move.target_prefix + suffix; + const match = matchRedirect(source); + if (!match || normalizeRoute(match.target) !== normalizeRoute(expected) || !routes.has(normalizeRoute(expected))) { + throw new Error(`Historical ${label} route is not terminal: ${source} -> ${expected}`); + } } + const adjacent = `${move.source_prefix}-archive/example`; + if (matchRedirect(adjacent)) throw new Error(`${label} wildcard matches adjacent prefix: ${adjacent}`); + historicalRoutes += size; } - const adjacent = `${flows.source_prefix}-archive/example`; - if (matchRedirect(adjacent)) throw new Error(`Network Flows wildcard matches adjacent prefix: ${adjacent}`); - return {rules: rules.length, routes: routes.size, historicalRoutes: flows.historical_suffixes.length}; + return {rules: rules.length, routes: routes.size, historicalRoutes}; } if (require.main === module) { @@ -266,7 +275,7 @@ if (require.main === module) { publishDir: path.resolve(process.argv[4] || 'build'), policyPath: path.resolve(process.argv[5] || 'config/redirect-policy.json'), }); - console.log(`Verified ${result.rules} redirects against ${result.routes} published routes and ${result.historicalRoutes} historical Network Flows routes.`); + console.log(`Verified ${result.rules} redirects against ${result.routes} published routes and ${result.historicalRoutes} historical routes of relocated sections.`); } catch (error) { console.error(`Redirect graph verification failed: ${error.message}`); process.exitCode = 1; diff --git a/src/seo/redirectGraph.test.js b/src/seo/redirectGraph.test.js index 6b40576578..49a754937b 100644 --- a/src/seo/redirectGraph.test.js +++ b/src/seo/redirectGraph.test.js @@ -56,6 +56,27 @@ async function mutatedNetlify(transform) { return filename; } +const historicalSnmpTrapSuffixes = [ + '', + '/alerts', + '/anti-patterns', + '/configuration', + '/enrichment', + '/field-reference', + '/forwarding-to-siem', + '/installation', + '/investigation-playbooks', + '/journal-and-querying', + '/metrics', + '/quick-start', + '/sizing-and-capacity-planning', + '/snmp-trap-profile-format', + '/trap-profiles', + '/troubleshooting', + '/usage-and-output', + '/validation-and-data-quality', +]; + function appendRule(text, from, to) { return text.replace( '# section: dynamic << END', @@ -69,7 +90,7 @@ afterEach(async () => { describe('Netlify redirect graph gate', () => { it('verifies the complete current graph', () => { - expect(verifyRedirectGraph(options())).toMatchObject({historicalRoutes: 42}); + expect(verifyRedirectGraph(options())).toMatchObject({historicalRoutes: 60}); }); it('enumerates all 42 routes moved by the Network Flows relocation', async () => { @@ -77,6 +98,11 @@ describe('Netlify redirect graph gate', () => { expect(policy.network_flows.historical_suffixes).toEqual(historicalNetworkFlowSuffixes); }); + it('enumerates all 18 routes moved by the SNMP Traps relocation', async () => { + const policy = JSON.parse(await fs.readFile(path.join(root, 'config/redirect-policy.json'), 'utf8')); + expect(policy.snmp_traps.historical_suffixes).toEqual(historicalSnmpTrapSuffixes); + }); + it('pins every archived request previously handled by the retired wildcard classes', async () => { const policy = JSON.parse(await fs.readFile(path.join(root, 'config/redirect-policy.json'), 'utf8')); expect(policy.archived_wildcard_requests).toHaveLength(6); @@ -98,6 +124,36 @@ describe('Netlify redirect graph gate', () => { expect(ruleMatches({from: '/docs/network-flows/*'}, '/docs/network-flows-archive/example')).toBe(false); }); + it('sends both escaped spellings of the auth integrations pages to the same decoded page', async () => { + const rules = parseRedirects(await fs.readFile(path.join(root, 'netlify.toml'), 'utf8')); + const decoded = '/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations'; + const escaped = [ + '/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations', + '/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations', + ]; + for (const target of [decoded, ...['/okta-sso', '/scim', '/oidc'].map((child) => decoded + child)]) { + expect(publishedRoutes.has(target), `${target} must render`).toBe(true); + expect(firstMatch(rules, target), `${target} must not redirect again`).toBeNull(); + } + for (const source of escaped) { + expect(firstMatch(rules, source)).toMatchObject({target: decoded}); + for (const child of ['/okta-sso', '/scim', '/oidc']) { + expect(firstMatch(rules, source + child)).toMatchObject({target: decoded + child}); + } + } + }); + + it('redirects every SNMP Traps page to its relocated route through an exact root and a bounded wildcard', async () => { + const rules = parseRedirects(await fs.readFile(path.join(root, 'netlify.toml'), 'utf8')); + expect(firstMatch(rules, '/docs/snmp-traps')).toMatchObject({ + target: '/docs/network-performance-monitoring/snmp-traps', + }); + expect(firstMatch(rules, '/docs/snmp-traps/quick-start')).toMatchObject({ + target: '/docs/network-performance-monitoring/snmp-traps/quick-start', + }); + expect(firstMatch(rules, '/docs/snmp-traps-archive/example')).toBeNull(); + }); + it('permanently redirects the obsolete Ask Netdata route in one hop', async () => { const rules = parseRedirects(await fs.readFile(path.join(root, 'netlify.toml'), 'utf8')); expect(firstMatch(rules, '/docs/ask-netdata')).toMatchObject({target: '/docs/ask-nedi'}); @@ -142,7 +198,7 @@ describe('Netlify redirect graph gate', () => { ['source fragment', '/test/fragment#part', '/docs/getting-started', /Malformed redirect source/], ['target query', '/test/target-query', '/docs/getting-started?value=1', /Malformed redirect target/], ['target fragment', '/test/target-fragment', '/docs/getting-started#part', /Malformed redirect target/], - ['active wildcard source', '/docs/netdata-ai/investigations/*', '/docs/getting-started', /Wildcard redirect source shadows rendered route/], + ['active wildcard source', '/docs/netdata-ai/insights/*', '/docs/getting-started', /Wildcard redirect source shadows rendered route/], ['wildcard to exact chain', '/test/wild/*', '/docs/rest-api/netdata-badges', /chain or cycle/], ['wildcard self-cycle', '/test/self/*', '/test/self/:splat', /chain or cycle/], ])('fails closed on a %s mutation', async (_name, from, to, message) => { @@ -150,6 +206,17 @@ describe('Netlify redirect graph gate', () => { expect(() => verifyRedirectGraph(options(filename))).toThrow(message); }); + it('rejects a section inventory whose routes differ only by a trailing slash', async () => { + const directory = await fs.mkdtemp(path.join(os.tmpdir(), 'learn-redirect-policy-')); + temporaryDirectories.push(directory); + const policy = JSON.parse(await fs.readFile(path.join(root, 'config/redirect-policy.json'), 'utf8')); + policy.snmp_traps.historical_suffixes = policy.snmp_traps.historical_suffixes + .map((suffix) => (suffix === '/alerts' ? '/quick-start/' : suffix)); + const policyPath = path.join(directory, 'redirect-policy.json'); + await fs.writeFile(policyPath, JSON.stringify(policy)); + expect(() => verifyRedirectGraph({...options(), policyPath})).toThrow(/exactly 18 unique routes/); + }); + it('rejects an earlier wildcard that shadows a later exact rule', async () => { const filename = await mutatedNetlify((text) => text.replace( '# section: dynamic << START', diff --git a/src/seo/renderedLinks.test.js b/src/seo/renderedLinks.test.js index 62cc86a4e4..5072110b4d 100644 --- a/src/seo/renderedLinks.test.js +++ b/src/seo/renderedLinks.test.js @@ -89,8 +89,11 @@ describe('rendered redirect-source link verifier', () => { expect([...redirectSourceRules(netlifyToml).terminalWildcards].sort()).toEqual([ '/docs/agent/netdata-cloud/', '/docs/alerts-&-notifications/', + '/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations/', '/docs/netdata-cloud/authentication-&-authorization/', + '/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations/', '/docs/network-flows/', + '/docs/snmp-traps/', ]); }); diff --git a/static.toml b/static.toml index bddd14cb15..896a995642 100644 --- a/static.toml +++ b/static.toml @@ -1077,6 +1077,10 @@ from="/docs/snmp-traps" to="/docs/network-performance-monitoring/snmp-traps" +[[redirects]] + from="/docs/snmp-traps/*" + to="/docs/network-performance-monitoring/snmp-traps/:splat" + [[redirects]] from="/docs/top-monitoring-netdata-functions" to="/docs/live-view" @@ -1321,6 +1325,12 @@ from="/docs/alerts-&-notifications" to="/docs/alerts-&-notifications" +# Exact exception ahead of the escaped wildcard below, so this former page reaches its reference +# in one hop instead of passing through the decoded alias (2026-12-01). +[[redirects]] + from="/docs/alerts-&-notifications/notifications/agent-alert-notifications" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/agent-notifications-reference" + [[redirects]] from="/docs/alerts-&-notifications/*" to="/docs/alerts-&-notifications/:splat" @@ -1341,6 +1351,22 @@ from="/docs/netdata-cloud/authentication-&-authorization" to="/docs/netdata-cloud/authentication-&-authorization" +[[redirects]] + from="/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations" + to="/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations" + +[[redirects]] + from="/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations/*" + to="/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations/:splat" + +[[redirects]] + from="/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations" + to="/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations" + +[[redirects]] + from="/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations/*" + to="/docs/netdata-cloud/authentication-&-authorization/cloud-authentication-&-authorization-integrations/:splat" + [[redirects]] from="/docs/netdata-cloud/authentication-&-authorization/*" to="/docs/netdata-cloud/authentication-&-authorization/:splat" @@ -1733,4 +1759,1540 @@ [[redirects]] from="/streaming" to="/docs/netdata-parents" + +# Broken backlinks, fifth batch (2026-12-01): dead URLs that hold a live backlink, sent to the page +# that covers the subject today or, when none does, to the closest parent section. + +[[redirects]] + from="/contribute/license" + to="/docs/developer-and-contributor-corner/contributing" + +[[redirects]] + from="/docs/%20collecting-metrics/docker-containers" + to="/docs/collecting-metrics/collectors/containers-and-vms/docker-containers" + +[[redirects]] + from="/docs/%20collecting-metrics/monitoring-virtual-machines-and-containers/proxmox-ve" + to="/docs/collecting-metrics/collectors/containers-and-vms/proxmox-ve" + +[[redirects]] + from="/docs/agent/collectors/go.d.plugin/pkg/matcher" + to="/docs/developer-and-contributor-corner/external-plugins/go.d.plugin" + +[[redirects]] + from="/docs/agent/ml-powered-anomaly-detection" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/agent/step-by-step/step-04" + to="/docs/netdata-agent/configuration" + +[[redirects]] + from="/docs/collecting" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/collecting-metrics/virtual-machines-and-hypervisors/proxmox-ve" + to="/docs/collecting-metrics/collectors/containers-and-vms/proxmox-ve" + +[[redirects]] + from="/docs/netdata-agent/configuration/find-anything-about-your-infrastructure/service-discovery" + to="/docs/collecting-metrics/service-discovery" + +# Former Learn pages (2026-12-01): pages that once existed at these paths and that AI assistants and +# crawlers keep requesting, sent to the page that covers the subject today or, when none does, to the +# closest parent section. + +[[redirects]] + from="/docs/agent/backends/aws_kinesis" + to="/docs/exporting-metrics/connectors/aws-kinesis" + +[[redirects]] + from="/docs/agent/backends/mongodb" + to="/docs/exporting-metrics/connectors/mongodb" + +[[redirects]] + from="/docs/agent/backends/timescale" + to="/docs/exporting-metrics/connectors/timescaledb" + +[[redirects]] + from="/docs/agent/collectors/charts.d.plugin/example" + to="/docs/developer-and-contributor-corner/external-plugins/charts.d.plugin" + +[[redirects]] + from="/docs/agent/collectors/checks.plugin" + to="/docs/developer-and-contributor-corner" + +[[redirects]] + from="/docs/agent/collectors/go.d.plugin/agent" + to="/docs/developer-and-contributor-corner/external-plugins/go.d.plugin" + +[[redirects]] + from="/docs/agent/collectors/go.d.plugin/modules/example" + to="/docs/developer-and-contributor-corner/external-plugins/go.d.plugin/how-to-write-a-netdata-collector-in-go" + +[[redirects]] + from="/docs/agent/collectors/go.d.plugin/pkg" + to="/docs/developer-and-contributor-corner/external-plugins/go.d.plugin" + +[[redirects]] + from="/docs/agent/collectors/go.d.plugin/pkg/iprange" + to="/docs/developer-and-contributor-corner/external-plugins/go.d.plugin" + +[[redirects]] + from="/docs/agent/collectors/go.d.plugin/pkg/stm" + to="/docs/developer-and-contributor-corner/external-plugins/go.d.plugin" + +[[redirects]] + from="/docs/agent/collectors/node.d.plugin/fronius" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/agent/collectors/node.d.plugin/named" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/agent/collectors/node.d.plugin/sma_webbox" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/sma-inverters" + +[[redirects]] + from="/docs/agent/collectors/node.d.plugin/stiebeleltron" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/agent/collectors/python.d.plugin/logind" + to="/docs/collecting-metrics/collectors/operating-systems/systemd-logind-users" + +[[redirects]] + from="/docs/agent/collectors/python.d.plugin/nginx_plus" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/nginx-plus" + +[[redirects]] + from="/docs/agent/collectors/python.d.plugin/ovpn_status_log" + to="/docs/collecting-metrics/collectors/networking/openvpn-status-log" + +[[redirects]] + from="/docs/agent/collectors/python.d.plugin/retroshare" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/agent/database/engine/metadata_log" + to="/docs/developer-and-contributor-corner/database-engine" + +[[redirects]] + from="/docs/agent/parser" + to="/docs/developer-and-contributor-corner/libnetdata" + +[[redirects]] + from="/docs/agent/spawn" + to="/docs/developer-and-contributor-corner" + +[[redirects]] + from="/docs/agent/tests" + to="/docs/developer-and-contributor-corner" + +[[redirects]] + from="/docs/agent/tests/ebpf" + to="/docs/developer-and-contributor-corner" + +[[redirects]] + from="/docs/agent/web/gui/dashboard" + to="/docs/dashboards-and-charts" + +[[redirects]] + from="/docs/alerts-&-notifications/notifications/agent-alert-notifications" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/agent-notifications-reference" + +[[redirects]] + from="/docs/alerts-and-notifications/alert-configuration-reference" + to="/docs/alerts-&-notifications/alert-configuration-reference" + +[[redirects]] + from="/docs/alerts-and-notifications/notifications/agent-dispatched-notifications" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications" + +[[redirects]] + from="/docs/alerts-and-notifications/notifications/agent-dispatched-notifications/email" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/email" + +[[redirects]] + from="/docs/alerts-and-notifications/notifications/agent-dispatched-notifications/telegram" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/telegram" + +[[redirects]] + from="/docs/alerts-and-notifications/notifications/centralized-cloud-notifications" + to="/docs/alerts-&-notifications/notifications/centralized-cloud-notifications" + +[[redirects]] + from="/docs/collecting-metrics/OpenTelemetry/OpenTelemetry-Metrics" + to="/docs/opentelemetry/opentelemetry-plugin-reference" + +[[redirects]] + from="/docs/collecting-metrics/apm/audisto" + to="/docs/collecting-metrics/collectors/applications/prometheus-endpoint" + +[[redirects]] + from="/docs/collecting-metrics/applications/nagios" + to="/docs/collecting-metrics/collectors/synthetic-testing/nagios-plugins-and-custom-scripts" + +[[redirects]] + from="/docs/collecting-metrics/applications/scripts.d-scheduler" + to="/docs/collecting-metrics/collectors/synthetic-testing/nagios-plugins-and-custom-scripts" + +[[redirects]] + from="/docs/collecting-metrics/applications/zabbix-preprocessing" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/collecting-metrics/blockchain-servers/energi-core-wallet" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/collecting-metrics/cloud-and-devops" + to="/docs/collecting-metrics/collectors/cloud-and-devops" + +[[redirects]] + from="/docs/collecting-metrics/collectors/cloud-and-devops/cloudwatch" + to="/docs/collecting-metrics/collectors/cloud-and-devops/amazon-cloudwatch" + +[[redirects]] + from="/docs/collecting-metrics/collectors/networking/ebpf-socket" + to="/docs/collecting-metrics/collectors/operating-systems/ebpf-socket" + +[[redirects]] + from="/docs/collecting-metrics/containers-and-vms/libvirt-containers" + to="/docs/collecting-metrics/collectors/containers-and-vms/libvirt-vms-and-containers" + +[[redirects]] + from="/docs/collecting-metrics/databases/ms-sql-server" + to="/docs/collecting-metrics/collectors/databases/microsoft-sql-server" + +[[redirects]] + from="/docs/collecting-metrics/distributed-computing-systems/boinc" + to="/docs/collecting-metrics/collectors/applications/boinc" + +[[redirects]] + from="/docs/collecting-metrics/ftp-servers" + to="/docs/collecting-metrics/collectors/applications/proftpd" + +[[redirects]] + from="/docs/collecting-metrics/hardware-and-sensors/amd-cpu-&-gpu" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/amd-cpu-&-gpu" + +[[redirects]] + from="/docs/collecting-metrics/hardware-devices-and-sensors/amd-cpu-&-gpu" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/amd-cpu-&-gpu" + +[[redirects]] + from="/docs/collecting-metrics/hardware-devices-and-sensors/linux-sensors-sysfs" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/linux-hardware-sensors-libsensors" + +[[redirects]] + from="/docs/collecting-metrics/linux-systems/cpu" + to="/docs/collecting-metrics/collectors/operating-systems" + +[[redirects]] + from="/docs/collecting-metrics/linux-systems/filesystem/zfs" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/zfs" + +[[redirects]] + from="/docs/collecting-metrics/linux-systems/ipc" + to="/docs/collecting-metrics/collectors/operating-systems/inter-process-communication" + +[[redirects]] + from="/docs/collecting-metrics/linux-systems/pressure" + to="/docs/collecting-metrics/collectors/operating-systems/pressure-stall-information" + +[[redirects]] + from="/docs/collecting-metrics/networking-stack-and-network-interfaces/andrews-&-arnold-line-status" + to="/docs/collecting-metrics/collectors/applications/prometheus-endpoint" + +[[redirects]] + from="/docs/collecting-metrics/provisioning-systems" + to="/docs/collecting-metrics/collectors/cloud-and-devops" + +[[redirects]] + from="/docs/collecting-metrics/storage-and-filesystems" + to="/docs/collecting-metrics/collectors/storage-and-filesystems" + +[[redirects]] + from="/docs/collecting-metrics/synthetic-testing" + to="/docs/collecting-metrics/collectors/synthetic-testing" + +[[redirects]] + from="/docs/collecting-metrics/telephony-servers" + to="/docs/collecting-metrics/collectors/applications" + +[[redirects]] + from="/docs/collecting-metrics/vpns/speedify-cli" + to="/docs/collecting-metrics/collectors/applications/prometheus-endpoint" + +[[redirects]] + from="/docs/collecting-metrics/windows-systems/hyperv" + to="/docs/collecting-metrics/collectors/containers-and-vms/hyper-v" + +[[redirects]] + from="/docs/logs/systemd-journal-logs/journal-viewer-plugin" + to="/docs/logs-management/systemd-journal-logs/systemd-journal-plugin-reference" + +[[redirects]] + from="/docs/machine-learning-and-anomaly-detection/anomaly-advisor" + to="/docs/netdata-ai/troubleshooting/anomaly-advisor" + +[[redirects]] + from="/docs/netdata-agent/sizing-netdata-agents/disk-requirements-and-retention" + to="/docs/netdata-agent/resource-utilization/disk-&-retention" + +[[redirects]] + from="/docs/netdata-agent/versions-and-platforms" + to="/docs/netdata-agent/versions-&-platforms" + +[[redirects]] + from="/docs/netdata-ai/anomaly-detection/ml-anomaly-detection" + to="/docs/netdata-ai/anomaly-detection" + +[[redirects]] + from="/docs/netdata-ai/mcp/mcp-clients/netdata-web-client" + to="/docs/netdata-ai/mcp/supported-ai-clients" + +[[redirects]] + from="/docs/netdata-ai/troubleshooting/troubleshoot-button" + to="/docs/netdata-ai/investigations/custom-investigations" + +[[redirects]] + from="/docs/netdata-cloud/authentication-and-authorization/api-tokens" + to="/docs/netdata-cloud/authentication-&-authorization/api-tokens" + +[[redirects]] + from="/docs/netdata-cloud/authentication-and-authorization/role-based-access-model" + to="/docs/netdata-cloud/authentication-&-authorization/role-based-access-model" + +[[redirects]] + from="/docs/netdata-cloud/versions" + to="/docs/netdata-cloud" + +[[redirects]] + from="/docs/netdata-cloud/view-plan-and-billing" + to="/docs/netdata-cloud/netdata-plans-&-billing" + +# Agent-prefixed paths (2026-12-01): requested /docs/agent/<path> addresses whose /docs/<path> page +# exists. Exact rules, not a wildcard, so unknown /docs/agent/ paths stay on the 404 page. + +[[redirects]] + from="/docs/agent/alerts-&-notifications" + to="/docs/alerts-&-notifications" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/alert-configuration-ordering" + to="/docs/alerts-&-notifications/alert-configuration-ordering" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/alert-configuration-reference" + to="/docs/alerts-&-notifications/alert-configuration-reference" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/health-api-calls" + to="/docs/alerts-&-notifications/health-api-calls" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/agent-notifications-reference" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/agent-notifications-reference" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/alerta" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/alerta" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/aws-sns" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/aws-sns" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/custom" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/custom" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/email" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/email" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/gotify" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/gotify" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/kavenegar" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/kavenegar" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/matrix" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/matrix" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/microsoft-teams" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/microsoft-teams" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/pagerduty" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/pagerduty" + +[[redirects]] + from="/docs/agent/alerts-&-notifications/notifications/agent-dispatched-notifications/prowl" + to="/docs/alerts-&-notifications/notifications/agent-dispatched-notifications/prowl" + +[[redirects]] + from="/docs/agent/collecting-metrics" + to="/docs/collecting-metrics" + +[[redirects]] + from="/docs/agent/collecting-metrics/aws-cloudwatch-profile-format" + to="/docs/collecting-metrics/aws-cloudwatch-profile-format" + +[[redirects]] + from="/docs/agent/collecting-metrics/ceph" + to="/docs/collecting-metrics/ceph" + +[[redirects]] + from="/docs/agent/collecting-metrics/chart-template-format" + to="/docs/collecting-metrics/chart-template-format" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/celery" + to="/docs/collecting-metrics/collectors/applications/celery" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/crowdsec" + to="/docs/collecting-metrics/collectors/applications/crowdsec" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/cryptowatch" + to="/docs/collecting-metrics/collectors/applications/cryptowatch" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/discourse" + to="/docs/collecting-metrics/collectors/applications/discourse" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/go-applications-expvar" + to="/docs/collecting-metrics/collectors/applications/go-applications-expvar" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/ibm-mq" + to="/docs/collecting-metrics/collectors/applications/ibm-mq" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/jmx" + to="/docs/collecting-metrics/collectors/applications/jmx" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/lynis-audit-reports" + to="/docs/collecting-metrics/collectors/applications/lynis-audit-reports" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/obs-studio" + to="/docs/collecting-metrics/collectors/applications/obs-studio" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/steam" + to="/docs/collecting-metrics/collectors/applications/steam" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/tankerkoenig-api" + to="/docs/collecting-metrics/collectors/applications/tankerkoenig-api" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/applications/vscode" + to="/docs/collecting-metrics/collectors/applications/vscode" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/cloud-and-devops" + to="/docs/collecting-metrics/collectors/cloud-and-devops" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/cloud-and-devops/azure-cache-for-redis" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-cache-for-redis" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/cloud-and-devops/azure-data-factory" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-data-factory" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/cloud-and-devops/azure-event-hubs-namespace" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-event-hubs-namespace" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/cloud-and-devops/azure-functions" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-functions" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/cloud-and-devops/azure-monitor" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-monitor" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/cloud-and-devops/azure-vpn-gateway" + to="/docs/collecting-metrics/collectors/cloud-and-devops/azure-vpn-gateway" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/cloud-and-devops/linode" + to="/docs/collecting-metrics/collectors/cloud-and-devops/linode" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/containers-and-vms/cilium-agent" + to="/docs/collecting-metrics/collectors/containers-and-vms/cilium-agent" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/containers-and-vms/containers" + to="/docs/collecting-metrics/collectors/containers-and-vms/containers" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/containers-and-vms/docker" + to="/docs/collecting-metrics/collectors/containers-and-vms/docker" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/containers-and-vms/docker-containers" + to="/docs/collecting-metrics/collectors/containers-and-vms/docker-containers" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/containers-and-vms/mesos" + to="/docs/collecting-metrics/collectors/containers-and-vms/mesos" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/containers-and-vms/vcenter-server-appliance" + to="/docs/collecting-metrics/collectors/containers-and-vms/vcenter-server-appliance" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/containers-and-vms/xen-xcp-ng" + to="/docs/collecting-metrics/collectors/containers-and-vms/xen-xcp-ng" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/aws-rds" + to="/docs/collecting-metrics/collectors/databases/aws-rds" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/cockroachdb" + to="/docs/collecting-metrics/collectors/databases/cockroachdb" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/ibm-db2" + to="/docs/collecting-metrics/collectors/databases/ibm-db2" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/memcached" + to="/docs/collecting-metrics/collectors/databases/memcached" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/mosquitto" + to="/docs/collecting-metrics/collectors/databases/mosquitto" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/nats" + to="/docs/collecting-metrics/collectors/databases/nats" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/pandas" + to="/docs/collecting-metrics/collectors/databases/pandas" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/pgbackrest" + to="/docs/collecting-metrics/collectors/databases/pgbackrest" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/pika" + to="/docs/collecting-metrics/collectors/databases/pika" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/scylladb" + to="/docs/collecting-metrics/collectors/databases/scylladb" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/databases/vernemq" + to="/docs/collecting-metrics/collectors/databases/vernemq" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors" + to="/docs/collecting-metrics/collectors/hardware-and-sensors" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/apc-ups" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/apc-ups" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/elgato-key-light-devices." + to="/docs/collecting-metrics/collectors/hardware-and-sensors/elgato-key-light-devices." + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/ibm-cryptoexpress-cex-cards" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/ibm-cryptoexpress-cex-cards" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/jarvis-standing-desk" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/jarvis-standing-desk" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/nvidia-data-center-gpu-manager-dcgm" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/nvidia-data-center-gpu-manager-dcgm" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/personal-weather-station" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/personal-weather-station" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/philips-hue" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/philips-hue" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/radio-thermostat" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/radio-thermostat" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/salicru-eqx-inverter" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/salicru-eqx-inverter" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/smart-meters-sml" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/smart-meters-sml" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/hardware-and-sensors/xiaomi-mi-flora" + to="/docs/collecting-metrics/collectors/hardware-and-sensors/xiaomi-mi-flora" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/conntrack" + to="/docs/collecting-metrics/collectors/networking/conntrack" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/net.inet.tcp.states" + to="/docs/collecting-metrics/collectors/networking/net.inet.tcp.states" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/network-connections" + to="/docs/collecting-metrics/collectors/networking/network-connections" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/open-vswitch" + to="/docs/collecting-metrics/collectors/networking/open-vswitch" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/optical-modules" + to="/docs/collecting-metrics/collectors/networking/optical-modules" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/powerdns-recursor" + to="/docs/collecting-metrics/collectors/networking/powerdns-recursor" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/ripe-atlas" + to="/docs/collecting-metrics/collectors/networking/ripe-atlas" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/socket-statistics" + to="/docs/collecting-metrics/collectors/networking/socket-statistics" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/networking/tc-qos-classes" + to="/docs/collecting-metrics/collectors/networking/tc-qos-classes" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/applications" + to="/docs/collecting-metrics/collectors/operating-systems/applications" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/ebpf-dcstat" + to="/docs/collecting-metrics/collectors/operating-systems/ebpf-dcstat" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/ebpf-shm" + to="/docs/collecting-metrics/collectors/operating-systems/ebpf-shm" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/entropy" + to="/docs/collecting-metrics/collectors/operating-systems/entropy" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/linux-kernel-slab-allocator-statistics" + to="/docs/collecting-metrics/collectors/operating-systems/linux-kernel-slab-allocator-statistics" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/non-uniform-memory-access" + to="/docs/collecting-metrics/collectors/operating-systems/non-uniform-memory-access" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/processor" + to="/docs/collecting-metrics/collectors/operating-systems/processor" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/systemd-units" + to="/docs/collecting-metrics/collectors/operating-systems/systemd-units" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/terminal-services-sessions" + to="/docs/collecting-metrics/collectors/operating-systems/terminal-services-sessions" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/uptime" + to="/docs/collecting-metrics/collectors/operating-systems/uptime" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/operating-systems/windows-services-windows-plugin" + to="/docs/collecting-metrics/collectors/operating-systems/windows-services-windows-plugin" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/bcache" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/bcache" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/btrfs" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/btrfs" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/dell-powervault-me4-me5" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/dell-powervault-me4-me5" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/disk-space" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/disk-space" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/disk-statistics" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/disk-statistics" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/dmcache-devices" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/dmcache-devices" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/ebpf-filesystem" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/ebpf-filesystem" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/ebpf-sync" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/ebpf-sync" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/ebpf-vfs" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/ebpf-vfs" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/storage-and-filesystems/nvme-devices" + to="/docs/collecting-metrics/collectors/storage-and-filesystems/nvme-devices" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/synthetic-testing" + to="/docs/collecting-metrics/collectors/synthetic-testing" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/synthetic-testing/http-endpoints" + to="/docs/collecting-metrics/collectors/synthetic-testing/http-endpoints" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/synthetic-testing/ioping" + to="/docs/collecting-metrics/collectors/synthetic-testing/ioping" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/apicast" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/apicast" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/haproxy-prometheus" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/haproxy-prometheus" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/iis" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/iis" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/lighttpd" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/lighttpd" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/nginx-unit" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/nginx-unit" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/nginx-vts" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/nginx-vts" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/php-fpm" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/php-fpm" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/squid-log-files" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/squid-log-files" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/tengine" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/tengine" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/tomcat" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/tomcat" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/varnish" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/varnish" + +[[redirects]] + from="/docs/agent/collecting-metrics/collectors/web-servers-and-proxies/web-server-log-files" + to="/docs/collecting-metrics/collectors/web-servers-and-proxies/web-server-log-files" + +[[redirects]] + from="/docs/agent/collecting-metrics/prometheus-metric-relabeling" + to="/docs/collecting-metrics/prometheus-metric-relabeling" + +[[redirects]] + from="/docs/agent/collecting-metrics/prometheus-profile-format" + to="/docs/collecting-metrics/prometheus-profile-format" + +[[redirects]] + from="/docs/agent/collecting-metrics/secrets-management" + to="/docs/collecting-metrics/secrets-management" + +[[redirects]] + from="/docs/agent/collecting-metrics/statsd" + to="/docs/collecting-metrics/statsd" + +[[redirects]] + from="/docs/agent/dashboards-and-charts" + to="/docs/dashboards-and-charts" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/nidl-framework" + to="/docs/dashboards-and-charts/nidl-framework" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/tabs" + to="/docs/dashboards-and-charts/tabs" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/tabs/dashboards" + to="/docs/dashboards-and-charts/tabs/dashboards" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/tabs/events" + to="/docs/dashboards-and-charts/tabs/events" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/tabs/live" + to="/docs/dashboards-and-charts/tabs/live" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/tabs/metrics" + to="/docs/dashboards-and-charts/tabs/metrics" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/tabs/nodes" + to="/docs/dashboards-and-charts/tabs/nodes" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/theme" + to="/docs/dashboards-and-charts/theme" + +[[redirects]] + from="/docs/agent/dashboards-and-charts/time-controls" + to="/docs/dashboards-and-charts/time-controls" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner" + to="/docs/developer-and-contributor-corner" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/community-code-of-conduct" + to="/docs/developer-and-contributor-corner/community-code-of-conduct" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/contributing" + to="/docs/developer-and-contributor-corner/contributing" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/database-engine" + to="/docs/developer-and-contributor-corner/database-engine" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/external-plugins" + to="/docs/developer-and-contributor-corner/external-plugins" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/external-plugins/profile.plugin" + to="/docs/developer-and-contributor-corner/external-plugins/profile.plugin" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/external-plugins/python.d.plugin" + to="/docs/developer-and-contributor-corner/external-plugins/python.d.plugin" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/glossary" + to="/docs/developer-and-contributor-corner/glossary" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/health-command-api-tester" + to="/docs/developer-and-contributor-corner/health-command-api-tester" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/install-the-netdata-agent-from-a-git-checkout" + to="/docs/developer-and-contributor-corner/install-the-netdata-agent-from-a-git-checkout" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/libnetdata" + to="/docs/developer-and-contributor-corner/libnetdata" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/libnetdata/circular-buffer" + to="/docs/developer-and-contributor-corner/libnetdata/circular-buffer" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/libnetdata/simple-patterns" + to="/docs/developer-and-contributor-corner/libnetdata/simple-patterns" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/monitor-unbound-dns-servers-with-netdata" + to="/docs/developer-and-contributor-corner/monitor-unbound-dns-servers-with-netdata" + +[[redirects]] + from="/docs/agent/developer-and-contributor-corner/rest-api" + to="/docs/developer-and-contributor-corner/rest-api" + +[[redirects]] + from="/docs/agent/edge-device-monitoring" + to="/docs/edge-device-monitoring" + +[[redirects]] + from="/docs/agent/exporting-metrics" + to="/docs/exporting-metrics" + +[[redirects]] + from="/docs/agent/exporting-metrics/connectors" + to="/docs/exporting-metrics/connectors" + +[[redirects]] + from="/docs/agent/exporting-metrics/connectors/aws-kinesis" + to="/docs/exporting-metrics/connectors/aws-kinesis" + +[[redirects]] + from="/docs/agent/exporting-metrics/connectors/graphite" + to="/docs/exporting-metrics/connectors/graphite" + +[[redirects]] + from="/docs/agent/exporting-metrics/connectors/mongodb" + to="/docs/exporting-metrics/connectors/mongodb" + +[[redirects]] + from="/docs/agent/exporting-metrics/connectors/prometheus-remote-write" + to="/docs/exporting-metrics/connectors/prometheus-remote-write" + +[[redirects]] + from="/docs/agent/exporting-metrics/enable-an-exporting-connector" + to="/docs/exporting-metrics/enable-an-exporting-connector" + +[[redirects]] + from="/docs/agent/exporting-metrics/exporting-reference" + to="/docs/exporting-metrics/exporting-reference" + +[[redirects]] + from="/docs/agent/exporting-metrics/prometheus" + to="/docs/exporting-metrics/prometheus" + +[[redirects]] + from="/docs/agent/live-demo" + to="/docs/live-demo" + +[[redirects]] + from="/docs/agent/live-view" + to="/docs/live-view" + +[[redirects]] + from="/docs/agent/logs-management" + to="/docs/logs-management" + +[[redirects]] + from="/docs/agent/netdata-agent" + to="/docs/netdata-agent" + +[[redirects]] + from="/docs/agent/netdata-agent/agent-cli" + to="/docs/netdata-agent/agent-cli" + +[[redirects]] + from="/docs/agent/netdata-agent/anonymous-telemetry-events" + to="/docs/netdata-agent/anonymous-telemetry-events" + +[[redirects]] + from="/docs/agent/netdata-agent/configuration" + to="/docs/netdata-agent/configuration" + +[[redirects]] + from="/docs/agent/netdata-agent/configuration/daemon" + to="/docs/netdata-agent/configuration/daemon" + +[[redirects]] + from="/docs/agent/netdata-agent/configuration/dynamic-configuration-manager" + to="/docs/netdata-agent/configuration/dynamic-configuration-manager" + +[[redirects]] + from="/docs/agent/netdata-agent/configuration/organize-systems-metrics-and-alerts" + to="/docs/netdata-agent/configuration/organize-systems-metrics-and-alerts" + +[[redirects]] + from="/docs/agent/netdata-agent/configuration/registry" + to="/docs/netdata-agent/configuration/registry" + +[[redirects]] + from="/docs/agent/netdata-agent/configuration/securing-agents/running-the-agent-behind-a-reverse-proxy/haproxy" + to="/docs/netdata-agent/configuration/securing-agents/running-the-agent-behind-a-reverse-proxy/haproxy" + +[[redirects]] + from="/docs/agent/netdata-agent/configuration/securing-agents/running-the-agent-behind-a-reverse-proxy/nginx" + to="/docs/netdata-agent/configuration/securing-agents/running-the-agent-behind-a-reverse-proxy/nginx" + +[[redirects]] + from="/docs/agent/netdata-agent/configuration/securing-agents/web-server-reference" + to="/docs/netdata-agent/configuration/securing-agents/web-server-reference" + +[[redirects]] + from="/docs/agent/netdata-agent/daemon" + to="/docs/netdata-agent/daemon" + +[[redirects]] + from="/docs/agent/netdata-agent/installation" + to="/docs/netdata-agent/installation" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/ansible" + to="/docs/netdata-agent/installation/ansible" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/azure" + to="/docs/netdata-agent/installation/azure" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/docker" + to="/docs/netdata-agent/installation/docker" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/freebsd" + to="/docs/netdata-agent/installation/freebsd" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/gcp" + to="/docs/netdata-agent/installation/gcp" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/kubernetes" + to="/docs/netdata-agent/installation/kubernetes" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/kubernetes-helm-chart-reference" + to="/docs/netdata-agent/installation/kubernetes-helm-chart-reference" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/linux" + to="/docs/netdata-agent/installation/linux" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/linux/native-linux-distribution-packages" + to="/docs/netdata-agent/installation/linux/native-linux-distribution-packages" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/linux/offline-systems" + to="/docs/netdata-agent/installation/linux/offline-systems" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/linux/switch-install-types-and-release-channels" + to="/docs/netdata-agent/installation/linux/switch-install-types-and-release-channels" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/macos" + to="/docs/netdata-agent/installation/macos" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/pfsense" + to="/docs/netdata-agent/installation/pfsense" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/synology" + to="/docs/netdata-agent/installation/synology" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/windows" + to="/docs/netdata-agent/installation/windows" + +[[redirects]] + from="/docs/agent/netdata-agent/installation/windows/switching-install-types-and-release-channels" + to="/docs/netdata-agent/installation/windows/switching-install-types-and-release-channels" + +[[redirects]] + from="/docs/agent/netdata-agent/logging" + to="/docs/netdata-agent/logging" + +[[redirects]] + from="/docs/agent/netdata-agent/maintenance" + to="/docs/netdata-agent/maintenance" + +[[redirects]] + from="/docs/agent/netdata-agent/maintenance/service-control" + to="/docs/netdata-agent/maintenance/service-control" + +[[redirects]] + from="/docs/agent/netdata-agent/node-identities" + to="/docs/netdata-agent/node-identities" + +[[redirects]] + from="/docs/agent/netdata-agent/quickstart-deployment" + to="/docs/netdata-agent/quickstart-deployment" + +[[redirects]] + from="/docs/agent/netdata-agent/registry" + to="/docs/netdata-agent/registry" + +[[redirects]] + from="/docs/agent/netdata-agent/resource-utilization" + to="/docs/netdata-agent/resource-utilization" + +[[redirects]] + from="/docs/agent/netdata-agent/resource-utilization/impact-on-cloud-vms" + to="/docs/netdata-agent/resource-utilization/impact-on-cloud-vms" + +[[redirects]] + from="/docs/agent/netdata-agent/versions-&-platforms" + to="/docs/netdata-agent/versions-&-platforms" + +[[redirects]] + from="/docs/agent/netdata-agent/vm-templates" + to="/docs/netdata-agent/vm-templates" + +[[redirects]] + from="/docs/agent/netdata-ai" + to="/docs/netdata-ai" + +[[redirects]] + from="/docs/agent/netdata-ai/mcp/mcp-connections/pagerduty" + to="/docs/netdata-ai/mcp/mcp-connections/pagerduty" + +[[redirects]] + from="/docs/agent/netdata-cloud-on-prem" + to="/docs/netdata-cloud-on-prem" + +[[redirects]] + from="/docs/agent/netdata-parents" + to="/docs/netdata-parents" + +[[redirects]] + from="/docs/agent/netdata-parents/metrics-centralization-points" + to="/docs/netdata-parents/metrics-centralization-points" + +[[redirects]] + from="/docs/agent/netdata-parents/metrics-centralization-points/clustering-and-high-availability-of-netdata-parents" + to="/docs/netdata-parents/metrics-centralization-points/clustering-and-high-availability-of-netdata-parents" + +[[redirects]] + from="/docs/agent/netdata-parents/metrics-centralization-points/replication-of-past-samples" + to="/docs/netdata-parents/metrics-centralization-points/replication-of-past-samples" + +[[redirects]] + from="/docs/agent/network-performance-monitoring" + to="/docs/network-performance-monitoring" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/3com-huawei" + to="/docs/network-performance-monitoring/device-metrics/integrations/3com-huawei" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/aruba-clearpass" + to="/docs/network-performance-monitoring/device-metrics/integrations/aruba-clearpass" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/barracuda" + to="/docs/network-performance-monitoring/device-metrics/integrations/barracuda" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/checkpoint" + to="/docs/network-performance-monitoring/device-metrics/integrations/checkpoint" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/cisco-firepower" + to="/docs/network-performance-monitoring/device-metrics/integrations/cisco-firepower" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/cisco-firepower-asa" + to="/docs/network-performance-monitoring/device-metrics/integrations/cisco-firepower-asa" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/cisco-icm" + to="/docs/network-performance-monitoring/device-metrics/integrations/cisco-icm" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/cradlepoint" + to="/docs/network-performance-monitoring/device-metrics/integrations/cradlepoint" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/cyberpower-pdu" + to="/docs/network-performance-monitoring/device-metrics/integrations/cyberpower-pdu" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/dell-powerconnect" + to="/docs/network-performance-monitoring/device-metrics/integrations/dell-powerconnect" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/dialogic-media-gateway" + to="/docs/network-performance-monitoring/device-metrics/integrations/dialogic-media-gateway" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/eaton-ups" + to="/docs/network-performance-monitoring/device-metrics/integrations/eaton-ups" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/exagrid" + to="/docs/network-performance-monitoring/device-metrics/integrations/exagrid" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/fortinet-fortiswitch" + to="/docs/network-performance-monitoring/device-metrics/integrations/fortinet-fortiswitch" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/gigamon" + to="/docs/network-performance-monitoring/device-metrics/integrations/gigamon" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/hpe-proliant" + to="/docs/network-performance-monitoring/device-metrics/integrations/hpe-proliant" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/huawei-switches" + to="/docs/network-performance-monitoring/device-metrics/integrations/huawei-switches" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/infinera-coriant-groove" + to="/docs/network-performance-monitoring/device-metrics/integrations/infinera-coriant-groove" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/juniper" + to="/docs/network-performance-monitoring/device-metrics/integrations/juniper" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/mcafee-web-gateway" + to="/docs/network-performance-monitoring/device-metrics/integrations/mcafee-web-gateway" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/nvidia-cumulus-linux-switch" + to="/docs/network-performance-monitoring/device-metrics/integrations/nvidia-cumulus-linux-switch" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/palo-alto-networks-pan-os" + to="/docs/network-performance-monitoring/device-metrics/integrations/palo-alto-networks-pan-os" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/riverbed-interceptor" + to="/docs/network-performance-monitoring/device-metrics/integrations/riverbed-interceptor" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/device-metrics/integrations/zyxel-switch" + to="/docs/network-performance-monitoring/device-metrics/integrations/zyxel-switch" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/licensing-monitoring/integrations/blue-coat-licensing" + to="/docs/network-performance-monitoring/licensing-monitoring/integrations/blue-coat-licensing" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/network-flows/enrichment-methods/gcp-ip-ranges" + to="/docs/network-performance-monitoring/network-flows/enrichment-methods/gcp-ip-ranges" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/network-flows/enrichment-methods/ip2location-lite-ip-country" + to="/docs/network-performance-monitoring/network-flows/enrichment-methods/ip2location-lite-ip-country" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/network-flows/enrichment-methods/ipip-country-database" + to="/docs/network-performance-monitoring/network-flows/enrichment-methods/ipip-country-database" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/2wcom-gmbh-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/2wcom-gmbh-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/a10-networks-previously-raksha-networks-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/a10-networks-previously-raksha-networks-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/accuenergy-canada-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/accuenergy-canada-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/aol-netscape-communications-corp-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/aol-netscape-communications-corp-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/arbor-networks-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/arbor-networks-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/askey-computer-corp-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/askey-computer-corp-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/atlas-computer-equipment-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/atlas-computer-equipment-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/avaya-communication-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/avaya-communication-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/bekarts-international-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/bekarts-international-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/broadband-access-systems-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/broadband-access-systems-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/brocade-communications-systems-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/brocade-communications-systems-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/cable-television-laboratories-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/cable-television-laboratories-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/chloride-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/chloride-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/chromatis-networks-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/chromatis-networks-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/clickarrray-networks-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/clickarrray-networks-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/compaq-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/compaq-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/coriolis-networks-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/coriolis-networks-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/crossbeam-systems-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/crossbeam-systems-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/cube-optics-ag-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/cube-optics-ag-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/cumulus-networks-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/cumulus-networks-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/eaton-corporation-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/eaton-corporation-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/engenio-information-technologies-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/engenio-information-technologies-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/fujitsu-germany-gmbh-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/fujitsu-germany-gmbh-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/gigamon-systems-llc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/gigamon-systems-llc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/h3c-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/h3c-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/hewlett-packard-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/hewlett-packard-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/image-project-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/image-project-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/kcp-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/kcp-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/kentix-gmbh-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/kentix-gmbh-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/lancast-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/lancast-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/latitude-communications-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/latitude-communications-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/lenovo-enterprise-business-group-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/lenovo-enterprise-business-group-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/maipu-electric-industrial-co-ltd-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/maipu-electric-industrial-co-ltd-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/mellanox-technologies-ltd-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/mellanox-technologies-ltd-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/mission-critical-software-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/mission-critical-software-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/national-standardization-committee-of-radio-television-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/national-standardization-committee-of-radio-television-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/netline-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/netline-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/netscaler-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/netscaler-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/network-appliance-corporation-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/network-appliance-corporation-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/nice-systems-ltd-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/nice-systems-ltd-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/nokia-formerly-infinera-corp-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/nokia-formerly-infinera-corp-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/one4net-gmbh-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/one4net-gmbh-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/oracle-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/oracle-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/pacific-broadbank-networks-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/pacific-broadbank-networks-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/padtec-optical-components-and-systems-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/padtec-optical-components-and-systems-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/pan-dacom-direkt-gmbh-formerly-pan-dacom-networking-ag-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/pan-dacom-direkt-gmbh-formerly-pan-dacom-networking-ag-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/qlogic-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/qlogic-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/qtech-llc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/qtech-llc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/qualix-group-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/qualix-group-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/red-lion-controls-n-tron-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/red-lion-controls-n-tron-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/richard-hirschmann-gmbh-co-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/richard-hirschmann-gmbh-co-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/riverbed-technology-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/riverbed-technology-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/rogue-engineering-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/rogue-engineering-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/schechtertech-llc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/schechtertech-llc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/siemens-ag-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/siemens-ag-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/trango-networks-llc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/trango-networks-llc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/tylink-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/tylink-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/vertiv-formerly-emerson-energy-systems-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/vertiv-formerly-emerson-energy-systems-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/videoserver-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/videoserver-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/viptela-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/viptela-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/watchguard-technologies-inc-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/watchguard-technologies-inc-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/xedia-corporation-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/xedia-corporation-snmp-traps" + +[[redirects]] + from="/docs/agent/network-performance-monitoring/snmp-traps/integrations/zenitel-norway-as-snmp-traps" + to="/docs/network-performance-monitoring/snmp-traps/integrations/zenitel-norway-as-snmp-traps" + +[[redirects]] + from="/docs/agent/opentelemetry" + to="/docs/opentelemetry" + +[[redirects]] + from="/docs/agent/opentelemetry/syslog-from-network-devices/integrations/syslog-from-network-devices" + to="/docs/opentelemetry/syslog-from-network-devices/integrations/syslog-from-network-devices" + +[[redirects]] + from="/docs/agent/security-and-privacy-design" + to="/docs/security-and-privacy-design" + +[[redirects]] + from="/docs/agent/welcome-to-netdata" + to="/docs/welcome-to-netdata" + +[[redirects]] + from="/docs/agent/welcome-to-netdata/monitor-anything" + to="/docs/welcome-to-netdata/monitor-anything" + +[[redirects]] + from="/docs/agent/welcome-to-netdata/reporting" + to="/docs/welcome-to-netdata/reporting" + +# Favicon (2026-12-01): forum and chat link previews request these icon paths. + +[[redirects]] + from="/favicon.ico" + to="/img/favicon-32x32.png" + +[[redirects]] + from="/img/favicon.ico" + to="/img/favicon-32x32.png" # section: static << END diff --git a/tests/link_integrity.test.mjs b/tests/link_integrity.test.mjs index c65cea077e..ce68ef69c3 100644 --- a/tests/link_integrity.test.mjs +++ b/tests/link_integrity.test.mjs @@ -24,6 +24,7 @@ import { redirectMatches, resolvePublicDestination, runWithLimits, + validateInventory, validatePolicy, } from '../scripts/link-integrity/check.mjs'; @@ -55,6 +56,7 @@ function inventory({siteOrigin = 'https://www.netdata.cloud', links = [], invali file_routes: ['/index.html'], html_pages: [{source_route: '/', routes: ['/', '/index.html'], fragments: ['home']}], redirect_sources: ['/old/*'], + redirect_rules: [{from: '/old/*', to: '/'}], links: links.map((url) => ({url, occurrences: 1, sources: ['/']})), invalid_links: invalid, unsupported_schemes: {}, @@ -111,7 +113,7 @@ test('inventories parsed links, canonical relative semantics, fragments, files, 'guide/index.html': '<link rel="canonical" href="https://www.netdata.cloud/guide/">' + '<h2 id="part">Part</h2><a name="legacy"></a><a href="../">Home</a>', 'asset.pdf': 'fixture', - }, '[[redirects]]\nfrom = "/old/*"\nto = "/guide/:splat"\n'); + }, '[[redirects]]\nfrom = "/old/*"\nto = "/guide/"\n'); const result = await inventoryRenderedSite({ buildDirectory: fixture.build, redirectsFilename: fixture.redirectsFilename, @@ -120,6 +122,7 @@ test('inventories parsed links, canonical relative semantics, fragments, files, assert.equal(result.html_files, 2); assert.ok(result.file_routes.includes('/asset.pdf')); assert.deepEqual(result.redirect_sources, ['/old/*']); + assert.deepEqual(result.redirect_rules, [{from: '/old/*', to: '/guide/'}]); assert.deepEqual(result.html_pages.find((page) => page.source_route === '/guide/').fragments, ['legacy', 'part']); assert.ok(result.links.some((link) => link.url === 'https://www.netdata.cloud/guide/#part')); assert.deepEqual(result.unsupported_schemes, {'mailto:': 1}); @@ -169,6 +172,95 @@ test('same-site validation rejects non-default ports and ambiguous rendered alia assert.throws(() => checkSameSite(ambiguous), /owned by both/); }); +test('follows same-site redirects to the rendered destination and its fragment', () => { + const subject = inventory({ + links: [ + 'https://www.netdata.cloud/moved/page', + 'https://www.netdata.cloud/moved/missing', + 'https://www.netdata.cloud/exact#home', + 'https://www.netdata.cloud/exact#absent', + 'https://www.netdata.cloud/two-hops', + 'https://www.netdata.cloud/loop-a', + 'https://www.netdata.cloud/away/x', + ], + }); + subject.html_pages.push({source_route: '/new/page', routes: ['/new/page'], fragments: []}); + subject.redirect_rules = [ + {from: '/moved/*', to: '/new/:splat'}, + {from: '/exact', to: '/'}, + {from: '/two-hops', to: '/exact'}, + {from: '/loop-a', to: '/loop-b'}, + {from: '/loop-b', to: '/loop-a'}, + {from: '/away/*', to: 'https://example.com/:splat'}, + ]; + subject.redirect_sources = [...new Set(subject.redirect_rules.map((rule) => rule.from))].sort(); + const result = checkSameSite(subject); + assert.equal(result.checked, 7); + assert.deepEqual(result.findings.map((item) => [item.kind, item.pathname, item.resolved_path ?? null]), [ + ['missing-path', '/moved/missing', '/new/missing'], + ['missing-fragment', '/exact', '/'], + ['invalid-target', '/loop-a', '/loop-a'], + ]); +}); + +test('applies the first matching redirect rule, as Netlify does', () => { + const subject = inventory({links: ['https://www.netdata.cloud/section/child']}); + subject.redirect_rules = [ + {from: '/section/child', to: '/missing'}, + {from: '/section/*', to: '/'}, + ]; + assert.deepEqual(checkSameSite(subject).findings.map((item) => item.resolved_path), ['/missing']); +}); + +test('matches exact redirect rules with or without a trailing slash, as Netlify does', () => { + const subject = inventory({links: [ + 'https://www.netdata.cloud/old-page/', + 'https://www.netdata.cloud/other-page', + ]}); + subject.redirect_rules = [ + {from: '/old-page', to: '/'}, + {from: '/other-page/', to: '/'}, + ]; + assert.deepEqual(checkSameSite(subject), {checked: 2, findings: []}); +}); + +test('matches parameter rules with or without a trailing slash and resolves dot segments', () => { + const subject = inventory({links: [ + 'https://www.netdata.cloud/files/report', + 'https://www.netdata.cloud/files/report/', + 'https://www.netdata.cloud/dotted', + ]}); + subject.redirect_rules = [ + {from: '/files/:name', to: '/'}, + {from: '/dotted', to: '/new/../'}, + ]; + assert.deepEqual(checkSameSite(subject), {checked: 3, findings: []}); +}); + +test('keeps encoded reserved characters in a wildcard capture as path data', () => { + const subject = inventory({links: ['https://www.netdata.cloud/moved/page%3Ftypo']}); + subject.html_pages.push({source_route: '/new/page', routes: ['/new/page'], fragments: []}); + subject.redirect_rules = [{from: '/moved/*', to: '/new/:splat'}]; + assert.deepEqual(checkSameSite(subject).findings.map((item) => [item.kind, item.resolved_path]), [ + ['missing-path', '/new/page?typo'], + ]); +}); + +test('uses the destination fragment of a redirect rule when it has one', () => { + const subject = inventory({links: ['https://www.netdata.cloud/anchor-move']}); + subject.redirect_rules = [{from: '/anchor-move', to: '/#absent'}]; + assert.deepEqual(checkSameSite(subject).findings.map((item) => [item.kind, item.fragment]), [ + ['missing-fragment', 'absent'], + ]); +}); + +test('advisory consumers accept inventories without redirect rules; the same-site check does not', () => { + const legacy = inventory(); + delete legacy.redirect_rules; + assert.doesNotThrow(() => validateInventory(legacy)); + assert.throws(() => checkSameSite(legacy), /redirect_rules/); +}); + test('accepts browser text directives without weakening ordinary fragment checks', () => { const subject = inventory({links: ['https://www.netdata.cloud/#:~:text=Home']}); assert.deepEqual(checkSameSite(subject), {checked: 1, findings: []});