diff options
| author | yangwei <[email protected]> | 2023-08-24 02:24:09 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2023-08-25 18:25:49 +0800 |
| commit | eeb5c179a53ba0715d6be1d80f19ee2a2be7bf2b (patch) | |
| tree | f0d67195ce1b99bae6a5ab8c8b78bb77078b062b /src/extensions/sapp_metrics.cpp | |
| parent | 2eaa09ac9778d7c151f574dc8dac2d4bf24f3105 (diff) | |
✨ feat(udp dup stream): 支持udp重复流识别,key为四元组
Diffstat (limited to 'src/extensions/sapp_metrics.cpp')
| -rw-r--r-- | src/extensions/sapp_metrics.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/extensions/sapp_metrics.cpp b/src/extensions/sapp_metrics.cpp index b21b9be..f9a8a02 100644 --- a/src/extensions/sapp_metrics.cpp +++ b/src/extensions/sapp_metrics.cpp @@ -369,6 +369,8 @@ static int sapp_fs2_init(sapp_global_t *global_paramters) p_fs2_rt->fs_id_count_array[SAPP_STAT_UDP_OFFLOAD_STREAM] = FS_register(fs2_handle, FS_STYLE_FIELD, FS_CALC_CURRENT, "Udp_Offload_STM"); p_fs2_rt->fs_id_count_array[SAPP_STAT_UDP_OFFLOAD_PKTS] = FS_register(fs2_handle, FS_STYLE_FIELD, FS_CALC_CURRENT, "Udp_Offload_Pkt"); p_fs2_rt->fs_id_length_array[SAPP_STAT_UDP_OFFLOAD_BYTES] = FS_register(fs2_handle, FS_STYLE_FIELD, FS_CALC_CURRENT, "Udp_Offload_Bit"); + + p_fs2_rt->fs_id_count_array[SAPP_STAT_UDP_DUP_KICK_STREAM] = FS_register(fs2_handle, FS_STYLE_FIELD, FS_CALC_CURRENT, "Udp_DUP_STM"); return 0; } @@ -609,6 +611,9 @@ static int sapp_fs3_init(sapp_global_t *global_paramters) NULL, 0); fs3_rt->metrics_ids[1][SAPP_STAT_UDP_OFFLOAD_BYTES] = fieldstat_register(fs3_handle, FIELD_TYPE_COUNTER, "Udp_Offload_Bit", NULL, 0); + + fs3_rt->metrics_ids[0][SAPP_STAT_UDP_DUP_KICK_STREAM] = fieldstat_register(fs3_handle, FIELD_TYPE_COUNTER, "Udp_DUP_STM", + NULL, 0); return 0; } |
