Netdata Community

Rest API is not update. but dashboard work perfectly fine.

Environment

OS: Ubuntu Server 18.04 LTS
Netdata agent version: v1.32.1-4-nightly

Problem/Question

I create a custom webpage to show the status of GPU by requesting chart data from Rest API (nvidia-smi chart).

However, API is not real-time. Data last update was 6 hours ago.

but the agent dashboard (IP:19999) is perfectly working fine in real-time.

Here is how I called the REST API

http://IP:19999/api/v1/data?chart=nvidia_smi.gpu0_user_mem&points=1&=1639718574

Where 1639718574 is the UNIX timestamp. the timestamp will change every time when a request to avoid caching by a browser. but data was still 6 hours ago.

What I expected to happen

A method to retrieve data from Rest-API in real-time.

Thank you.

&=1639718574 should be &after=1639718574

Hey @pureexe,
did this fix work for you? Let us know if you have any further questions.

The solution @vlvkobal suggests is work!

Thank you.