1.增加fs_stat 初始化的OUPUT_PROMETHEUS

This commit is contained in:
fumingwei
2020-11-16 15:20:55 +08:00
parent 308813f9e6
commit e50cfa9767

View File

@@ -2118,6 +2118,10 @@ static struct kni_field_stat_handle * fs_init(const char *profile){
FS_set_para(handle, STAT_CYCLE, &value, sizeof(value));
value = 4096;
FS_set_para(handle, MAX_STAT_FIELD_NUM, &value, sizeof(value));
value=1;
FS_set_para(handle, OUPUT_PROMETHEUS, &value, sizeof(value));
fs_handle = ALLOC(struct kni_field_stat_handle, 1);
fs_handle->handle = handle;