curl -s 'http://localhost:19999/api/v1/data?chart=system.cpu&after=-60' | jq

Category: Monitoring & Observability

curl -s 'http://localhost:19999/api/v1/data?chart=system.cpu&after=-60' | jq

Fetch raw samples for one netdata chart

Queries the samples behind a chart, here system.cpu for the last 60 seconds, with dimension names and values in JSON. The after parameter accepts negative offsets from now. This is the API behind the dashboard graphs, useful for scripting custom checks.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.