Skip to content

Commit 90c6f10

Browse files
committed
Add cgroup memory stats
Fix cgroup cpuacct stats
1 parent 47e847f commit 90c6f10

6 files changed

+47611
-3305
lines changed

.clang-format

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
BasedOnStyle: WebKit
3+
ColumnLimit: '120'
4+
...

README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ njmon_collector -C -s3 -f -m /home
2828
```
2929

3030
to produce in the `/home` folder a JSON with CPU/memory/disk/network stats for the container.
31-
Whenever you want you can either
32-
- inject that JSON inside InfluxDB (mostly useful for **persistent** containers that you want to monitor in real-time);
31+
Whenever you want you can either:
32+
33+
- inject that JSON inside InfluxDB (mostly useful for **persistent** containers that you want to monitor in real-time);
3334
this is not covered by this README;
34-
- use the `njmonchart` utility to convert that JSON into a self-contained HTML file (mostly useful for **ephemeral** containers);
35+
- use the `njmonchart` utility to convert that JSON into a self-contained HTML file (mostly useful for **ephemeral** containers);
3536
see below for practical examples.
3637

3738

@@ -43,6 +44,10 @@ To plot the JSON containing the collected statistics, simply launch:
4344
njmon_chart /path/to/json-stats.json /path/to/json-stats.html
4445
```
4546

47+
Example of resulting output files:
48+
49+
- [baremetal1](examples/baremetal1_20190413_1605.html)
50+
4651

4752
## Links
4853

0 commit comments

Comments
 (0)