diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-03-15 14:09:20 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-03-15 14:39:43 +0100 |
commit | 1c3ef69faa6927ac732a079c7f8efcb20bf1020e (patch) | |
tree | 71a1aea905394aecbbc5ddc2ae8c981e848db2b9 /examples/c-collectd | |
parent | 9a06b97473f1c00aad3780572b5139c930c83b64 (diff) |
nDPIsrvd collectd-exec overhaul.
* Install targets updated.
* Removed nDPIsrvd.h token validation function (done automatically by token_get).
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples/c-collectd')
-rw-r--r-- | examples/c-collectd/c-collectd.c | 345 | ||||
-rw-r--r-- | examples/c-collectd/plugin_nDPIsrvd.conf | 15 | ||||
-rw-r--r-- | examples/c-collectd/plugin_nDPIsrvd_types.db | 57 |
3 files changed, 408 insertions, 9 deletions
diff --git a/examples/c-collectd/c-collectd.c b/examples/c-collectd/c-collectd.c index 5418f11a2..291676817 100644 --- a/examples/c-collectd/c-collectd.c +++ b/examples/c-collectd/c-collectd.c @@ -40,6 +40,56 @@ static struct uint64_t flow_detected_count; uint64_t flow_detection_update_count; uint64_t flow_not_detected_count; + + uint64_t flow_packet_count; + uint64_t flow_total_bytes; + uint64_t flow_risky_count; + + uint64_t flow_breed_safe_count; + uint64_t flow_breed_acceptable_count; + uint64_t flow_breed_fun_count; + uint64_t flow_breed_unsafe_count; + uint64_t flow_breed_potentially_dangerous_count; + uint64_t flow_breed_dangerous_count; + uint64_t flow_breed_unrated_count; + uint64_t flow_breed_unknown_count; + + uint64_t flow_category_media_count; + uint64_t flow_category_vpn_count; + uint64_t flow_category_email_count; + uint64_t flow_category_data_transfer_count; + uint64_t flow_category_web_count; + uint64_t flow_category_social_network_count; + uint64_t flow_category_download_count; + uint64_t flow_category_game_count; + uint64_t flow_category_chat_count; + uint64_t flow_category_voip_count; + uint64_t flow_category_database_count; + uint64_t flow_category_remote_access_count; + uint64_t flow_category_cloud_count; + uint64_t flow_category_network_count; + uint64_t flow_category_collaborative_count; + uint64_t flow_category_rpc_count; + uint64_t flow_category_streaming_count; + uint64_t flow_category_system_count; + uint64_t flow_category_software_update_count; + uint64_t flow_category_music_count; + uint64_t flow_category_video_count; + uint64_t flow_category_shopping_count; + uint64_t flow_category_productivity_count; + uint64_t flow_category_file_sharing_count; + uint64_t flow_category_mining_count; + uint64_t flow_category_malware_count; + uint64_t flow_category_advertisment_count; + uint64_t flow_category_other_count; + uint64_t flow_category_unknown_count; + + uint64_t flow_l3_ip4_count; + uint64_t flow_l3_ip6_count; + uint64_t flow_l3_other_count; + uint64_t flow_l4_tcp_count; + uint64_t flow_l4_udp_count; + uint64_t flow_l4_other_count; } collectd_statistics = {}; static int set_collectd_timer(void) @@ -177,7 +227,8 @@ static void print_collectd_exec_output(void) printf(COLLECTD_PUTVAL_N_FORMAT(flow_new_count) COLLECTD_PUTVAL_N_FORMAT(flow_end_count) COLLECTD_PUTVAL_N_FORMAT(flow_idle_count) COLLECTD_PUTVAL_N_FORMAT(flow_guessed_count) COLLECTD_PUTVAL_N_FORMAT(flow_detected_count) COLLECTD_PUTVAL_N_FORMAT(flow_detection_update_count) - COLLECTD_PUTVAL_N_FORMAT(flow_not_detected_count), + COLLECTD_PUTVAL_N_FORMAT(flow_not_detected_count) COLLECTD_PUTVAL_N_FORMAT(flow_packet_count) + COLLECTD_PUTVAL_N_FORMAT(flow_total_bytes) COLLECTD_PUTVAL_N_FORMAT(flow_risky_count), COLLECTD_PUTVAL_N(flow_new_count), COLLECTD_PUTVAL_N(flow_end_count), @@ -185,7 +236,91 @@ static void print_collectd_exec_output(void) COLLECTD_PUTVAL_N(flow_guessed_count), COLLECTD_PUTVAL_N(flow_detected_count), COLLECTD_PUTVAL_N(flow_detection_update_count), - COLLECTD_PUTVAL_N(flow_not_detected_count)); + COLLECTD_PUTVAL_N(flow_not_detected_count), + COLLECTD_PUTVAL_N(flow_packet_count), + COLLECTD_PUTVAL_N(flow_total_bytes), + COLLECTD_PUTVAL_N(flow_risky_count)); + + printf(COLLECTD_PUTVAL_N_FORMAT(flow_breed_safe_count) COLLECTD_PUTVAL_N_FORMAT(flow_breed_acceptable_count) + COLLECTD_PUTVAL_N_FORMAT(flow_breed_fun_count) COLLECTD_PUTVAL_N_FORMAT(flow_breed_unsafe_count) + COLLECTD_PUTVAL_N_FORMAT(flow_breed_potentially_dangerous_count) + COLLECTD_PUTVAL_N_FORMAT(flow_breed_dangerous_count) + COLLECTD_PUTVAL_N_FORMAT(flow_breed_unrated_count) + COLLECTD_PUTVAL_N_FORMAT(flow_breed_unknown_count), + + COLLECTD_PUTVAL_N(flow_breed_safe_count), + COLLECTD_PUTVAL_N(flow_breed_acceptable_count), + COLLECTD_PUTVAL_N(flow_breed_fun_count), + COLLECTD_PUTVAL_N(flow_breed_unsafe_count), + COLLECTD_PUTVAL_N(flow_breed_potentially_dangerous_count), + COLLECTD_PUTVAL_N(flow_breed_dangerous_count), + COLLECTD_PUTVAL_N(flow_breed_unrated_count), + COLLECTD_PUTVAL_N(flow_breed_unknown_count)); + + printf( + COLLECTD_PUTVAL_N_FORMAT(flow_category_media_count) COLLECTD_PUTVAL_N_FORMAT( + flow_category_vpn_count) COLLECTD_PUTVAL_N_FORMAT(flow_category_email_count) + COLLECTD_PUTVAL_N_FORMAT(flow_category_data_transfer_count) COLLECTD_PUTVAL_N_FORMAT( + flow_category_web_count) COLLECTD_PUTVAL_N_FORMAT(flow_category_social_network_count) + COLLECTD_PUTVAL_N_FORMAT(flow_category_download_count) COLLECTD_PUTVAL_N_FORMAT( + flow_category_game_count) COLLECTD_PUTVAL_N_FORMAT(flow_category_chat_count) + COLLECTD_PUTVAL_N_FORMAT(flow_category_voip_count) COLLECTD_PUTVAL_N_FORMAT( + flow_category_database_count) COLLECTD_PUTVAL_N_FORMAT(flow_category_remote_access_count) + COLLECTD_PUTVAL_N_FORMAT(flow_category_cloud_count) COLLECTD_PUTVAL_N_FORMAT( + flow_category_network_count) COLLECTD_PUTVAL_N_FORMAT(flow_category_collaborative_count) + COLLECTD_PUTVAL_N_FORMAT(flow_category_rpc_count) COLLECTD_PUTVAL_N_FORMAT( + flow_category_streaming_count) COLLECTD_PUTVAL_N_FORMAT(flow_category_system_count) + COLLECTD_PUTVAL_N_FORMAT(flow_category_software_update_count) COLLECTD_PUTVAL_N_FORMAT( + flow_category_music_count) COLLECTD_PUTVAL_N_FORMAT(flow_category_video_count) + COLLECTD_PUTVAL_N_FORMAT(flow_category_shopping_count) + COLLECTD_PUTVAL_N_FORMAT(flow_category_productivity_count) + COLLECTD_PUTVAL_N_FORMAT(flow_category_file_sharing_count) + COLLECTD_PUTVAL_N_FORMAT(flow_category_mining_count) + COLLECTD_PUTVAL_N_FORMAT(flow_category_malware_count) + COLLECTD_PUTVAL_N_FORMAT(flow_category_advertisment_count) + COLLECTD_PUTVAL_N_FORMAT(flow_category_other_count) + COLLECTD_PUTVAL_N_FORMAT(flow_category_unknown_count), + + COLLECTD_PUTVAL_N(flow_category_media_count), + COLLECTD_PUTVAL_N(flow_category_vpn_count), + COLLECTD_PUTVAL_N(flow_category_email_count), + COLLECTD_PUTVAL_N(flow_category_data_transfer_count), + COLLECTD_PUTVAL_N(flow_category_web_count), + COLLECTD_PUTVAL_N(flow_category_social_network_count), + COLLECTD_PUTVAL_N(flow_category_download_count), + COLLECTD_PUTVAL_N(flow_category_game_count), + COLLECTD_PUTVAL_N(flow_category_chat_count), + COLLECTD_PUTVAL_N(flow_category_voip_count), + COLLECTD_PUTVAL_N(flow_category_database_count), + COLLECTD_PUTVAL_N(flow_category_remote_access_count), + COLLECTD_PUTVAL_N(flow_category_cloud_count), + COLLECTD_PUTVAL_N(flow_category_network_count), + COLLECTD_PUTVAL_N(flow_category_collaborative_count), + COLLECTD_PUTVAL_N(flow_category_rpc_count), + COLLECTD_PUTVAL_N(flow_category_streaming_count), + COLLECTD_PUTVAL_N(flow_category_system_count), + COLLECTD_PUTVAL_N(flow_category_software_update_count), + COLLECTD_PUTVAL_N(flow_category_music_count), + COLLECTD_PUTVAL_N(flow_category_video_count), + COLLECTD_PUTVAL_N(flow_category_shopping_count), + COLLECTD_PUTVAL_N(flow_category_productivity_count), + COLLECTD_PUTVAL_N(flow_category_file_sharing_count), + COLLECTD_PUTVAL_N(flow_category_mining_count), + COLLECTD_PUTVAL_N(flow_category_malware_count), + COLLECTD_PUTVAL_N(flow_category_advertisment_count), + COLLECTD_PUTVAL_N(flow_category_other_count), + COLLECTD_PUTVAL_N(flow_category_unknown_count)); + + printf(COLLECTD_PUTVAL_N_FORMAT(flow_l3_ip4_count) COLLECTD_PUTVAL_N_FORMAT(flow_l3_ip6_count) + COLLECTD_PUTVAL_N_FORMAT(flow_l3_other_count) COLLECTD_PUTVAL_N_FORMAT(flow_l4_tcp_count) + COLLECTD_PUTVAL_N_FORMAT(flow_l4_udp_count) COLLECTD_PUTVAL_N_FORMAT(flow_l4_other_count), + + COLLECTD_PUTVAL_N(flow_l3_ip4_count), + COLLECTD_PUTVAL_N(flow_l3_ip6_count), + COLLECTD_PUTVAL_N(flow_l3_other_count), + COLLECTD_PUTVAL_N(flow_l4_tcp_count), + COLLECTD_PUTVAL_N(flow_l4_udp_count), + COLLECTD_PUTVAL_N(flow_l4_other_count)); memset(&collectd_statistics, 0, sizeof(collectd_statistics)); } @@ -248,6 +383,20 @@ static int mainloop(int epollfd) return 0; } +static uint64_t get_total_flow_bytes(struct nDPIsrvd_socket * const sock) +{ + nDPIsrvd_ull total_bytes_ull = 0; + + if (TOKEN_VALUE_TO_ULL(TOKEN_GET_SZ(sock, "flow_tot_l4_data_len"), &total_bytes_ull) == CONVERSION_OK) + { + return total_bytes_ull; + } + else + { + return 0; + } +} + static enum nDPIsrvd_callback_return captured_json_callback(struct nDPIsrvd_socket * const sock, struct nDPIsrvd_flow * const flow) { @@ -259,14 +408,44 @@ static enum nDPIsrvd_callback_return captured_json_callback(struct nDPIsrvd_sock if (TOKEN_VALUE_EQUALS_SZ(flow_event_name, "new") != 0) { collectd_statistics.flow_new_count++; + + struct nDPIsrvd_json_token const * const l3_proto = TOKEN_GET_SZ(sock, "l3_proto"); + if (TOKEN_VALUE_EQUALS_SZ(l3_proto, "ip4") != 0) + { + collectd_statistics.flow_l3_ip4_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(l3_proto, "ip6") != 0) + { + collectd_statistics.flow_l3_ip6_count++; + } + else if (l3_proto != NULL) + { + collectd_statistics.flow_l3_other_count++; + } + + struct nDPIsrvd_json_token const * const l4_proto = TOKEN_GET_SZ(sock, "l4_proto"); + if (TOKEN_VALUE_EQUALS_SZ(l3_proto, "tcp") != 0) + { + collectd_statistics.flow_l4_tcp_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(l3_proto, "tcp") != 0) + { + collectd_statistics.flow_l4_udp_count++; + } + else if (l4_proto != NULL) + { + collectd_statistics.flow_l4_other_count++; + } } else if (TOKEN_VALUE_EQUALS_SZ(flow_event_name, "end") != 0) { collectd_statistics.flow_end_count++; + collectd_statistics.flow_total_bytes += get_total_flow_bytes(sock); } else if (TOKEN_VALUE_EQUALS_SZ(flow_event_name, "idle") != 0) { collectd_statistics.flow_idle_count++; + collectd_statistics.flow_total_bytes += get_total_flow_bytes(sock); } else if (TOKEN_VALUE_EQUALS_SZ(flow_event_name, "guessed") != 0) { @@ -275,6 +454,163 @@ static enum nDPIsrvd_callback_return captured_json_callback(struct nDPIsrvd_sock else if (TOKEN_VALUE_EQUALS_SZ(flow_event_name, "detected") != 0) { collectd_statistics.flow_detected_count++; + + if (TOKEN_GET_SZ(sock, "flow_risk") != NULL) + { + collectd_statistics.flow_risky_count++; + } + + struct nDPIsrvd_json_token const * const breed = TOKEN_GET_SZ(sock, "breed"); + if (TOKEN_VALUE_EQUALS_SZ(breed, "Safe") != 0) + { + collectd_statistics.flow_breed_safe_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(breed, "Acceptable") != 0) + { + collectd_statistics.flow_breed_acceptable_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(breed, "Fun") != 0) + { + collectd_statistics.flow_breed_fun_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(breed, "Unsafe") != 0) + { + collectd_statistics.flow_breed_unsafe_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(breed, "Potentially Dangerous") != 0) + { + collectd_statistics.flow_breed_potentially_dangerous_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(breed, "Dangerous") != 0) + { + collectd_statistics.flow_breed_dangerous_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(breed, "Unrated") != 0) + { + collectd_statistics.flow_breed_unrated_count++; + } + else + { + collectd_statistics.flow_breed_unknown_count++; + } + + struct nDPIsrvd_json_token const * const category = TOKEN_GET_SZ(sock, "category"); + if (TOKEN_VALUE_EQUALS_SZ(category, "Media") != 0) + { + collectd_statistics.flow_category_media_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "VPN") != 0) + { + collectd_statistics.flow_category_vpn_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Email") != 0) + { + collectd_statistics.flow_category_email_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "DataTransfer") != 0) + { + collectd_statistics.flow_category_data_transfer_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Web") != 0) + { + collectd_statistics.flow_category_web_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "SocialNetwork") != 0) + { + collectd_statistics.flow_category_social_network_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Download-FileTransfer-FileSharing") != 0) + { + collectd_statistics.flow_category_download_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Game") != 0) + { + collectd_statistics.flow_category_game_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Chat") != 0) + { + collectd_statistics.flow_category_chat_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "VoIP") != 0) + { + collectd_statistics.flow_category_voip_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Database") != 0) + { + collectd_statistics.flow_category_database_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "RemoteAccess") != 0) + { + collectd_statistics.flow_category_remote_access_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Cloud") != 0) + { + collectd_statistics.flow_category_cloud_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Network") != 0) + { + collectd_statistics.flow_category_network_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Collaborative") != 0) + { + collectd_statistics.flow_category_collaborative_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "RPC") != 0) + { + collectd_statistics.flow_category_rpc_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Streaming") != 0) + { + collectd_statistics.flow_category_streaming_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "System") != 0) + { + collectd_statistics.flow_category_system_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "SoftwareUpdate") != 0) + { + collectd_statistics.flow_category_software_update_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Music") != 0) + { + collectd_statistics.flow_category_music_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Video") != 0) + { + collectd_statistics.flow_category_video_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Shopping") != 0) + { + collectd_statistics.flow_category_shopping_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Productivity") != 0) + { + collectd_statistics.flow_category_productivity_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "FileSharing") != 0) + { + collectd_statistics.flow_category_file_sharing_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Mining") != 0) + { + collectd_statistics.flow_category_mining_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Malware") != 0) + { + collectd_statistics.flow_category_malware_count++; + } + else if (TOKEN_VALUE_EQUALS_SZ(category, "Advertisement") != 0) + { + collectd_statistics.flow_category_advertisment_count++; + } + else if (category != NULL) + { + collectd_statistics.flow_category_other_count++; + } + else + { + collectd_statistics.flow_category_unknown_count++; + } } else if (TOKEN_VALUE_EQUALS_SZ(flow_event_name, "detection-update") != 0) { @@ -285,6 +621,11 @@ static enum nDPIsrvd_callback_return captured_json_callback(struct nDPIsrvd_sock collectd_statistics.flow_not_detected_count++; } + if (TOKEN_GET_SZ(sock, "packet_event_name") != NULL) + { + collectd_statistics.flow_packet_count++; + } + return CALLBACK_OK; } diff --git a/examples/c-collectd/plugin_nDPIsrvd.conf b/examples/c-collectd/plugin_nDPIsrvd.conf index 59688b915..eedc9b6c9 100644 --- a/examples/c-collectd/plugin_nDPIsrvd.conf +++ b/examples/c-collectd/plugin_nDPIsrvd.conf @@ -1,13 +1,14 @@ # nDPIsrvd collectd config file LoadPlugin exec <Plugin exec> - Exec "toni" "/usr/bin/nDPIsrvd-collectd" -# Exec "toni" "/usr/bin/nDPIsrvd-collectd" "-s" "127.0.0.1:7000" + Exec "ndpi" "/usr/bin/nDPIsrvd-collectd" +# Exec "ndpi" "/usr/bin/nDPIsrvd-collectd" "-s" "/tmp/ndpid-distributor.sock" +# Exec "ndpi" "/usr/bin/nDPIsrvd-collectd" "-s" "127.0.0.1:7000" </Plugin> # Uncomment for testing -#LoadPlugin write_log -#LoadPlugin rrdtool -#<Plugin rrdtool> -# DataDir "nDPIsrvd-collectd" -#</Plugin> +LoadPlugin write_log +LoadPlugin rrdtool +<Plugin rrdtool> + DataDir "nDPIsrvd-collectd" +</Plugin> diff --git a/examples/c-collectd/plugin_nDPIsrvd_types.db b/examples/c-collectd/plugin_nDPIsrvd_types.db index 9fbdcd93b..7211939c3 100644 --- a/examples/c-collectd/plugin_nDPIsrvd_types.db +++ b/examples/c-collectd/plugin_nDPIsrvd_types.db @@ -1,4 +1,7 @@ # Add those types to collectd types.db +# e.g. `cat plugin_nDPIsrvd_types.db >>/usr/share/collectd/types.db' + +# flow event counters flow_new_count value:GAUGE:0:U flow_end_count value:GAUGE:0:U flow_idle_count value:GAUGE:0:U @@ -6,3 +9,57 @@ flow_guessed_count value:GAUGE:0:U flow_detected_count value:GAUGE:0:U flow_detection_update_count value:GAUGE:0:U flow_not_detected_count value:GAUGE:0:U + +# flow additional counters +flow_packet_count value:GAUGE:0:U +flow_total_bytes value:GAUGE:0:U +flow_risky_count value:GAUGE:0:U + +# flow breed counters +flow_breed_safe_count value:GAUGE:0:U +flow_breed_acceptable_count value:GAUGE:0:U +flow_breed_fun_count value:GAUGE:0:U +flow_breed_unsafe_count value:GAUGE:0:U +flow_breed_potentially_dangerous_count value:GAUGE:0:U +flow_breed_dangerous_count value:GAUGE:0:U +flow_breed_unrated_count value:GAUGE:0:U +flow_breed_unknown_count value:GAUGE:0:U + +# flow category counters +flow_category_media_count value:GAUGE:0:U +flow_category_vpn_count value:GAUGE:0:U +flow_category_email_count value:GAUGE:0:U +flow_category_data_transfer_count value:GAUGE:0:U +flow_category_web_count value:GAUGE:0:U +flow_category_social_network_count value:GAUGE:0:U +flow_category_download_count value:GAUGE:0:U +flow_category_game_count value:GAUGE:0:U +flow_category_chat_count value:GAUGE:0:U +flow_category_voip_count value:GAUGE:0:U +flow_category_database_count value:GAUGE:0:U +flow_category_remote_access_count value:GAUGE:0:U +flow_category_cloud_count value:GAUGE:0:U +flow_category_network_count value:GAUGE:0:U +flow_category_collaborative_count value:GAUGE:0:U +flow_category_rpc_count value:GAUGE:0:U +flow_category_streaming_count value:GAUGE:0:U +flow_category_system_count value:GAUGE:0:U +flow_category_software_update_count value:GAUGE:0:U +flow_category_music_count value:GAUGE:0:U +flow_category_video_count value:GAUGE:0:U +flow_category_shopping_count value:GAUGE:0:U +flow_category_productivity_count value:GAUGE:0:U +flow_category_file_sharing_count value:GAUGE:0:U +flow_category_mining_count value:GAUGE:0:U +flow_category_malware_count value:GAUGE:0:U +flow_category_advertisment_count value:GAUGE:0:U +flow_category_other_count value:GAUGE:0:U +flow_category_unknown_count value:GAUGE:0:U + +# flow l3 / l4 counters +flow_l3_ip4_count value:GAUGE:0:U +flow_l3_ip6_count value:GAUGE:0:U +flow_l3_other_count value:GAUGE:0:U +flow_l4_tcp_count value:GAUGE:0:U +flow_l4_udp_count value:GAUGE:0:U +flow_l4_other_count value:GAUGE:0:U |