# NAME: app name;
# METRIC_NAME: app metric name;
# METRIC_RELATION:the relation between the alarm and the resume value; 
# ALARM: alarm value;
# RESUME: alarm resume value;
# PATH: app metric file path;

# 2025-12-02: New Feature
# MONITOR_THREADS: monitor app threads if on, default is off;
# PID: app pid;
# THREADS_CPU_ALARM: cpu alarm for app threads;
# THREADS_CPU_STAT_COUNTS: cpu get stat counts in one monitor loop, min value is 1 and max value is 50;
# THREADS_CPU_STAT_PERIOD: The time interval for retrieving CPU statistical information, that is, the time interval for continuously retrieving CPU statistical information within one monitoring cycle(PERIOD).

# *****************************************************************************************************
# NOTE: (THREADS_CPU_STAT_COUNT-1) * THREADS_CPU_STAT_PERIOD should be less than or equal to the PERIOD
#******************************************************************************************************

# MONITOR_THREADS must be set firstly, default is off
MONITOR_THREADS="off"
NAME="mysql"
PID="1"

#METRIC_NAME should be the same as the value in METRIC_PATH
METRIC_NAME="IOPS"

#METRIC_RELATION indicates the relation between the alarm and the resume value.
#The value is greater or less: 
#greater indicates that the alarm value is greater than resume. When metric value >= metric_alarm, alarm it
#less indicates that the alarm value is smaller than resume. When metric value <= metric_alarm, alarm it
METRIC_RELATION="less"

ALARM="1000"
RESUME="1500"
METRIC_PATH="/opt/mysql/metric"
PERIOD="10"

#TIME_DIFF indicates that when the application monitors an exception, to get system exception information whose time difference is less than TIME_DIFF
TIME_DIFF="60"

THREADS_CPU_ALARM="80"
THREADS_CPU_STAT_COUNTS="2"
THREADS_CPU_STAT_PERIOD="1"