diff options
| author | tongzongzhen <[email protected]> | 2024-04-18 16:22:56 +0800 |
|---|---|---|
| committer | tongzongzhen <[email protected]> | 2024-04-18 16:22:56 +0800 |
| commit | da470aef89ff01d435132bdee50fedede6dfab5a (patch) | |
| tree | eba1a3dbfe8cd0bce866949fd4133d37f5b653b2 /include | |
| parent | a9ab020ae7acdcef516e100c26633a16a179ad9d (diff) | |
add monit
Diffstat (limited to 'include')
| -rw-r--r-- | include/config.h | 1 | ||||
| -rw-r--r-- | include/monit.h | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 594832a..7bd942c 100644 --- a/include/config.h +++ b/include/config.h @@ -15,6 +15,7 @@ struct config char config_path[PATH_MAX]; char dy_config_path[PATH_MAX]; char zlog_config_path[PATH_MAX]; + char monit_file_path[PATH_MAX]; cpu_set_t cpu_set_io; diff --git a/include/monit.h b/include/monit.h new file mode 100644 index 0000000..b304410 --- /dev/null +++ b/include/monit.h @@ -0,0 +1,11 @@ +#pragma once +#include "common.h" + +struct monit +{ + unsigned nr_stat; + struct record_saving_stat savint_stats[0]; +}; + +void monit_init(unsigned int thread_num); +struct record_saving_stat * record_saving_stat_point_get(unsigned int thread_id);
\ No newline at end of file |
