jitsiexporter

package module
v0.2.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 10 Imported by: 0

README

jitsiexporter

Build Status Docker Repository on Quay

A Jitsi meet prometheus exporter.

    Usage of ./jitsiexporter_linux_amd64:
      -debug
            Enable debug.
      -host string
            Host to listen on. (default "localhost")
      -interval duration
            Seconds to wait before scraping. (default 30s)
      -port int
            Port to listen on. (default 9700)
      -url string
            URL of Jitsi Videobridge Colibri Stats.
      -version
            Prints version.

Usage

For a docker based setup, you can use the docker image quay.io/xsteadfastx/jitsiexporter.

  1. Enable /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. The -url URL needs to be the full url: https://videobridge/colibri/stats.
  4. A failed scrape metric is exported as jitsi_fetch_errors.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(url string, debug bool, interval time.Duration, port int, host string)

Types

type Metric

type Metric struct {
	Name  string
	Gauge prometheus.Gauge
}

type Metrics

type Metrics struct {
	Metrics map[string]Metric
	URL     string
	Stater  Stater

	Errors   prometheus.Counter
	Interval time.Duration
	// contains filtered or unexported fields
}

func (*Metrics) Update

func (m *Metrics) Update() error

type MockStater

type MockStater struct {
	mock.Mock
}

MockStater is an autogenerated mock type for the Stater type

func (*MockStater) Now

func (_m *MockStater) Now(url string) (map[string]interface{}, error)

Now provides a mock function with given fields: url

type Response

type Response struct {
	Resp  *http.Response
	Error error
}

type Stater

type Stater interface {
	Now(url string) (map[string]interface{}, error)
}

Directories

Path Synopsis
cmd
jitsiexporter
nolint: gochecknoglobals
nolint: gochecknoglobals

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL