diff options
| author | fumingwei <[email protected]> | 2020-11-16 15:20:55 +0800 |
|---|---|---|
| committer | fumingwei <[email protected]> | 2020-11-16 15:20:55 +0800 |
| commit | e50cfa9767bf558876709345d7dfb451ccf8f68f (patch) | |
| tree | b785aae6d18290189056dce58ea023a81110ff44 /entry | |
| parent | 308813f9e6d3c44be95823458cb4f78e0b302806 (diff) | |
1.增加fs_stat 初始化的OUPUT_PROMETHEUS
Diffstat (limited to 'entry')
| -rw-r--r-- | entry/src/kni_entry.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/entry/src/kni_entry.cpp b/entry/src/kni_entry.cpp index a01cdc8..4c1bde5 100644 --- a/entry/src/kni_entry.cpp +++ b/entry/src/kni_entry.cpp @@ -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; |
