Commit Graph

59 Commits

Author SHA1 Message Date
Victor Marmol
bf641ddbf2 Better handling of empty filesystems. 2014-12-16 17:31:56 -08:00
Victor Marmol
c5315a6800 Dynamically update FS gauges in a stable way.
Fixes #361.
2014-12-16 10:58:22 -08:00
Victor Marmol
5b7fb6bcc9 Dynamically create the filesystem usage.
Fixes #357.
2014-12-16 09:40:06 -08:00
Rohit Jnagal
afdd1d1e96 Match Filesystem listing with Filesystem Gauge name.
Both are now FS #n.
2014-12-15 19:20:29 +00:00
Victor Marmol
22a0584c41 Merge pull request #345 from incredlabs/httpauth
Added HTTP Auth and HTTP Digest authentication #302
2014-12-12 02:34:11 +08:00
Victor Marmol
875e4ebd6b Merge pull request #346 from incredlabs/updatebars
Made the progress bars and text dynamic #263
2014-12-12 02:14:30 +08:00
Dipankar Sarkar
8d3ea25764 Ran gofmt and made the various changes suggested 2014-12-11 23:18:03 +05:30
Dipankar Sarkar
c8bf81c4fd Updated the humanize function 2014-12-11 23:05:52 +05:30
Dipankar Sarkar
754bfb06b8 Made the progress bars and text dynamic #263 2014-12-11 21:18:05 +05:30
Dipankar Sarkar
f9b1546367 Cleanup and minor fix for digest 2014-12-11 17:48:08 +05:30
Dipankar Sarkar
6798f193fd Added HTTP Auth and HTTP Digest authentication #302 2014-12-11 17:25:43 +05:30
Dipankar Sarkar
51975cad7b Added a Filesystem gauge 2014-12-11 13:10:45 +05:30
Victor Marmol
181e12dda2 Refactoring and fixes of /docker API endpoint.
This canges the output of the Docker endpoint to be a map so that it is
more consistent from single to multiple returns. It also refactors
internally how we handle both types of requests.

Without this PR the /docker API endpoint is broken completely so this
change in format has no effect anyways.

These changes are tested by the upcoming integration tests.
2014-11-19 03:36:18 -08:00
Victor Marmol
ac0b27a4b8 Fix Docker ALL reference 2014-11-17 10:07:40 -08:00
Craig Wickesser
89b039ae9e Include version numbers in resource URLs. 2014-11-14 16:15:36 -05:00
Craig Wickesser
7f718a30d7 fixed formatting 2014-11-13 20:16:12 -05:00
Craig Wickesser
b4e1dbb4f9 Embed bootstrap, jquery and other external dependencies to allow cAdvisor to function without a connection to the Internet per issue #304. 2014-11-13 18:09:29 -05:00
Rohit Jnagal
a4e25f056b Merge pull request #307 from vmarmol/root
Add "Docker containers are here" link to the main page.
2014-11-13 11:23:27 -08:00
Victor Marmol
e7b5a587c6 Add 'Docker containers are here' link to the main page 2014-11-13 11:09:54 -08:00
Victor Marmol
f97e57df88 Simplify how the Docker containers are handled.
This is done by introducting the concept of "namespaces" of container
names. The aliases of a container are under this namespace. Namespace
names are of the form:

//<namespace>/<alias>

This allows us to (within cAdvisor) query all docker containers as
//docker regardless of whether this is a systemd or a non-systemd system.

This does break our ability to handle Docker aliases with the /container
endpoint. I think this is acceptable as our support there was not
consistent between system types.
2014-11-12 18:01:47 -08:00
Victor Marmol
6e89bdef9f Add /docker/ UI endpoint.
Fixes #294
2014-11-07 08:53:52 -08:00
Vishnu Kannan
5e8fecea6a Adding filesystem usage calculation for docker containers. This patch also includes some internal refactoring.
'machine' api now exports a list of all existing 'ext*' filesystems along with the capacity.
2014-10-06 09:51:32 +00:00
Vishnu Kannan
8fd73e7fc0 Adding filesystem stats to db storage drivers. Moved FsStats to info package. 2014-10-01 18:49:10 +00:00
Vishnu Kannan
c21ff1f166 Adding a disk usage progress bar. 2014-10-01 00:28:01 +00:00
Victor Marmol
e22831f1bd Flatten ContainerSpec. 2014-09-19 10:14:22 -07:00
Victor Marmol
9dd8621686 Remove remaining parts of samples and percentiles. 2014-09-15 14:38:51 -07:00
Victor Marmol
467b6f33db Cleanup graph JS and don't show values below 0. 2014-09-10 15:04:28 -07:00
Victor Marmol
0c6fb6cb87 Don't try to draw graphs we don't have data for.
This was specifically a problem with network. We were throwing JS
errors.
2014-09-04 18:52:07 -07:00
Victor Marmol
6ed452f328 Merge pull request #192 from caglar10ur/master
Make (memory) limits human readable
2014-09-04 08:41:13 -07:00
Victor Marmol
613b59f8ce Don't assume 1s between samples in the UI.
Fixes #155
2014-09-03 19:01:51 -07:00
S.Çağlar Onur
27cf0c9963 split size and unit
Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
2014-08-25 21:42:49 -04:00
Rohit Jnagal
b66eb73a78 Add hot memory usage to memory graph.
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-26 00:11:05 +00:00
S.Çağlar Onur
632af98db8 Make (memory) limits human readable (16.00PB v.s 16000000000MB)
Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
2014-08-24 18:01:06 -04:00
Victor Marmol
eba693b3a0 Merge pull request #191 from rjnagal/master
Remove page fault stats from UI
2014-08-22 12:18:17 -05:00
Rohit Jnagal
ac72c056c3 Remove page faults from cadvisor UI.
Page fault data is useful for inference and performance detection, but
it doesn't make sense on the summary UI. We have limited space on the
main container page. Let's use it for main throughput signals. Removing
faults make network stats more prominent too.

Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-08-22 16:57:59 +00:00
Vishnu Kannan
1a24eed18f Fix storage driver buffer duration default value.
The cache will now hold atlest the minimum number of stats required by the UI and more
if the buffer duration is longer than the default.

Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
2014-08-20 20:46:14 +00:00
Vishnu Kannan
3e390e0f33 Use glog instead of 'log' library.
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
2014-08-07 18:38:58 +00:00
monnand
17b0ec576b Merge pull request #132 from vmarmol/ui
Fix some UI todos.
2014-07-28 21:26:17 -04:00
Rohit Jnagal
9b5445e7f3 Fix cpu gauge to show percent of machine cpu capacity being used by the
container. For a container using one full core out on a 4-core machine,
the gauge will show up as 25%.

Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-07-28 22:16:49 +00:00
Victor Marmol
4bf5a1a0c4 Fix some UI todos. 2014-07-26 13:28:33 -07:00
Victor Marmol
1921c1dd74 Handle empty stats in the UI. 2014-07-25 08:48:10 -07:00
Victor Marmol
02b06eab65 Merge pull request #124 from rjnagal/cpumask
Fix cpu limit to report cpu shares.
2014-07-24 16:55:34 -07:00
Rohit Jnagal
befc11b899 Fix cpu limit to report cpu shares.
It is currently treating shares as millicores.

Changed 'CPU Limit 1.024 cores' to 'CPU shares 1024 shares'.

Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-07-24 23:31:53 +00:00
Victor Marmol
8000237ff7 Request 60s of container history and no samples in the UI. 2014-07-24 11:12:28 -07:00
Rohit Jnagal
1fa48e8c39 Fix handling of cpumask for docker driver. Raw driver still reports all
cpus. Will fix it to read cpumask for cgroup seperately.

Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-07-24 01:50:32 +00:00
Vishnu Kannan
41d9275b51 Fixed network stats handling. The UI now reports network errors. 2014-07-23 22:24:43 +00:00
Vishnu Kannan
106787f850 Adding network bytes tx, rx and errors to the frontend. Network errors chart is not exposed in the UI yet. 2014-07-23 19:15:28 +00:00
Nan Deng
c7f69c2382 move function into test 2014-07-10 10:41:20 -07:00
Nan Deng
4d0b365d43 let users decide how many stats/samples they want to retrieve 2014-07-07 22:04:30 -07:00
Nan Monnand Deng
421fd762a5 fix bug introduced by pr #69 2014-06-29 20:22:13 -07:00