It would be nice to support something like this:
eval "$(curl http://localhost:19999/api/v1/chart=system.cpu&format=shell&after=-600&options=unaligned)"
This should create the variables SYSTEM_CPU_SYSTEM, SYSTEM_CPU_USER, SYSTEM_CPU_WAITIO, etc (one for each dimension of the chart), having the average utilization of the last 600 seconds.
It would be nice to support something like this:
This should create the variables
SYSTEM_CPU_SYSTEM,SYSTEM_CPU_USER,SYSTEM_CPU_WAITIO, etc (one for each dimension of the chart), having the average utilization of the last 600 seconds.