Skip to content

Data model

This is a quick copy of the data structure available in elasticsearch / kibana.

Reference

===========================================================
OUTPUT - REFERENCE
===========================================================

-------------------------------------------
Global Output JSON/GELF
-------------------------------------------

cmt_group          : Customer / Platform ...
cmt_node           : VM / instance
cmt_id             : group.node.module.check  => primary key
cmt_node_env       : prod / qa / test / dev ...
cmt_node_role      : string - free
cmt_node_location  : geographical / hosting
cmt_module         : module name
cmt_check          : check name (user choosen string in config)
cmt_version        : ex "1.6.1"  // new in 1.6.1 by the way
[cmt_notification] : nature of alert if any : 1 = alert, 2 = warning, 3 = notice
cmt_message        : one line for human / full recap / id. compact mode
[cmt_tag_XXX]      : tag values ; = 1 or = given value in config

specific
  +cmt_*module*_*

+GELF mandatory fields (for Graylog targets)
  source: group_node
  short_message
  timestamps

load

-------------------------------------------
Module: load
-------------------------------------------

cmt_load1: #float
cmt_load5: #float
cmt_load15: #float

cpu

-------------------------------------------
Module: cpu
-------------------------------------------

cmt_cpu: #float

memory

-------------------------------------------
Module: memory
-------------------------------------------

cmt_memory_available: #int (bytes)
cmt_memory_used: #int (bytes)
cmt_memory_percent: #float (percent)

swap

-------------------------------------------
Module: swap
-------------------------------------------

cmt_swap_used: #int (bytes)
cmt_swap_percent: #float (percent)

boottime

-------------------------------------------
Module: boottime
-------------------------------------------

cmt_boottime_days: #int (days)
cmt_boottime_seconds: #int (seconds)

mount

-------------------------------------------
Module: mount
-------------------------------------------

cmt_mount            : /path/to/mount

disk

-------------------------------------------
Module: disk
-------------------------------------------

cmt_disk         : /path/to/disk
cmt_disk_total   : #int (bytes)
cmt_disk_free    : #int (bytes)
cmt_disk_percent : #float (percent)  [used]

process

-------------------------------------------
Module: process
-------------------------------------------

cmt_process_name: string   (config name, not process real name)
cmt_process_cpu: float?
cmt_process_memory: int (bytes)

url

-------------------------------------------
Module: url
-------------------------------------------

cmt_url: url string
cmt_url_name: url name
cmt_url_msec: int        [response time in millisecond if available]

ping

-------------------------------------------
Module: ping
-------------------------------------------

cmt_ping: hostname

folder

-------------------------------------------
Module: folder
-------------------------------------------
2020/10/07 - v0.7
2020/10/20 - v0.9 : + recursive: yes/no

cmt_folder_name            : name
cmt_folder_path            : path
cmt_folder_files           : #count
cmt_folder_dirs            : #count
cmt_folder_size            : #bytes
cmt_folder_size_max        : #bytes (folder)
cmt_folder_size_min        : #bytes (folder)
cmt_folder_age_min         :
cmt_folder_age_max         :

certificate

-------------------------------------------
Module: certificate
-------------------------------------------
2020/12/05 - V1.1

cmt_certificate_name          string         # entry name in conf.yml
cmt_certificate_host          string         # host:port
cmt_certificate_seconds       int (seconds)  # seconds before expiration
cmt_certificate_days          int (days)     # days before expiration
cmt_certificate_subject       string         # domain/subject name

socket

-------------------------------------------
Module: socket
-------------------------------------------
2020/12/06 - V1.1

cmt_socket_name      : string
cmt_socket_type      : local/remote
cmt_socket_proto     : tcp/udp
cmt_socket_host      : host:port
cmt_socket_count     : int (established)
cmt_socket_alive     : yes/no  [LISTEN]
cmt_socket_ping      : ok/nok

send

-------------------------------------------
Module: send
-------------------------------------------
2021/03/21 - V1.4

cmt_XXXXX            : attribute/value as specified in configuration

mysql

-------------------------------------------
Module: mysql
-------------------------------------------
2021/07/18 - V1.8

cmt_mysql_version       :  10.3.23-MariaDB-1:10.3.23+maria~bionic
cmt_mysql_connection    :  2
cmt_mysql_runner        :  14
cmt_mysql_memory        :  277474777 bytes  [277.5 MB]
cmt_mysql_read_rate     :  20.5 - r/sec
cmt_mysql_write_rate    :  14.3 - w/sec
cmt_mysql_query_rate    :  60.2 - q/sec
cmt_mysql_cx_rate       :  0.8 - connection/sec
cmt_mysql_slave_io_run  :  Yes - Slave_IO_Running
cmt_mysql_slave_sql_run :  Yes - Slave_SQL_Running
cmt_mysql_slave_mpos    :  mysql-bin.000004 - Master_Log_File
cmt_mysql_slave_rpos    :  mysql-bin.000004 - Relay_Master_Log_File
cmt_mysql_slave_behind  :  0 - Seconds_Behind_Master

Deprecated

V1.6
----
cmt_alert
cmt_warning
cmt_notice
=> replaced by cmt_alert + cmt_severity