Skip to content

Commit

Permalink
docs(examples): add full system info config
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeStanger committed Oct 16, 2022
1 parent e4e72d8 commit a06c4bc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions examples/sys-info.corn
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
end = [
{
type = "sys-info"

interval.memory = 30
interval.cpu = 1
interval.temps = 5
interval.disks = 300
interval.networks = 3

format = [
" {cpu-percent}% | {temp-c:k10temp-Tccd1}°C"
" {memory-used} / {memory-total} GB ({memory-percent}%)"
"| {swap-used} / {swap-total} GB ({swap-percent}%)"
" {disk-used:/} / {disk-total:/} GB ({disk-percent:/}%)"
"李 {net-down:enp39s0} / {net-up:enp39s0} Mbps"
"猪 {load-average:1} | {load-average:5} | {load-average:15}"
" {uptime}"
]
}
]
}

0 comments on commit a06c4bc

Please sign in to comment.