Cluster resource information
Problem
It would be nice to see some more information about resource utilization.
Solution
- [ ] Individual resources used of each instance on each node
- [ ] Overall available resources of each node (https://www.nomadproject.io/docs/http/nodes.html / https://www.nomadproject.io/docs/http/node.html)
Can we better scope what resources we're interested in? Cpu won't work. Also network.
@pliguori Why will CPU not work? Why will network not work? I wanted to check Atlas before I implement sth. like this.
@frosner: for CPU, you'd only be able to find out the current percentage of used/available CPU Time. For network, you don't get anything from nomad client stats. ref: https://www.nomadproject.io/docs/http/client-stats.html
I was trying it out. The problem I see is that the API calls should look like this:
- [x] 1. GET /v1/agent/members
- [ ] 2. foreach(member) GET /v1/client/stats
call number 2 would be problematic because in a multi-VLAN deployment you don't have ensured communication to all agents.
I thought about /v1/node (https://www.nomadproject.io/docs/http/node.html). When you use the CLI and go for nomad node-status you can see the used out of maximum CPU, RAM and Disk for the node.