summaryrefslogtreecommitdiff
path: root/plugin/business/doh/src/doh.cpp
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2023-04-26 16:12:29 +0800
committerfengweihao <[email protected]>2023-04-26 16:12:29 +0800
commit3523e8a951420ce870425ac13b87b8a3889afa98 (patch)
tree1d66f66546a34a408e68ebc4d6f285ef79689106 /plugin/business/doh/src/doh.cpp
parentb9a8a45540e7af94cf67c133963a2a28c75ddb9f (diff)
fieldstat3的metrc支持输出vsysid
Diffstat (limited to 'plugin/business/doh/src/doh.cpp')
-rw-r--r--plugin/business/doh/src/doh.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/business/doh/src/doh.cpp b/plugin/business/doh/src/doh.cpp
index d622f5e..3cde45e 100644
--- a/plugin/business/doh/src/doh.cpp
+++ b/plugin/business/doh/src/doh.cpp
@@ -862,6 +862,7 @@ void doh_send_metric_log(const struct tfe_stream * stream, struct doh_ctx *ctx,
size_t c2s_byte_num = 0, s2c_byte_num =0;
struct tfe_fieldstat_metric_t *fieldstat = (struct tfe_fieldstat_metric_t *)tfe_bussiness_resouce_get(DYNAMIC_FIELDSTAT);
+ fieldstat->tags[thread_id][TAG_VSYS_ID].value_int = ctx->result->vsys_id;
fieldstat->tags[thread_id][TAG_RULE_ID].value_int = ctx->result->config_id;
fieldstat->tags[thread_id][TAG_ACTION].value_int = 48;
fieldstat->tags[thread_id][TAG_SUB_ACTION].value_str = "redirect";