Skip to content

Instantly share code, notes, and snippets.

@niedbalski
Created March 5, 2021 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niedbalski/0175307b84b6878f640c32f8a38de6b5 to your computer and use it in GitHub Desktop.
Save niedbalski/0175307b84b6878f640c32f8a38de6b5 to your computer and use it in GitHub Desktop.
import:
- https://raw.githubusercontent.com/niedbalski/repeat/master/collections/netstat.yaml
- https://raw.githubusercontent.com/niedbalski/repeat/master/collections/sockstat.yaml
- https://raw.githubusercontent.com/niedbalski/repeat/master/collections/lxc.yaml
collections:
# sar:
# run-once: true
# exit-codes: 0 127 126
# script: |
# #!/bin/bash
# sudo sar -A 1 -o $(hostname)-hypervisor.sar
process_list:
command: ps aux --no-headers
run-every: 10s
exit-codes: any
store: database
database:
map-values:
field-separator: " "
fields:
- name: rss
type: int
field-index: 5
- name: vsz
type: int
field-index: 4
- name: pid
type: string
field-index: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment