Files
upstream-jibri/src/main/kotlin/org/jitsi/jibri/metrics/StatsConfig.kt
upstream-mirror 650a143b63
Some checks failed
Java CI with Maven / Java 17 (push) Failing after 4m40s
Java CI with Maven / Java 21 (push) Failing after 4m41s
snapshot of https://github.com/jitsi/jibri.git @ 3b45602c539ec69d128ea152ae587d0b6582191a (2026-09-15)
2026-09-15 16:13:58 +05:00

40 lines
1.2 KiB
Kotlin

/*
* Copyright @ 2024-Present 8x8, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.jitsi.jibri.metrics
import org.jitsi.jibri.config.Config
import org.jitsi.metaconfig.config
object StatsConfig {
val enableStatsD: Boolean by config {
"JibriConfig::enableStatsD" { Config.legacyConfigSource.enabledStatsD!! }
"jibri.stats.enable-stats-d".from(Config.configSource)
}
val statsdHost: String by config {
"jibri.stats.host".from(Config.configSource)
}
val statsdPort: Int by config {
"jibri.stats.port".from(Config.configSource)
}
val enablePrometheus: Boolean by config {
"jibri.stats.prometheus.enabled".from(Config.configSource)
}
}