Girish Ramakrishnan
813409a8fb
graphs: directly stream docker stats
...
docker stats API caches the stat and reading it frequently gives back the same value.
this trips our "rate" code into thinking rate is 0.
one approach was to persist polling like we do now and ignore entries based on stats.read.
this works fine but the streaming approach seems better since we don't need to poll anymore.
2025-07-04 00:03:43 +02:00
Girish Ramakrishnan
9f35801f64
docker: add options to getStats
2025-07-03 23:56:03 +02:00
Girish Ramakrishnan
526f5efb78
metrics: fix nano to msecs conversion
2025-07-03 18:43:42 +02:00
Girish Ramakrishnan
b3071603d0
graphs: make top level div and clean the timer
2025-07-03 17:44:32 +02:00
Girish Ramakrishnan
6f358dd8ea
lint
2025-07-03 17:11:23 +02:00
Girish Ramakrishnan
a6a715b8c2
apps: make app graphs use GraphItem
2025-07-03 16:39:18 +02:00
Girish Ramakrishnan
5d55e558fe
metrics: no need to pass cpuCount
2025-07-03 10:28:50 +02:00
Girish Ramakrishnan
aa35099a4d
metrics: fix crash
2025-07-02 12:54:13 +02:00
Girish Ramakrishnan
4a7aa032c2
system: add network and disk graph
2025-07-02 09:08:05 +02:00
Girish Ramakrishnan
a10d0e45c9
metrics: blockio and network collection for system
2025-07-01 16:29:16 +02:00
Girish Ramakrishnan
6d5671dd0e
typo
2025-07-01 15:28:39 +02:00
Girish Ramakrishnan
a357f5a1b8
apps: add live metrics route
2025-07-01 12:23:38 +02:00
Girish Ramakrishnan
b5e2c628cd
metrics: collect data via docker api instead of cli
2025-07-01 11:10:21 +02:00
Girish Ramakrishnan
6b8b69d324
metrics: rename functions
2025-07-01 11:10:21 +02:00
Girish Ramakrishnan
227da8dce4
test: remove double uninit of db
2025-06-19 10:24:17 +02:00
Girish Ramakrishnan
1289a6e14f
graphs: fix memory graphs
2025-05-23 16:24:37 +02:00
Girish Ramakrishnan
e5b27af055
metrics: make interval msecs
2025-05-22 12:27:19 +02:00
Girish Ramakrishnan
b0f0a34672
metrics: convert to seconds
2025-05-22 12:09:42 +02:00
Girish Ramakrishnan
9c477710b9
graphs: make the interval configurable
2025-05-22 11:17:31 +02:00
Girish Ramakrishnan
3c01673741
graphs: show swap
2025-05-22 11:12:27 +02:00
Girish Ramakrishnan
fcfc9572f1
metrics: parse int
2025-05-21 18:22:57 +02:00
Girish Ramakrishnan
c0f0084e56
metrics: add stream api for system info
2025-05-21 18:09:02 +02:00
Girish Ramakrishnan
7e3162d287
metrics: refactor code that sends metrics to graphite
2025-05-21 17:29:14 +02:00
Girish Ramakrishnan
048afdc232
merge the collectd logic into metrics.js
...
this is to prepare for live streaming of metrics
2025-05-21 16:32:52 +02:00
Girish Ramakrishnan
8779de448d
rename /graphs route to /metrics
2025-05-21 16:26:36 +02:00