-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Detect bridge ICE failure based on restart requests from endpoi…
…nts (#1210) * ref: Simplify code, order alphabetically. * feat: Keep track of number of endpoints on each Bridge. * feat: Add per-bridge metrics for endpoint and restart requests. * ref: Cleanup comment formatting. * ref: Rename Bridge.stress to correctedStress. * feat: Penalize stress when a bridge enters the failing ICE state * feat: Add metric for failing ICE.
- Loading branch information
Showing
13 changed files
with
225 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
jicofo-selector/src/main/kotlin/org/jitsi/jicofo/bridge/BridgeMetrics.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.jitsi.jicofo.bridge | ||
|
||
import org.jitsi.jicofo.metrics.JicofoMetricsContainer.Companion.instance as metricsContainer | ||
class BridgeMetrics { | ||
companion object { | ||
/** Total number of participants that requested a restart for a specific bridge. */ | ||
val restartRequestsMetric = metricsContainer.registerCounter( | ||
"bridge_restart_requests_total", | ||
"Total number of requests to restart a bridge", | ||
labelNames = listOf("jvb") | ||
) | ||
val endpoints = metricsContainer.registerLongGauge( | ||
"bridge_endpoints", | ||
"The number of endpoints on a bridge.", | ||
labelNames = listOf("jvb") | ||
) | ||
val failingIce = metricsContainer.registerBooleanMetric( | ||
"bridge_failing_ice", | ||
"Whether a bridge is currently in the failing ICE state.", | ||
labelNames = listOf("jvb") | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.