Add Jump Node RAM Graph
This commit is contained in:
@@ -220,6 +220,7 @@ async function getJumpNodeMetrics() {
|
||||
try {
|
||||
const charts = [
|
||||
{ key: 'cpu', url: `${NETDATA_JUMP_URL}/api/v3/data?contexts=system.cpu&group_by=dimension&group=average&after=-60&points=30&format=json`, map: d => ({ time: d[0], user: d[6], system: d[7] }) },
|
||||
{ key: 'ram', url: `${NETDATA_JUMP_URL}/api/v3/data?contexts=system.ram&group_by=dimension&group=average&after=-60&points=30&format=json`, map: d => ({ time: d[0], used: d[2], free: d[1] }) },
|
||||
{ key: 'net', url: `${NETDATA_JUMP_URL}/api/v3/data?contexts=system.net&group_by=dimension&group=average&after=-60&points=30&format=json`, map: d => ({ time: d[0], received: d[1], sent: d[2] }) },
|
||||
{ key: 'disk', url: `${NETDATA_JUMP_URL}/api/v3/data?contexts=system.io&group_by=dimension&group=average&after=-60&points=30&format=json`, map: d => ({ time: d[0], in: d[1], out: d[2] }) },
|
||||
{ key: 'anomaly', url: `${NETDATA_JUMP_URL}/api/v3/data?contexts=anomaly_detection.dimensions&scope_nodes=my-mc-link&group_by=dimension&group=average&after=-60&points=30&format=json`, map: d => ({ time: d[0], anomalous: d[1], normal: d[2] }) },
|
||||
@@ -253,7 +254,7 @@ async function getJumpNodeMetrics() {
|
||||
// Ensure all keys are present, even if empty
|
||||
return {
|
||||
cpu: metrics.cpu || [],
|
||||
ram: [], // RAM chart removed until verified
|
||||
ram: metrics.ram || [],
|
||||
net: metrics.net || [],
|
||||
disk: metrics.disk || [],
|
||||
anomaly: metrics.anomaly || [],
|
||||
|
Reference in New Issue
Block a user