AkurAI Build
Menu

Public repository / b6107870452cfdfe4af6d140ebac6622434956ff

AkurAI-Monitor / scripts/metric-contract.sh

Latest change b6107870452cfdfe4af6d140ebac6622434956ff - AKURAI-MONITOR-3 share collector metric contract 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'