05.05.2020

Monitoring FastNetMon via Prometheus

In FastNetMon we have complete support for Prometheus based monitoring. It can be enabled this way (please do not use 0.0.0.0 for production setups and use private ranges for security reasons):

sudo fcli set main prometheus enable
sudo fcli set main prometheus_host 0.0.0.0
sudo fcli set main prometheus_port 9209
sudo fcli commit

After that, you will be able to access metrics via standard Prometheus interface from http://127.0.0.1:9209/metrics

FastNetMon exports all metrics which available using sudo fcli show system_counters command. Example:

# HELP Metric total_simple_packets_processed
# TYPE total_simple_packets_processed counter
total_simple_packets_processed 0
# HELP Metric total_ipv6_packets
# TYPE total_ipv6_packets counter
total_ipv6_packets 0
# HELP Metric non_ip_packets
# TYPE non_ip_packets counter
non_ip_packets 0
# HELP Metric total_unparsed_packets_speed
# TYPE total_unparsed_packets_speed counter
total_unparsed_packets_speed 0
# HELP Metric total_unparsed_packets
# TYPE total_unparsed_packets counter
total_unparsed_packets 0
# HELP Metric total_remote_whitelisted_packets_packets
# TYPE total_remote_whitelisted_packets_packets counter
total_remote_whitelisted_packets_packets 0
# HELP Metric total_flowspec_filtered_packets
# TYPE total_flowspec_filtered_packets counter
total_flowspec_filtered_packets 0
# HELP Metric total_flowspec_whitelist_packets
# TYPE total_flowspec_whitelist_packets counter
total_flowspec_whitelist_packets 0
# HELP Metric traffic_db_errors
# TYPE traffic_db_errors counter
traffic_db_errors 0
# HELP Metric traffic_db_pushed_messages
# TYPE traffic_db_pushed_messages counter
traffic_db_pushed_messages 0
# HELP Metric traffic_db_sampler_seen_packets
# TYPE traffic_db_sampler_seen_packets counter
traffic_db_sampler_seen_packets 0
# HELP Metric traffic_db_sampler_selected_packets
# TYPE traffic_db_sampler_selected_packets counter
traffic_db_sampler_selected_packets 0
# HELP Metric speed_recalculation_time_seconds
# TYPE speed_recalculation_time_seconds gauge
speed_recalculation_time_seconds 0
# HELP Metric speed_recalculation_time_microseconds
# TYPE speed_recalculation_time_microseconds gauge
speed_recalculation_time_microseconds 20
# HELP Metric number_of_non_zero_speed_elements
# TYPE number_of_non_zero_speed_elements gauge
number_of_non_zero_speed_elements 0
# HELP Metric number_of_zero_speed_elements
# TYPE number_of_zero_speed_elements counter
number_of_zero_speed_elements 2
# HELP Metric total_number_of_hosts
# TYPE total_number_of_hosts gauge
total_number_of_hosts 2
# HELP Metric hosts_hash_load_factor_ipv6
# TYPE hosts_hash_load_factor_ipv6 gauge
hosts_hash_load_factor_ipv6 0
# HELP Metric hosts_hash_size_ipv6
# TYPE hosts_hash_size_ipv6 gauge
hosts_hash_size_ipv6 0
# HELP Metric influxdb_writes_total
# TYPE influxdb_writes_total counter
influxdb_writes_total 132
# HELP Metric influxdb_writes_failed
# TYPE influxdb_writes_failed counter
influxdb_writes_failed 0
# HELP Metric netflow_all_protocols_total_flows_speed
# TYPE netflow_all_protocols_total_flows_speed counter
netflow_all_protocols_total_flows_speed 0
# HELP Metric sflow_raw_packet_headers_total_speed
# TYPE sflow_raw_packet_headers_total_speed counter
sflow_raw_packet_headers_total_speed 0
# HELP Metric netflow_total_packets
# TYPE netflow_total_packets counter
netflow_total_packets 0
# HELP Metric netflow_v5_total_packets
# TYPE netflow_v5_total_packets counter
netflow_v5_total_packets 0
# HELP Metric netflow_v5_total_flows
# TYPE netflow_v5_total_flows counter
netflow_v5_total_flows 0
# HELP Metric netflow_v5_duration_less_15_seconds
# TYPE netflow_v5_duration_less_15_seconds counter
netflow_v5_duration_less_15_seconds 0
# HELP Metric netflow_v5_duration_less_30_seconds
# TYPE netflow_v5_duration_less_30_seconds counter
netflow_v5_duration_less_30_seconds 0
# HELP Metric netflow_v5_duration_less_60_seconds
# TYPE netflow_v5_duration_less_60_seconds counter
netflow_v5_duration_less_60_seconds 0
# HELP Metric netflow_v5_duration_less_90_seconds
# TYPE netflow_v5_duration_less_90_seconds counter
netflow_v5_duration_less_90_seconds 0
# HELP Metric netflow_v5_duration_less_180_seconds
# TYPE netflow_v5_duration_less_180_seconds counter
netflow_v5_duration_less_180_seconds 0
# HELP Metric netflow_v5_duraion_exceed_180_seconds
# TYPE netflow_v5_duraion_exceed_180_seconds counter
netflow_v5_duraion_exceed_180_seconds 0
# HELP Metric netflow_v9_total_packets
# TYPE netflow_v9_total_packets counter
netflow_v9_total_packets 0
# HELP Metric netflow_v9_total_flows
# TYPE netflow_v9_total_flows counter
netflow_v9_total_flows 0
# HELP Metric netflow_v9_total_ipv4_packets
# TYPE netflow_v9_total_ipv4_packets counter
netflow_v9_total_ipv4_packets 0
# HELP Metric netflow_v9_total_ipv6_packets
# TYPE netflow_v9_total_ipv6_packets counter
netflow_v9_total_ipv6_packets 0
# HELP Metric netflow_v9_duration_less_15_seconds
# TYPE netflow_v9_duration_less_15_seconds counter
netflow_v9_duration_less_15_seconds 0
# HELP Metric netflow_v9_duration_less_30_seconds
# TYPE netflow_v9_duration_less_30_seconds counter
netflow_v9_duration_less_30_seconds 0
# HELP Metric netflow_v9_duration_less_60_seconds
# TYPE netflow_v9_duration_less_60_seconds counter
netflow_v9_duration_less_60_seconds 0
# HELP Metric netflow_v9_duration_less_90_seconds
# TYPE netflow_v9_duration_less_90_seconds counter
netflow_v9_duration_less_90_seconds 0
# HELP Metric netflow_v9_duration_less_180_seconds
# TYPE netflow_v9_duration_less_180_seconds counter
netflow_v9_duration_less_180_seconds 0
# HELP Metric netflow_v9_duraion_exceed_180_seconds
# TYPE netflow_v9_duraion_exceed_180_seconds counter
netflow_v9_duraion_exceed_180_seconds 0
# HELP Metric ipfix_duration_less_15_seconds
# TYPE ipfix_duration_less_15_seconds counter
ipfix_duration_less_15_seconds 0
# HELP Metric ipfix_duration_less_30_seconds
# TYPE ipfix_duration_less_30_seconds counter
ipfix_duration_less_30_seconds 0
# HELP Metric ipfix_duration_less_60_seconds
# TYPE ipfix_duration_less_60_seconds counter
ipfix_duration_less_60_seconds 0
# HELP Metric ipfix_duration_less_90_seconds
# TYPE ipfix_duration_less_90_seconds counter
ipfix_duration_less_90_seconds 0
# HELP Metric ipfix_duration_less_180_seconds
# TYPE ipfix_duration_less_180_seconds counter
ipfix_duration_less_180_seconds 0
# HELP Metric ipfix_duraion_exceed_180_seconds
# TYPE ipfix_duraion_exceed_180_seconds counter
ipfix_duraion_exceed_180_seconds 0
# HELP Metric netflow_ipfix_total_packets
# TYPE netflow_ipfix_total_packets counter
netflow_ipfix_total_packets 0
# HELP Metric netflow_ipfix_total_flows
# TYPE netflow_ipfix_total_flows counter
netflow_ipfix_total_flows 0
# HELP Metric netflow_ipfix_total_ipv4_packets
# TYPE netflow_ipfix_total_ipv4_packets counter
netflow_ipfix_total_ipv4_packets 0
# HELP Metric netflow_ipfix_total_ipv6_packets
# TYPE netflow_ipfix_total_ipv6_packets counter
netflow_ipfix_total_ipv6_packets 0
# HELP Metric netflow_all_protocols_total_flows
# TYPE netflow_all_protocols_total_flows counter
netflow_all_protocols_total_flows 0
# HELP Metric netflow_broken_packets
# TYPE netflow_broken_packets counter
netflow_broken_packets 0
# HELP Metric template_updates_number_due_to_real_changes
# TYPE template_updates_number_due_to_real_changes counter
template_updates_number_due_to_real_changes 0
# HELP Metric template_update_attempts_with_same_template_data
# TYPE template_update_attempts_with_same_template_data counter
template_update_attempts_with_same_template_data 0
# HELP Metric ipfix_data_packet_number
# TYPE ipfix_data_packet_number counter
ipfix_data_packet_number 0
# HELP Metric ipfix_data_templates_number
# TYPE ipfix_data_templates_number counter
ipfix_data_templates_number 0
# HELP Metric ipfix_options_templates_number
# TYPE ipfix_options_templates_number counter
ipfix_options_templates_number 0
# HELP Metric ipfix_packets_with_unknown_templates
# TYPE ipfix_packets_with_unknown_templates counter
ipfix_packets_with_unknown_templates 0
# HELP Metric netflow9_data_packet_number
# TYPE netflow9_data_packet_number counter
netflow9_data_packet_number 0
# HELP Metric netflow9_data_templates_number
# TYPE netflow9_data_templates_number counter
netflow9_data_templates_number 0
# HELP Metric netflow9_options_templates_number
# TYPE netflow9_options_templates_number counter
netflow9_options_templates_number 0
# HELP Metric netflow9_options_packet_number
# TYPE netflow9_options_packet_number counter
netflow9_options_packet_number 0
# HELP Metric netflow9_packets_with_unknown_templates
# TYPE netflow9_packets_with_unknown_templates counter
netflow9_packets_with_unknown_templates 0
# HELP Metric netflow9_custom_sampling_rate_received
# TYPE netflow9_custom_sampling_rate_received counter
netflow9_custom_sampling_rate_received 0
# HELP Metric netflow9_sampling_rate_changes
# TYPE netflow9_sampling_rate_changes counter
netflow9_sampling_rate_changes 0
# HELP Metric netflow_ignored_long_flows
# TYPE netflow_ignored_long_flows counter
netflow_ignored_long_flows 0
# HELP Metric template_netflow_ipfix_disk_writes
# TYPE template_netflow_ipfix_disk_writes counter
template_netflow_ipfix_disk_writes 0