diff options
| author | luwenpeng <[email protected]> | 2020-11-13 20:16:22 +0600 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2020-11-13 20:55:56 +0600 |
| commit | 012f4f66023ba7b794508e10faceec74056ba952 (patch) | |
| tree | c7260d76ebe6311a1ddbc0db762a20844c432f68 /common/src/tfe_future.cpp | |
| parent | 111f5fc4dc229574268e5a9580b815b7afd8269c (diff) | |
TFE 适配 fieldstat prometheusv4.3.21-202011
Diffstat (limited to 'common/src/tfe_future.cpp')
| -rw-r--r-- | common/src/tfe_future.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/src/tfe_future.cpp b/common/src/tfe_future.cpp index 6512a66..32afd04 100644 --- a/common/src/tfe_future.cpp +++ b/common/src/tfe_future.cpp @@ -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); |
