TFE 适配 fieldstat prometheus

This commit is contained in:
luwenpeng
2020-11-13 20:16:22 +06:00
parent 111f5fc4dc
commit 012f4f6602
3 changed files with 14 additions and 1 deletions

View File

@@ -114,6 +114,8 @@ void future_promise_library_init(const char* profile)
const char* app_name="FP";
fs=FS_create_handle();
FS_set_para(fs, APP_NAME, app_name, strlen(app_name)+1);
value=1;
FS_set_para(fs, OUTPUT_PROMETHEUS, &value, sizeof(value));
value=0;
FS_set_para(fs, FLUSH_BY_DATE, &value, sizeof(value));
FS_set_para(fs, OUTPUT_DEVICE, stat_path, strlen(stat_path)+1);