Commit Graph

1343 Commits

Author SHA1 Message Date
Diptanu Choudhury
3932eb8c7b Fixed the svc id generation scheme while pruning services 2016-06-07 08:14:11 -07:00
Diptanu Choudhury
8c931a12ee Returning an error if stats collection hasn't started yet for a new docker container 2016-06-06 18:52:54 -07:00
Diptanu Choudhury
1e2ebced8d Getting inodes used percent back 2016-06-06 16:10:34 -07:00
Diptanu Choudhury
6f54b4aa02 Removing inode percent since it doesn't work in some cases 2016-06-06 16:10:34 -07:00
Alex Dadgar
c1c175010a Handle errors during stats collection 2016-06-03 14:23:18 -07:00
Diptanu Choudhury
19b3411604 Merge pull request #1226 from hashicorp/f-push-stats
Push Resource Usage stats to remote sinks
2016-06-02 23:14:59 +02:00
Diptanu Choudhury
63dd00a2f3 Enqueing metrics only if they are not nil 2016-06-02 17:14:15 -04:00
Diptanu Choudhury
a9f02036c7 Sending metrics for tasks as well 2016-06-01 16:42:16 +02:00
Alex Dadgar
757bc66321 fix wait result being nil and some panics in the cli 2016-05-31 23:09:05 +00:00
Diptanu Choudhury
fe7f05a6e7 Pushing host stats 2016-05-31 04:05:47 +02:00
Diptanu Choudhury
c760d5910f Renamed error message in alloc endpoint 2016-05-28 20:03:52 -07:00
Diptanu Choudhury
951b5532fd Added a test to make sure task runner is collecting stats 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
993675dd4e Added a test for docker 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
15e79c3783 Changing the api of the stats endpoints 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
68ec1f37ad Implemented the resource usage ts since a time 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
0b868e07cb Initializing the ring buffer with no cells 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
2571ea61bb Initializing the ring buffer with no cells 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
f16191c297 comments 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
f765e82a11 Stopping the metrics collector timers using defer and starting to collect host stats right away 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
03c9d94a2b Making the call to Stats on a go-routine 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
b51b08b39e Added a test to validate we are collecting stats 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
1c635ead2d Fixing the alloc runner tests 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
c99733e8c7 Fixed the compilation on linux 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
71d3361f79 creating the host cpu percent calculator lazily 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
2c5233814a simplified the stats method in basic executor 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
f59ad3da53 Fixed the logic of scanpids 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
3a8b15242f Added comments 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
73f05942f2 Refactored the api for NewHostStatsCollector 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
31af4e0ac4 Changed signature of Allocation Stats Reporter 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
3a2cce2419 Simplified the docker stats collection 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
584c1e34fb Incorporated review comments for executor 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
bf6c034fec Making the stats collection interval and number of data points to keep in memory configurable 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
cf8861e3e6 Renamed monitorUsage method 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
95a3ca8524 Changed the signature of ResourceUsageTS 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
2b1f3896cc Acquiring locks before iterating allocations and tasks 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
4491c2b0e8 Added disk usage to node status 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
1183037d56 Added uptime to node stats 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
aee9db02d5 Showing host resource usage stats 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
6132ccc230 Added pidstats in task resource usage struct 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
3192e318e9 Renamed CpuUsage to CpuStats 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
458b7014e4 Added a test for calculating cpu stats 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
3dc28bd871 Stopping stats collection of tasks which has been destroyed 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
16f298fb95 Fixed the percentage calculation for cgroups 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
df68129e5a Added some docs 2016-05-28 19:59:03 -07:00
Diptanu Choudhury
b7158be541 Added locks to RingBuf 2016-05-28 19:59:03 -07:00
Diptanu Choudhury
98068678f1 Implemented nomad cpu percentage calculator 2016-05-28 19:59:03 -07:00
Diptanu Choudhury
30cbfe1f71 Implemented cpu stats 2016-05-28 19:51:22 -07:00
Diptanu Choudhury
ea1370d426 Fixed implementation of the docker stats 2016-05-28 19:51:22 -07:00
Diptanu Choudhury
9a851a11ee Added the PidStats method on the executor 2016-05-28 19:42:34 -07:00
Diptanu Choudhury
c85b4de46a Adding a query param to return time series of stats 2016-05-28 19:42:34 -07:00