Merge pull request #91 from vany-egorov/feature/total-ice
Add total_ice_* metrics.
This commit is contained in:
commit
89b9e7f371
2 changed files with 42 additions and 1 deletions
16
main.go
16
main.go
|
@ -57,6 +57,10 @@ type videoBridgeStats struct {
|
||||||
TotalPacketsDroppedOcto int `json:"total_packets_dropped_octo"`
|
TotalPacketsDroppedOcto int `json:"total_packets_dropped_octo"`
|
||||||
TotalPacketsReceivedOcto int `json:"total_packets_received_octo"`
|
TotalPacketsReceivedOcto int `json:"total_packets_received_octo"`
|
||||||
TotalPacketsSentOcto int `json:"total_packets_sent_octo"`
|
TotalPacketsSentOcto int `json:"total_packets_sent_octo"`
|
||||||
|
TotalICESucceededRelayed int `json:"total_ice_succeeded_relayed"`
|
||||||
|
TotalICESucceeded int `json:"total_ice_succeeded"`
|
||||||
|
TotalICESucceededTCP int `json:"total_ice_succeeded_tcp"`
|
||||||
|
TotalICEFailed int `json:"total_ice_failed"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var tpl = template.Must(template.New("stats").Parse(`# HELP jitsi_threads The number of Java threads that the video bridge is using.
|
var tpl = template.Must(template.New("stats").Parse(`# HELP jitsi_threads The number of Java threads that the video bridge is using.
|
||||||
|
@ -185,6 +189,18 @@ jitsi_total_packets_received_octo {{.TotalPacketsReceivedOcto}}
|
||||||
# HELP jitsi_total_packets_sent_octo The total of sent dropped packets handled by the OCTO video bridge.
|
# HELP jitsi_total_packets_sent_octo The total of sent dropped packets handled by the OCTO video bridge.
|
||||||
# TYPE jitsi_total_packets_sent_octo gauge
|
# TYPE jitsi_total_packets_sent_octo gauge
|
||||||
jitsi_total_packets_sent_octo {{.TotalPacketsSentOcto}}
|
jitsi_total_packets_sent_octo {{.TotalPacketsSentOcto}}
|
||||||
|
# HELP total_ice_succeeded_relayed The total number of times an ICE Agent succeeded and the selected candidate pair included a relayed candidate.
|
||||||
|
# TYPE total_ice_succeeded_relayed gauge
|
||||||
|
total_ice_succeeded_relayed {{.TotalICESucceededRelayed}}
|
||||||
|
# HELP total_ice_succeeded The total number of times an ICE Agent succeeded.
|
||||||
|
# TYPE total_ice_succeeded gauge
|
||||||
|
total_ice_succeeded {{.TotalICESucceeded}}
|
||||||
|
# HELP total_ice_succeeded_tcp The total number of times an ICE Agent succeeded and the selected candidate was a TCP candidate.
|
||||||
|
# TYPE total_ice_succeeded_tcp gauge
|
||||||
|
total_ice_succeeded_tcp {{.TotalICESucceededTCP}}
|
||||||
|
# HELP total_ice_failed The total number of times an ICE Agent failed to establish connectivity.
|
||||||
|
# TYPE total_ice_failed gauge
|
||||||
|
total_ice_failed {{.TotalICEFailed}}
|
||||||
# HELP jitsi_conference_sizes Distribution of conference sizes
|
# HELP jitsi_conference_sizes Distribution of conference sizes
|
||||||
# TYPE jitsi_conference_sizes gauge
|
# TYPE jitsi_conference_sizes gauge
|
||||||
{{ range $key, $value := .ConferenceSizes -}}
|
{{ range $key, $value := .ConferenceSizes -}}
|
||||||
|
|
27
main_test.go
27
main_test.go
|
@ -149,6 +149,18 @@ jitsi_total_packets_received_octo 0
|
||||||
# HELP jitsi_total_packets_sent_octo The total of sent dropped packets handled by the OCTO video bridge.
|
# HELP jitsi_total_packets_sent_octo The total of sent dropped packets handled by the OCTO video bridge.
|
||||||
# TYPE jitsi_total_packets_sent_octo gauge
|
# TYPE jitsi_total_packets_sent_octo gauge
|
||||||
jitsi_total_packets_sent_octo 0
|
jitsi_total_packets_sent_octo 0
|
||||||
|
# HELP total_ice_succeeded_relayed The total number of times an ICE Agent succeeded and the selected candidate pair included a relayed candidate.
|
||||||
|
# TYPE total_ice_succeeded_relayed gauge
|
||||||
|
total_ice_succeeded_relayed 0
|
||||||
|
# HELP total_ice_succeeded The total number of times an ICE Agent succeeded.
|
||||||
|
# TYPE total_ice_succeeded gauge
|
||||||
|
total_ice_succeeded 0
|
||||||
|
# HELP total_ice_succeeded_tcp The total number of times an ICE Agent succeeded and the selected candidate was a TCP candidate.
|
||||||
|
# TYPE total_ice_succeeded_tcp gauge
|
||||||
|
total_ice_succeeded_tcp 0
|
||||||
|
# HELP total_ice_failed The total number of times an ICE Agent failed to establish connectivity.
|
||||||
|
# TYPE total_ice_failed gauge
|
||||||
|
total_ice_failed 0
|
||||||
# HELP jitsi_conference_sizes Distribution of conference sizes
|
# HELP jitsi_conference_sizes Distribution of conference sizes
|
||||||
# TYPE jitsi_conference_sizes gauge
|
# TYPE jitsi_conference_sizes gauge
|
||||||
jitsi_conference_sizes{conference_size="0"} 0
|
jitsi_conference_sizes{conference_size="0"} 0
|
||||||
|
@ -220,7 +232,7 @@ jitsi_conference_sizes{conference_size="21"} 0
|
||||||
"total_failed_conferences": 0,
|
"total_failed_conferences": 0,
|
||||||
"total_ice_failed": 0,
|
"total_ice_failed": 0,
|
||||||
"total_ice_succeeded": 2,
|
"total_ice_succeeded": 2,
|
||||||
"total_ice_succeeded_tcp": 0,
|
"total_ice_succeeded_tcp": 1,
|
||||||
"total_loss_controlled_participant_seconds": 847,
|
"total_loss_controlled_participant_seconds": 847,
|
||||||
"total_loss_degraded_participant_seconds": 1,
|
"total_loss_degraded_participant_seconds": 1,
|
||||||
"total_loss_limited_participant_seconds": 0,
|
"total_loss_limited_participant_seconds": 0,
|
||||||
|
@ -234,6 +246,7 @@ jitsi_conference_sizes{conference_size="21"} 0
|
||||||
"total_packets_sent_octo": 0,
|
"total_packets_sent_octo": 0,
|
||||||
"total_partially_failed_conferences": 0,
|
"total_partially_failed_conferences": 0,
|
||||||
"total_participants": 2,
|
"total_participants": 2,
|
||||||
|
"total_ice_succeeded_relayed": 3,
|
||||||
"videochannels": 0,
|
"videochannels": 0,
|
||||||
"videostreams": 0
|
"videostreams": 0
|
||||||
}`,
|
}`,
|
||||||
|
@ -363,6 +376,18 @@ jitsi_total_packets_received_octo 0
|
||||||
# HELP jitsi_total_packets_sent_octo The total of sent dropped packets handled by the OCTO video bridge.
|
# HELP jitsi_total_packets_sent_octo The total of sent dropped packets handled by the OCTO video bridge.
|
||||||
# TYPE jitsi_total_packets_sent_octo gauge
|
# TYPE jitsi_total_packets_sent_octo gauge
|
||||||
jitsi_total_packets_sent_octo 0
|
jitsi_total_packets_sent_octo 0
|
||||||
|
# HELP total_ice_succeeded_relayed The total number of times an ICE Agent succeeded and the selected candidate pair included a relayed candidate.
|
||||||
|
# TYPE total_ice_succeeded_relayed gauge
|
||||||
|
total_ice_succeeded_relayed 3
|
||||||
|
# HELP total_ice_succeeded The total number of times an ICE Agent succeeded.
|
||||||
|
# TYPE total_ice_succeeded gauge
|
||||||
|
total_ice_succeeded 2
|
||||||
|
# HELP total_ice_succeeded_tcp The total number of times an ICE Agent succeeded and the selected candidate was a TCP candidate.
|
||||||
|
# TYPE total_ice_succeeded_tcp gauge
|
||||||
|
total_ice_succeeded_tcp 1
|
||||||
|
# HELP total_ice_failed The total number of times an ICE Agent failed to establish connectivity.
|
||||||
|
# TYPE total_ice_failed gauge
|
||||||
|
total_ice_failed 0
|
||||||
# HELP jitsi_conference_sizes Distribution of conference sizes
|
# HELP jitsi_conference_sizes Distribution of conference sizes
|
||||||
# TYPE jitsi_conference_sizes gauge
|
# TYPE jitsi_conference_sizes gauge
|
||||||
jitsi_conference_sizes{conference_size="0"} 0
|
jitsi_conference_sizes{conference_size="0"} 0
|
||||||
|
|
Loading…
Reference in a new issue