Skip to content

Commit

Permalink
SCTP メトリクスのテストデータを追加する
Browse files Browse the repository at this point in the history
  • Loading branch information
tnamao committed Sep 26, 2024
1 parent 3110d2b commit 70dcd27
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ var (
"total_ignored_stats_webhook": 103,
"total_ongoing_connections": 0,
"total_received_invalid_turn_tcp_packet": 0,
"total_sent_sctp": 110,
"total_sent_sctp_byte_size": 111,
"total_sent_srtp": 106,
"total_sent_srtp_byte_size": 107,
"total_session_created": 1,
Expand All @@ -171,6 +173,8 @@ var (
"total_successful_event_webhook": 97,
"total_successful_session_webhook": 98,
"total_successful_stats_webhook": 100,
"total_received_sctp": 112,
"total_received_sctp_byte_size": 113,
"total_received_srtp": 108,
"total_received_srtp_byte_size": 109,
"total_turn_tcp_connections": 2,
Expand Down Expand Up @@ -427,6 +431,8 @@ func TestMinimumMetrics(t *testing.T) {
"total_ignored_stats_webhook": 103,
"total_ongoing_connections": 88,
"total_received_invalid_turn_tcp_packet": 123,
"total_sent_sctp": 110,
"total_sent_sctp_byte_size": 111,
"total_sent_srtp": 106,
"total_sent_srtp_byte_size": 107,
"total_session_created": 111,
Expand All @@ -436,6 +442,8 @@ func TestMinimumMetrics(t *testing.T) {
"total_successful_event_webhook": 97,
"total_successful_session_webhook": 98,
"total_successful_stats_webhook": 100,
"total_received_sctp": 112,
"total_received_sctp_byte_size": 113,
"total_received_srtp": 108,
"total_received_srtp_byte_size": 109,
"total_turn_tcp_connections": 444,
Expand Down
12 changes: 12 additions & 0 deletions test/maximum.metrics
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,18 @@ sora_received_invalid_turn_tcp_packet_total 0
# TYPE sora_session_total counter
sora_session_total{state="created"} 1
sora_session_total{state="destroyed"} 0
# HELP sora_sctp_received_bytes_total The total number of received SCTP bytes.
# TYPE sora_sctp_received_bytes_total counter
sora_sctp_received_bytes_total 113
# HELP sora_sctp_received_packets_total The total number of received SCTP packets.
# TYPE sora_sctp_received_packets_total counter
sora_sctp_received_packets_total 112
# HELP sora_sctp_sent_bytes_total The total number of sent SCTP bytes.
# TYPE sora_sctp_sent_bytes_total counter
sora_sctp_sent_bytes_total 111
# HELP sora_sctp_sent_packets_total The total number of sent SRPT packets.
# TYPE sora_sctp_sent_packets_total counter
sora_sctp_sent_packets_total 110
# HELP sora_session_webhook_total The total number of session webhook.
# TYPE sora_session_webhook_total counter
sora_session_webhook_total{state="failed"} 95
Expand Down
12 changes: 12 additions & 0 deletions test/minimum.metrics
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ sora_received_invalid_turn_tcp_packet_total 123
# TYPE sora_session_total counter
sora_session_total{state="created"} 111
sora_session_total{state="destroyed"} 222
# HELP sora_sctp_received_bytes_total The total number of received SCTP bytes.
# TYPE sora_sctp_received_bytes_total counter
sora_sctp_received_bytes_total 113
# HELP sora_sctp_received_packets_total The total number of received SCTP packets.
# TYPE sora_sctp_received_packets_total counter
sora_sctp_received_packets_total 112
# HELP sora_sctp_sent_bytes_total The total number of sent SCTP bytes.
# TYPE sora_sctp_sent_bytes_total counter
sora_sctp_sent_bytes_total 111
# HELP sora_sctp_sent_packets_total The total number of sent SRPT packets.
# TYPE sora_sctp_sent_packets_total counter
sora_sctp_sent_packets_total 110
# HELP sora_session_webhook_total The total number of session webhook.
# TYPE sora_session_webhook_total counter
sora_session_webhook_total{state="failed"} 95
Expand Down
12 changes: 12 additions & 0 deletions test/sora_client_enabled.metrics
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@ sora_received_invalid_turn_tcp_packet_total 0
# TYPE sora_session_total counter
sora_session_total{state="created"} 1
sora_session_total{state="destroyed"} 0
# HELP sora_sctp_received_bytes_total The total number of received SCTP bytes.
# TYPE sora_sctp_received_bytes_total counter
sora_sctp_received_bytes_total 113
# HELP sora_sctp_received_packets_total The total number of received SCTP packets.
# TYPE sora_sctp_received_packets_total counter
sora_sctp_received_packets_total 112
# HELP sora_sctp_sent_bytes_total The total number of sent SCTP bytes.
# TYPE sora_sctp_sent_bytes_total counter
sora_sctp_sent_bytes_total 111
# HELP sora_sctp_sent_packets_total The total number of sent SRPT packets.
# TYPE sora_sctp_sent_packets_total counter
sora_sctp_sent_packets_total 110
# HELP sora_session_webhook_total The total number of session webhook.
# TYPE sora_session_webhook_total counter
sora_session_webhook_total{state="failed"} 95
Expand Down
12 changes: 12 additions & 0 deletions test/sora_cluster_metrics_enabled.metrics
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@ sora_received_invalid_turn_tcp_packet_total 0
# TYPE sora_session_total counter
sora_session_total{state="created"} 1
sora_session_total{state="destroyed"} 0
# HELP sora_sctp_received_bytes_total The total number of received SCTP bytes.
# TYPE sora_sctp_received_bytes_total counter
sora_sctp_received_bytes_total 113
# HELP sora_sctp_received_packets_total The total number of received SCTP packets.
# TYPE sora_sctp_received_packets_total counter
sora_sctp_received_packets_total 112
# HELP sora_sctp_sent_bytes_total The total number of sent SCTP bytes.
# TYPE sora_sctp_sent_bytes_total counter
sora_sctp_sent_bytes_total 111
# HELP sora_sctp_sent_packets_total The total number of sent SRPT packets.
# TYPE sora_sctp_sent_packets_total counter
sora_sctp_sent_packets_total 110
# HELP sora_session_webhook_total The total number of session webhook.
# TYPE sora_session_webhook_total counter
sora_session_webhook_total{state="failed"} 95
Expand Down
12 changes: 12 additions & 0 deletions test/sora_connection_error_enabled.metrics
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ sora_received_invalid_turn_tcp_packet_total 0
# TYPE sora_session_total counter
sora_session_total{state="created"} 1
sora_session_total{state="destroyed"} 0
# HELP sora_sctp_received_bytes_total The total number of received SCTP bytes.
# TYPE sora_sctp_received_bytes_total counter
sora_sctp_received_bytes_total 113
# HELP sora_sctp_received_packets_total The total number of received SCTP packets.
# TYPE sora_sctp_received_packets_total counter
sora_sctp_received_packets_total 112
# HELP sora_sctp_sent_bytes_total The total number of sent SCTP bytes.
# TYPE sora_sctp_sent_bytes_total counter
sora_sctp_sent_bytes_total 111
# HELP sora_sctp_sent_packets_total The total number of sent SRPT packets.
# TYPE sora_sctp_sent_packets_total counter
sora_sctp_sent_packets_total 110
# HELP sora_session_webhook_total The total number of session webhook.
# TYPE sora_session_webhook_total counter
sora_session_webhook_total{state="failed"} 95
Expand Down
12 changes: 12 additions & 0 deletions test/sora_erlang_vm_enabled.metrics
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,18 @@ sora_received_invalid_turn_tcp_packet_total 0
# TYPE sora_session_total counter
sora_session_total{state="created"} 1
sora_session_total{state="destroyed"} 0
# HELP sora_sctp_received_bytes_total The total number of received SCTP bytes.
# TYPE sora_sctp_received_bytes_total counter
sora_sctp_received_bytes_total 113
# HELP sora_sctp_received_packets_total The total number of received SCTP packets.
# TYPE sora_sctp_received_packets_total counter
sora_sctp_received_packets_total 112
# HELP sora_sctp_sent_bytes_total The total number of sent SCTP bytes.
# TYPE sora_sctp_sent_bytes_total counter
sora_sctp_sent_bytes_total 111
# HELP sora_sctp_sent_packets_total The total number of sent SRPT packets.
# TYPE sora_sctp_sent_packets_total counter
sora_sctp_sent_packets_total 110
# HELP sora_session_webhook_total The total number of session webhook.
# TYPE sora_session_webhook_total counter
sora_session_webhook_total{state="failed"} 95
Expand Down

0 comments on commit 70dcd27

Please sign in to comment.