-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve docker plugin #436
Changes from all commits
9623bff
09fc65a
27b0860
87c9909
61ad287
84ca1f2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ var graphdef = map[string]mp.Graphs{ | |
}, | ||
"docker.memory.#": { | ||
Label: "Docker Memory", | ||
Unit: "integer", | ||
Unit: "bytes", | ||
Metrics: []mp.Metrics{ | ||
{Name: "cache", Label: "Cache", Diff: false, Stacked: true}, | ||
{Name: "rss", Label: "RSS", Diff: false, Stacked: true}, | ||
|
@@ -55,17 +55,17 @@ var graphdef = map[string]mp.Graphs{ | |
}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://www.kernel.org/doc/Documentation/cgroup-v1/blkio-controller.txt
|
||
"docker.blkio.io_serviced.#": { | ||
Label: "Docker BlkIO IOPS", | ||
Unit: "integer", | ||
Unit: "iops", | ||
Metrics: []mp.Metrics{ | ||
{Name: "read", Label: "Read", Diff: true, Stacked: true, Type: "uint64"}, | ||
{Name: "write", Label: "Write", Diff: true, Stacked: true, Type: "uint64"}, | ||
{Name: "sync", Label: "Sync", Diff: true, Stacked: true, Type: "uint64"}, | ||
{Name: "async", Label: "Async", Diff: true, Stacked: true, Type: "uint64"}, | ||
{Name: "read", Label: "Read", Diff: true, Stacked: true, Type: "uint64", Scale: (1.0 / 60.0)}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://www.kernel.org/doc/Documentation/cgroup-v1/blkio-controller.txt
|
||
{Name: "write", Label: "Write", Diff: true, Stacked: true, Type: "uint64", Scale: (1.0 / 60.0)}, | ||
{Name: "sync", Label: "Sync", Diff: true, Stacked: true, Type: "uint64", Scale: (1.0 / 60.0)}, | ||
{Name: "async", Label: "Async", Diff: true, Stacked: true, Type: "uint64", Scale: (1.0 / 60.0)}, | ||
}, | ||
}, | ||
"docker.blkio.io_service_bytes.#": { | ||
Label: "Docker BlkIO Bytes", | ||
Unit: "integer", | ||
Unit: "bytes", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://www.kernel.org/doc/Documentation/cgroup-v1/blkio-controller.txt
|
||
Metrics: []mp.Metrics{ | ||
{Name: "read", Label: "Read", Diff: true, Stacked: true, Type: "uint64"}, | ||
{Name: "write", Label: "Write", Diff: true, Stacked: true, Type: "uint64"}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker.memory.#.{cache,rss}
are taken from cgroupmemory.stat
https://www.kernel.org/doc/Documentation/cgroup-v1/memory.txt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw, in many Linux distributions these stats are always zero (but in Docker for Mac non-zero).
ref: https://docs.docker.com/engine/admin/runmetrics/#memory-metrics-memorystat