Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

netdata

БесплатноБез исполняемых скриптовНе проверен

Netdata is a real-time host and container monitoring agent that collects thousands of per-second metrics with no setup, ships hundreds of ready-made alerts…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Netdata — per-second monitoring with alerts out of the box

Overview

Netdata is a single agent per machine. It auto-detects what runs on the host (CPU, memory, disks, network, systemd, containers, and hundreds of applications such as nginx, PostgreSQL or Redis), stores metrics locally, evaluates built-in alert rules, and exposes everything on port 19999: a web dashboard and an HTTP API. An agent's work with it falls into four jobs: install the agent safely, tune the configuration (netdata.conf, collector files, health alert files), read metrics and alert state through the API, and forward metrics to other tools.

The configuration directory is /etc/netdata (inside the Docker image too). Files there override the stock files in /usr/lib/netdata/conf.d. The edit-config script in /etc/netdata copies a stock file into place before opening it; use it instead of editing stock files.

Do not claim the node to Netdata Cloud from an agent session: that needs the user's account and token. The local dashboard and API work without any account.

Instructions

Install with Docker (preferred)

Pin the image tag and bind the published port to loopback:

docker run -d --name netdata --restart unless-stopped \
  -p 127.0.0.1:19999:19999 \
  --cap-add SYS_PTRACE --cap-add SYS_ADMIN --security-opt apparmor=unconfined \
  -e DO_NOT_TRACK=1 \
  -v netdataconfig:/etc/netdata -v netdatalib:/var/lib/netdata -v netdatacache:/var/cache/netdata \
  -v /etc/os-release:/host/etc/os-release:ro \
  -v /proc:/host/proc:ro -v /sys:/host/sys:ro \
  netdata/netdata:v2.12.3

DO_NOT_TRACK=1 turns off anonymous telemetry. Mount /var/run/docker.sock read-only only if the user wants container names resolved; that socket is root-equivalent access, so ask first. Wait about 20 seconds, then check curl -s http://127.0.0.1:19999/api/v1/info.

Install on the host

Use a package-manager or the official kickstart script, downloaded and read before it runs. Never pipe it into a shell:

curl -fsSL https://get.netdata.cloud/kickstart.sh -o /tmp/netdata-kickstart.sh
less /tmp/netdata-kickstart.sh        # review
sh /tmp/netdata-kickstart.sh --non-interactive --stable-channel --disable-telemetry

This needs root and installs a systemd unit named netdata. Verify with netdata -v and systemctl status netdata.

Keep the dashboard private

The Docker command above already publishes on loopback. For a host install set the bind address in /etc/netdata/netdata.conf, then restart:

[web]
    bind to = 127.0.0.1

Check the effective value with netdatacli dumpconfig | grep -A3 '^\[web\]'. To reach a remote server use an SSH tunnel (ssh -L 19999:127.0.0.1:19999 [email protected]) or a reverse proxy with authentication. The agent has no login of its own.

Query metrics through the REST API

Charts have an id such as system.cpu or system.ram. List them with /api/v1/charts. Frequently used calls (all verified on v2.12.3):

B=http://127.0.0.1:19999
# last 60 s of CPU, averaged into one point per dimension, as JSON
curl -s "$B/api/v1/data?chart=system.cpu&after=-60&points=1&group=average&format=json"
# the same as CSV
curl -s "$B/api/v1/data?chart=system.ram&after=-300&points=5&format=csv"
# wrap the answer with metadata (units, dimension names)
curl -s "$B/api/v1/data?chart=system.ram&after=-60&points=1&format=json&options=jsonwrap"
# every current value in Prometheus text format, or as shell variables
curl -s "$B/api/v1/allmetrics?format=prometheus&help=no"
curl -s "$B/api/v1/allmetrics?format=shell" | grep NETDATA_SYSTEM_CPU

after=-60 means "from 60 seconds ago" (a window longer than the agent's uptime returns an empty answer, so a fresh install cannot answer after=-300 for the first five minutes); points sets how many rows come back; group is the aggregation (average, max, sum...). The newer v2 API (/api/v2/data, /api/v2/nodes, /api/v2/alerts) serves multi-node and context queries and is what the dashboard uses. Its parameters differ from v1, so inspect the response before scripting against it. Point a Prometheus scrape job at /api/v1/allmetrics?format=prometheus to export host metrics.

Read alert state

curl -s "$B/api/v1/alarms"            # only raised alerts (WARNING or CRITICAL)
curl -s "$B/api/v1/alarms?all"        # every alert with status and current value
curl -s "$B/api/v1/alarm_log?after=0" # history of status changes

Alert keys are the chart id, a dot, then the alert name, for example system.ram.low_available_ram, with status of CLEAR, WARNING, CRITICAL, UNINITIALIZED or UNDEFINED. An empty alarms object from the first call means nothing is raised.

Write a custom alert

Put files in /etc/netdata/health.d/ (inside the container: docker exec netdata ...). A file with a name equal to a stock one replaces it. A new alert:

 alarm: low_available_ram
    on: system.ram
lookup: average -1m percen
Полный SKILL.md на GitHub

Установить netdata в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл netdata?

Netdata is a real-time host and container monitoring agent that collects thousands of per-second metrics with no setup, ships hundreds of ready-made alerts, and serves a dashboard and REST API from one local process. Use it when asked to "monitor this server", "install Netdata", "add a disk or RAM alert", "pull CPU numbers from Netdata", "export metrics to Prometheus", or "why is this box slow right now".

Как установить скилл netdata?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл netdata запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить netdata с