fieldstat3的metrc支持输出vsysid

This commit is contained in:
fengweihao
2023-04-26 16:12:29 +08:00
parent b9a8a45540
commit 3523e8a951
4 changed files with 5 additions and 2 deletions

View File

@@ -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";