Menu
Public repository / dcc3eb9a6a7cc0d8d9814f0ea82d2c8b8c76f163
AkurAI-Monitor / scripts/metric-contract.sh
Latest change 8bade644cef8ddaa358cc88eb6017c8e64d5a6e4 - AKURAI-MONITOR-7 monitor processes, docker, systemd; fix #errors alert delivery by Ólafur Búi Ólafsson
#!/usr/bin/env bash # Canonical metric names and sampling semantics shared by the in-process # collector and remote push wrappers. Keep this file dependency-free so it can # be sourced by systemd-installed agents and checked in CI. METRIC_CPU_USAGE='cpu.usage' METRIC_MEM_TOTAL='mem.total_kb' METRIC_MEM_USED='mem.used_kb' METRIC_MEM_AVAILABLE='mem.available_kb' METRIC_MEM_USED_PCT='mem.used_pct' METRIC_DISK_ROOT_TOTAL='disk.root.total_gb' METRIC_DISK_ROOT_USED='disk.root.used_gb' METRIC_DISK_ROOT_USED_PCT='disk.root.used_pct' METRIC_LOAD_1M='load.1m' METRIC_LOAD_5M='load.5m' METRIC_LOAD_15M='load.15m' METRIC_UPTIME='uptime.seconds' METRIC_NET_SAMPLING='one-second-window-delta' METRIC_NET_RX_SUFFIX='rx_bytes' METRIC_NET_TX_SUFFIX='tx_bytes' METRIC_DISK_SCOPE='root' METRIC_SYSTEMD_FAILED='systemd.units.failed' METRIC_DOCKER_RUNNING='docker.containers.running'