- // Global measurements (counters).
- global_metrics.add("srt_uptime_seconds", labels, &card->metric_srt_uptime_seconds);
- global_metrics.add("srt_send_duration_seconds", labels, &card->metric_srt_send_duration_seconds);
- global_metrics.add("srt_sent_bytes", labels, &card->metric_srt_sent_bytes);
- global_metrics.add("srt_received_bytes", labels, &card->metric_srt_received_bytes);
-
- vector<pair<string, string>> packet_labels = labels;
- packet_labels.emplace_back("type", "normal");
- global_metrics.add("srt_sent_packets", packet_labels, &card->metric_srt_sent_packets_normal);
- global_metrics.add("srt_received_packets", packet_labels, &card->metric_srt_received_packets_normal);
-
- packet_labels.back().second = "lost";
- global_metrics.add("srt_sent_packets", packet_labels, &card->metric_srt_sent_packets_lost);
- global_metrics.add("srt_received_packets", packet_labels, &card->metric_srt_received_packets_lost);
-
- packet_labels.back().second = "retransmitted";
- global_metrics.add("srt_sent_packets", packet_labels, &card->metric_srt_sent_packets_retransmitted);
- global_metrics.add("srt_sent_bytes", packet_labels, &card->metric_srt_sent_bytes_retransmitted);
-
- packet_labels.back().second = "ack";
- global_metrics.add("srt_sent_packets", packet_labels, &card->metric_srt_sent_packets_ack);
- global_metrics.add("srt_received_packets", packet_labels, &card->metric_srt_received_packets_ack);
-
- packet_labels.back().second = "nak";
- global_metrics.add("srt_sent_packets", packet_labels, &card->metric_srt_sent_packets_nak);
- global_metrics.add("srt_received_packets", packet_labels, &card->metric_srt_received_packets_nak);
-
- packet_labels.back().second = "dropped";
- global_metrics.add("srt_sent_packets", packet_labels, &card->metric_srt_sent_packets_dropped);
- global_metrics.add("srt_received_packets", packet_labels, &card->metric_srt_received_packets_dropped);
- global_metrics.add("srt_sent_bytes", packet_labels, &card->metric_srt_sent_bytes_dropped);
- global_metrics.add("srt_received_bytes", packet_labels, &card->metric_srt_received_bytes_dropped);
-
- packet_labels.back().second = "undecryptable";
- global_metrics.add("srt_received_packets", packet_labels, &card->metric_srt_received_packets_undecryptable);
- global_metrics.add("srt_received_bytes", packet_labels, &card->metric_srt_received_bytes_undecryptable);
-
- global_metrics.add("srt_filter_sent_extra_packets", labels, &card->metric_srt_filter_sent_packets);
- global_metrics.add("srt_filter_received_extra_packets", labels, &card->metric_srt_filter_received_extra_packets);
- global_metrics.add("srt_filter_received_rebuilt_packets", labels, &card->metric_srt_filter_received_rebuilt_packets);
- global_metrics.add("srt_filter_received_lost_packets", labels, &card->metric_srt_filter_received_lost_packets);
-
- // Instant measurements (gauges).
- global_metrics.add("srt_packet_sending_period_seconds", labels, &card->metric_srt_packet_sending_period_seconds, Metrics::TYPE_GAUGE);
- global_metrics.add("srt_flow_window_packets", labels, &card->metric_srt_flow_window_packets, Metrics::TYPE_GAUGE);
- global_metrics.add("srt_congestion_window_packets", labels, &card->metric_srt_congestion_window_packets, Metrics::TYPE_GAUGE);
- global_metrics.add("srt_flight_size_packets", labels, &card->metric_srt_flight_size_packets, Metrics::TYPE_GAUGE);
- global_metrics.add("srt_rtt_seconds", labels, &card->metric_srt_rtt_seconds, Metrics::TYPE_GAUGE);
- global_metrics.add("srt_estimated_bandwidth_bits_per_second", labels, &card->metric_srt_estimated_bandwidth_bits_per_second, Metrics::TYPE_GAUGE);
- global_metrics.add("srt_bandwidth_ceiling_bits_per_second", labels, &card->metric_srt_bandwidth_ceiling_bits_per_second, Metrics::TYPE_GAUGE);
- global_metrics.add("srt_send_buffer_available_bytes", labels, &card->metric_srt_send_buffer_available_bytes, Metrics::TYPE_GAUGE);
- global_metrics.add("srt_receive_buffer_available_bytes", labels, &card->metric_srt_receive_buffer_available_bytes, Metrics::TYPE_GAUGE);
- global_metrics.add("srt_mss_bytes", labels, &card->metric_srt_mss_bytes, Metrics::TYPE_GAUGE);
-
- global_metrics.add("srt_sender_unacked_packets", labels, &card->metric_srt_sender_unacked_packets, Metrics::TYPE_GAUGE);
- global_metrics.add("srt_sender_unacked_bytes", labels, &card->metric_srt_sender_unacked_bytes, Metrics::TYPE_GAUGE);
- global_metrics.add("srt_sender_unacked_timespan_seconds", labels, &card->metric_srt_sender_unacked_timespan_seconds, Metrics::TYPE_GAUGE);
- global_metrics.add("srt_sender_delivery_delay_seconds", labels, &card->metric_srt_sender_delivery_delay_seconds, Metrics::TYPE_GAUGE);
-
- global_metrics.add("srt_receiver_unacked_packets", labels, &card->metric_srt_receiver_unacked_packets, Metrics::TYPE_GAUGE);
- global_metrics.add("srt_receiver_unacked_bytes", labels, &card->metric_srt_receiver_unacked_bytes, Metrics::TYPE_GAUGE);
- global_metrics.add("srt_receiver_unacked_timespan_seconds", labels, &card->metric_srt_receiver_unacked_timespan_seconds, Metrics::TYPE_GAUGE);
- global_metrics.add("srt_receiver_delivery_delay_seconds", labels, &card->metric_srt_receiver_delivery_delay_seconds, Metrics::TYPE_GAUGE);