fixes lint errors

master
Marvin Steadfast 4 years ago
parent cd4bab0309
commit 37178a4665

@ -15,7 +15,7 @@ A Jitsi meet prometheus exporter.
-port int
Port to listen on. (default 9700)
-url string
URL of Jitsi Videobridge Colibri Stats. NEEDS TO BE THE FULL URL WITH '/colibri/stats'.
URL of Jitsi Videobridge Colibri Stats.
-version
Prints version.
@ -25,4 +25,5 @@ For a docker based setup, you can use the docker image [quay.io/xsteadfastx/jits
1. [Enable](https://github.com/jitsi/jitsi-videobridge/blob/master/doc/statistics.md) `/colibri/stats` for the Jitsi videobridge. When you use the Jitsi docker setup use environment variable `JVB_ENABLE_APIS=rest,colibri`.
2. Be sure that the exporter and the videobridge API can communicate. In the docker Jitsi setup: Add the `jitsiexporter` to the `jitsi-meet_meet.jitsi`-network. The url would be `http://jitsi-meet_jvb_1:8080`.
3. A failed scrape metric is exported as `jitsi_fetch_errors`.
3. The `-url` URL needs to be the full url: `https://videobridge/colibri/stats`.
4. A failed scrape metric is exported as `jitsi_fetch_errors`.

@ -13,7 +13,7 @@ import (
func main() {
version := "development"
ver := flag.Bool("version", false, "Prints version.")
url := flag.String("url", "", "URL of Jitsi Videobridge Colibri Stats. NEEDS TO BE THE FULL URL WITH '/colibri/stats'.")
url := flag.String("url", "", "URL of Jitsi Videobridge Colibri Stats.")
debug := flag.Bool("debug", false, "Enable debug.")
interval := flag.Duration("interval", 30*time.Second, "Seconds to wait before scraping.") // nolint: gomnd
port := flag.Int("port", 9700, "Port to listen on.")

Loading…
Cancel
Save