├── .gitignore ├── .github ├── CODEOWNERS ├── workflows │ ├── quality.yaml │ ├── release-drafter.yaml │ ├── release.yaml │ └── integration.yaml ├── dependabot.yml └── release-drafter.yml ├── dashboards ├── jitsi-meet.png ├── jitsi-meet-system.png ├── README.md └── jitsi-meet.json ├── go.mod ├── go.sum ├── .golangci.yml ├── Dockerfile ├── .goreleaser.yml ├── README.md ├── main.go ├── main_test.go └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @0x46616c6b 2 | -------------------------------------------------------------------------------- /dashboards/jitsi-meet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemli/prometheus-jitsi-meet-exporter/HEAD/dashboards/jitsi-meet.png -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/systemli/prometheus-jitsi-meet-exporter 2 | 3 | go 1.21 4 | 5 | require github.com/google/go-cmp v0.7.0 6 | -------------------------------------------------------------------------------- /dashboards/jitsi-meet-system.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemli/prometheus-jitsi-meet-exporter/HEAD/dashboards/jitsi-meet-system.png -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= 2 | github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= 3 | -------------------------------------------------------------------------------- /.github/workflows/quality.yaml: -------------------------------------------------------------------------------- 1 | name: Quality 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | 9 | jobs: 10 | golangci: 11 | name: GolangCI 12 | runs-on: ubuntu-24.04 13 | steps: 14 | - uses: actions/checkout@v6 15 | - name: GolangCI 16 | uses: golangci/golangci-lint-action@v9 17 | -------------------------------------------------------------------------------- /.github/workflows/release-drafter.yaml: -------------------------------------------------------------------------------- 1 | name: Release Drafter 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | 8 | jobs: 9 | release: 10 | name: Update Release 11 | runs-on: ubuntu-24.04 12 | steps: 13 | - name: Publish Release 14 | uses: release-drafter/release-drafter@v6 15 | with: 16 | publish: false 17 | env: 18 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 19 | -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- 1 | version: "2" 2 | run: 3 | tests: false 4 | linters: 5 | exclusions: 6 | generated: lax 7 | presets: 8 | - comments 9 | - common-false-positives 10 | - legacy 11 | - std-error-handling 12 | paths: 13 | - third_party$ 14 | - builtin$ 15 | - examples$ 16 | formatters: 17 | exclusions: 18 | generated: lax 19 | paths: 20 | - third_party$ 21 | - builtin$ 22 | - examples$ 23 | -------------------------------------------------------------------------------- /dashboards/README.md: -------------------------------------------------------------------------------- 1 | # Dashboards 2 | 3 | We provide basic dashboards for Jitsi Meet. Feel free to use and extend them. 4 | 5 | ## Jitsi Meet Dashboard 6 | 7 | * contains all exported metrics from the jitsi-meet-exporter 8 | * available for [importing direct from Grafana](https://grafana.com/grafana/dashboards/12098) 9 | 10 | ![Jitsi Meet Dashboard](jitsi-meet.png) 11 | 12 | ## Jitsi Meet & System Dashboard 13 | 14 | * contains all exported metrics from the jitsi-meet-exporter and basic system metrics 15 | * available for [importing direct from Grafana](https://grafana.com/grafana/dashboards/12282) 16 | 17 | ![Jitsi Meet Dashboard](jitsi-meet-system.png) 18 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.23.2 as builder 2 | 3 | WORKDIR /go/src/github.com/systemli/prometheus-jitsi-meet-exporter 4 | 5 | ENV USER=appuser 6 | ENV UID=10001 7 | 8 | RUN adduser \ 9 | --disabled-password \ 10 | --gecos "" \ 11 | --home "/nonexistent" \ 12 | --shell "/sbin/nologin" \ 13 | --no-create-home \ 14 | --uid "${UID}" \ 15 | "${USER}" 16 | 17 | 18 | FROM scratch 19 | 20 | COPY --from=builder /etc/passwd /etc/passwd 21 | COPY --from=builder /etc/group /etc/group 22 | COPY prometheus-jitsi-meet-exporter /prometheus-jitsi-meet-exporter 23 | 24 | USER appuser:appuser 25 | 26 | EXPOSE 9888 27 | 28 | ENTRYPOINT ["/prometheus-jitsi-meet-exporter"] 29 | -------------------------------------------------------------------------------- /.goreleaser.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | 3 | before: 4 | hooks: 5 | - go mod tidy 6 | builds: 7 | - env: 8 | - CGO_ENABLED=0 9 | goos: 10 | - linux 11 | - windows 12 | - darwin 13 | goarm: 14 | - "6" 15 | - "7" 16 | ldflags: 17 | - -s -w 18 | dockers: 19 | - goos: linux 20 | goarch: amd64 21 | image_templates: 22 | - "systemli/prometheus-jitsi-meet-exporter:{{ .Tag }}" 23 | - "systemli/prometheus-jitsi-meet-exporter:{{ .Major }}" 24 | - "systemli/prometheus-jitsi-meet-exporter:{{ .Major }}.{{ .Minor }}" 25 | - "systemli/prometheus-jitsi-meet-exporter:latest" 26 | checksum: 27 | name_template: "checksums.txt" 28 | snapshot: 29 | name_template: "{{ .Tag }}-next" 30 | changelog: 31 | disable: true 32 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | --- 2 | version: 2 3 | updates: 4 | - package-ecosystem: "gomod" 5 | directory: "/" 6 | schedule: 7 | interval: "weekly" 8 | day: "friday" 9 | time: "09:00" 10 | timezone: "Europe/Berlin" 11 | groups: 12 | gomod: 13 | patterns: 14 | - "*" 15 | 16 | - package-ecosystem: "docker" 17 | directory: "/" 18 | schedule: 19 | interval: "weekly" 20 | day: "friday" 21 | time: "09:00" 22 | timezone: "Europe/Berlin" 23 | 24 | - package-ecosystem: "github-actions" 25 | directory: "/" 26 | schedule: 27 | interval: "weekly" 28 | day: "friday" 29 | time: "09:00" 30 | timezone: "Europe/Berlin" 31 | groups: 32 | github-actions: 33 | patterns: 34 | - "*" 35 | -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | release: 5 | types: [published] 6 | 7 | jobs: 8 | release: 9 | name: Release 10 | runs-on: ubuntu-24.04 11 | steps: 12 | - name: Checkout 13 | uses: actions/checkout@v6 14 | 15 | - name: Setup go 16 | uses: actions/setup-go@v6 17 | with: 18 | go-version-file: "go.mod" 19 | 20 | - name: Login to Docker Hub 21 | uses: docker/login-action@v3.6.0 22 | with: 23 | username: ${{ secrets.DOCKERHUB_USERNAME }} 24 | password: ${{ secrets.DOCKERHUB_TOKEN }} 25 | 26 | - name: Build Releases 27 | uses: goreleaser/goreleaser-action@v6.4.0 28 | with: 29 | version: latest 30 | args: release --rm-dist 31 | env: 32 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 33 | -------------------------------------------------------------------------------- /.github/release-drafter.yml: -------------------------------------------------------------------------------- 1 | name-template: '$RESOLVED_VERSION' 2 | tag-template: '$RESOLVED_VERSION' 3 | categories: 4 | - title: '🚀 Features' 5 | labels: 6 | - 'feature' 7 | - 'enhancement' 8 | - title: '🐛 Bug Fixes' 9 | labels: 10 | - 'fix' 11 | - 'bugfix' 12 | - 'bug' 13 | - title: '🧹 Maintenance' 14 | labels: 15 | - 'chore' 16 | - 'dependencies' 17 | version-resolver: 18 | major: 19 | labels: 20 | - 'feature' 21 | minor: 22 | labels: 23 | - 'enhancement' 24 | patch: 25 | labels: 26 | - 'fix' 27 | - 'bugfix' 28 | - 'bug' 29 | - 'chore' 30 | - 'dependencies' 31 | default: patch 32 | template: | 33 | ## Changes 34 | 35 | $CHANGES 36 | 37 | **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION 38 | 39 | ## Docker 40 | 41 | - `docker pull systemli/prometheus-jitsi-meet-exporter:$RESOLVED_VERSION` 42 | -------------------------------------------------------------------------------- /.github/workflows/integration.yaml: -------------------------------------------------------------------------------- 1 | name: Integration 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | 9 | jobs: 10 | test: 11 | name: Test 12 | runs-on: ubuntu-24.04 13 | steps: 14 | - uses: actions/checkout@v6 15 | 16 | - name: Setup go 17 | uses: actions/setup-go@v6 18 | with: 19 | go-version-file: "go.mod" 20 | 21 | - name: Vet 22 | run: go vet 23 | 24 | - name: Test 25 | run: go test ./... 26 | 27 | build: 28 | name: Build 29 | runs-on: ubuntu-24.04 30 | needs: 31 | - test 32 | steps: 33 | - uses: actions/checkout@v6 34 | 35 | - name: Setup go 36 | uses: actions/setup-go@v6 37 | with: 38 | go-version-file: "go.mod" 39 | 40 | - name: Build 41 | run: go build ./... 42 | 43 | - name: Docker 44 | run: docker build . 45 | 46 | automerge: 47 | name: Merge Automatically 48 | needs: [test, build] 49 | runs-on: ubuntu-24.04 50 | 51 | permissions: 52 | pull-requests: write 53 | contents: write 54 | 55 | steps: 56 | - name: Obtain Access Token 57 | id: acces_token 58 | run: | 59 | TOKEN="$(npx obtain-github-app-installation-access-token ci ${{ secrets.SYSTEMLI_APP_CREDENTIALS_TOKEN }})" 60 | echo "token=$TOKEN" >> $GITHUB_OUTPUT 61 | 62 | - name: Merge 63 | uses: fastify/github-action-merge-dependabot@v3 64 | with: 65 | github-token: ${{ steps.acces_token.outputs.token }} 66 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Jitsi Meet Metrics Exporter 2 | 3 | [![Integration](https://github.com/systemli/prometheus-jitsi-meet-exporter/workflows/Integration/badge.svg?branch=main)](https://github.com/systemli/prometheus-jitsi-meet-exporter/workflows/Integration/badge.svg?branch=main) [![Quality](https://github.com/systemli/prometheus-jitsi-meet-exporter/workflows/Quality/badge.svg?branch=main)](https://github.com/systemli/prometheus-jitsi-meet-exporter/workflows/Quality/badge.svg?branch=main) [![Docker Cloud Automated build](https://img.shields.io/docker/cloud/automated/systemli/prometheus-jitsi-meet-exporter)](https://hub.docker.com/r/systemli/prometheus-jitsi-meet-exporter) [![Docker Image Size (latest semver)](https://img.shields.io/docker/image-size/systemli/prometheus-jitsi-meet-exporter)](https://hub.docker.com/r/systemli/prometheus-jitsi-meet-exporter) 4 | 5 | Prometheus Exporter for Jitsi Meet written in Go. Based on [Jitsi Meet Exporter](https://git.autistici.org/ai3/tools/jitsi-prometheus-exporter) from [Autistici](https://www.autistici.org/) 6 | 7 | There's multiple different [statistics endpoint that can be exposed by jitsi](https://github.com/jitsi/jitsi-videobridge/blob/master/doc/statistics.md) (like /stats and /colibri/stats); you can configure the used URL with the `videobridge-url`. 8 | The exporter will handle both of them, but some metrics that aren't exposed may be reported as 0. 9 | 10 | ## Usage 11 | 12 | ``` 13 | go install github.com/systemli/prometheus-jitsi-meet-exporter@latest 14 | $GOPATH/bin/prometheus-jitsi-meet-exporter 15 | ``` 16 | 17 | ### Ansible 18 | 19 | We also provide an [Ansible Role to install and configure the Jitsi Meet Exporter](https://github.com/systemli/ansible-role-jitsi-meet-exporter). 20 | 21 | Example Playbook: 22 | 23 | ```yaml 24 | - hosts: jitsimeetservers 25 | roles: 26 | - { role: systemli.jitsi_meet_exporter } 27 | ``` 28 | 29 | ### Docker 30 | 31 | ``` 32 | docker run -p 9888:9888 systemli/prometheus-jitsi-meet-exporter:latest -videobridge-url http://jitsi:8080/colibri/stats 33 | ``` 34 | 35 | ## Dashboard 36 | 37 | See the [Grafana Dashboards](dashboards) in this repository. 38 | 39 | ### Example 40 | 41 | ![Jitsi Meet Dashboard](dashboards/jitsi-meet.png) 42 | 43 | ## Metrics 44 | 45 | ``` 46 | # HELP jitsi_threads The number of Java threads that the video bridge is using. 47 | # TYPE jitsi_threads gauge 48 | jitsi_threads 0 49 | # HELP jitsi_bit_rate_download The total incoming bitrate for the video bridge in kilobits per second. 50 | # TYPE jitsi_bit_rate_download gauge 51 | jitsi_bit_rate_download 0 52 | # HELP jitsi_bit_rate_upload The total outgoing bitrate for the video bridge in kilobits per second. 53 | # TYPE jitsi_bit_rate_upload gauge 54 | jitsi_bit_rate_upload 0 55 | # HELP jitsi_packet_rate_download The total incoming packet rate for the video bridge in packets per second. 56 | # TYPE jitsi_packet_rate_download gauge 57 | jitsi_packet_rate_download 0 58 | # HELP jitsi_packet_rate_upload The total outgoing packet rate for the video bridge in packets per second. 59 | # TYPE jitsi_packet_rate_upload gauge 60 | jitsi_packet_rate_upload 0 61 | # HELP jitsi_loss_rate_download The fraction of lost incoming RTP packets. This is based on RTP sequence numbers and is relatively accurate. 62 | # TYPE jitsi_loss_rate_download gauge 63 | jitsi_loss_rate_download 0 64 | # HELP jitsi_loss_rate_upload The fraction of lost outgoing RTP packets. This is based on incoming RTCP Receiver Reports, and an attempt to subtract the fraction of packets that were not sent (i.e. were lost before they reached the bridge). Further, this is averaged over all streams of all users as opposed to all packets, so it is not correctly weighted. This is not accurate, but may be a useful metric nonetheless. 65 | # TYPE jitsi_loss_rate_upload gauge 66 | jitsi_loss_rate_upload 0 67 | # HELP jitsi_jitter_aggregate Experimental. An average value (in milliseconds) of the jitter calculated for incoming and outgoing streams. This hasn't been tested and it is currently not known whether the values are correct or not. 68 | # TYPE jitsi_jitter_aggregate gauge 69 | jitsi_jitter_aggregate 0 70 | # HELP jitsi_rtt_aggregate An average value (in milliseconds) of the RTT across all streams. 71 | # TYPE jitsi_rtt_aggregate gauge 72 | jitsi_rtt_aggregate 0 73 | # HELP jitsi_largest_conference The number of participants in the largest conference currently hosted on the bridge. 74 | # TYPE jitsi_largest_conference gauge 75 | jitsi_largest_conference 8 76 | # HELP jitsi_audiochannels The current number of audio channels. 77 | # TYPE jitsi_audiochannels gauge 78 | jitsi_audiochannels 0 79 | # HELP jitsi_videochannels The current number of video channels. 80 | # TYPE jitsi_videochannels gauge 81 | jitsi_videochannels 0 82 | # HELP jitsi_conferences The current number of conferences. 83 | # TYPE jitsi_conferences gauge 84 | jitsi_conferences 0 85 | # HELP jitsi_p2p_conferences The current number of p2p conferences. 86 | # TYPE jitsi_p2p_conferences gauge 87 | jitsi_p2p_conferences 1 88 | # HELP jitsi_participants The current number of participants. 89 | # TYPE jitsi_participants gauge 90 | jitsi_participants 0 91 | # HELP jitsi_videostreams An estimation of the number of current video streams forwarded by the bridge. 92 | # TYPE jitsi_videostreams gauge 93 | jitsi_videostreams 0 94 | # HELP jitsi_total_loss_controlled_participant_seconds The total number of participant-seconds that are loss-controlled. 95 | # TYPE jitsi_total_loss_controlled_participant_seconds counter 96 | jitsi_total_loss_controlled_participant_seconds 0 97 | # HELP jitsi_total_loss_limited_participant_seconds The total number of participant-seconds that are loss-limited. 98 | # TYPE jitsi_total_loss_limited_participant_seconds counter 99 | jitsi_total_loss_limited_participant_seconds 0 100 | # HELP jitsi_total_loss_degraded_participant_seconds The total number of participant-seconds that are loss-degraded. 101 | # TYPE jitsi_total_loss_degraded_participant_seconds counter 102 | jitsi_total_loss_degraded_participant_seconds 0 103 | # HELP jitsi_total_conference_seconds The sum of the lengths of all completed conferences, in seconds. 104 | # TYPE jitsi_total_conference_seconds counter 105 | jitsi_total_conference_seconds 0 106 | # HELP jitsi_total_conferences_created The total number of conferences created on the bridge. 107 | # TYPE jitsi_total_conferences_created counter 108 | jitsi_total_conferences_created 0 109 | # HELP jitsi_total_failed_conferences The total number of failed conferences on the bridge. A conference is marked as failed when all of its channels have failed. A channel is marked as failed if it had no payload activity. 110 | # TYPE jitsi_total_failed_conferences counter 111 | jitsi_total_failed_conferences 0 112 | # HELP jitsi_total_partially_failed_conferences The total number of partially failed conferences on the bridge. A conference is marked as partially failed when some of its channels has failed. A channel is marked as failed if it had no payload activity. 113 | # TYPE jitsi_total_partially_failed_conferences counter 114 | jitsi_total_partially_failed_conferences 0 115 | # HELP jitsi_total_data_channel_messages_received The total number messages received through data channels. 116 | # TYPE jitsi_total_data_channel_messages_received counter 117 | jitsi_total_data_channel_messages_received 0 118 | # HELP jitsi_total_data_channel_messages_sent The total number messages sent through data channels. 119 | # TYPE jitsi_total_data_channel_messages_sent counter 120 | jitsi_total_data_channel_messages_sent 0 121 | # HELP jitsi_total_colibri_web_socket_messages_received The total number messages received through COLIBRI web sockets. 122 | # TYPE jitsi_total_colibri_web_socket_messages_received counter 123 | jitsi_total_colibri_web_socket_messages_received 0 124 | # HELP jitsi_total_colibri_web_socket_messages_sent The total number messages sent through COLIBRI web sockets. 125 | # TYPE jitsi_total_colibri_web_socket_messages_sent counter 126 | jitsi_total_colibri_web_socket_messages_sent 0 127 | # HELP jitsi_octo_version The current running OCTO version 128 | # TYPE jitsi_octo_version gauge 129 | jitsi_octo_version 0 130 | # HELP jitsi_octo_conferences The current number of OCTO conferences. 131 | # TYPE jitsi_octo_conferences gauge 132 | jitsi_octo_conferences 0 133 | # HELP jitsi_octo_endpoints The current number of OCTO endpoints. 134 | # TYPE jitsi_octo_endpoints gauge 135 | jitsi_octo_endpoints 0 136 | # HELP jitsi_octo_receive_bitrate The total receiving bitrate for the OCTO video bridge in kilobits per second. 137 | # TYPE jitsi_octo_receive_bitrate gauge 138 | jitsi_octo_receive_bitrate 0 139 | # HELP jitsi_octo_send_bitrate The total outgoing bitrate for the OCTO video bridge in kilobits per second. 140 | # TYPE jitsi_octo_send_bitrate gauge 141 | jitsi_octo_send_bitrate 0 142 | # HELP jitsi_octo_receive_packet_rate The total incoming packet rate for the OCTO video bridge in packets per second. 143 | # TYPE jitsi_octo_receive_packet_rate gauge 144 | jitsi_octo_receive_packet_rate 0 145 | # HELP jitsi_octo_send_packet_rate The total outgoing packet rate for the OCTO video bridge in packets per second. 146 | # TYPE jitsi_octo_send_packet_rate gauge 147 | jitsi_octo_send_packet_rate 0 148 | # HELP jitsi_total_bytes_received_octo The total incoming bit rate for the OCTO video bridge in bytes per second. 149 | # TYPE jitsi_total_bytes_received_octo gauge 150 | jitsi_total_bytes_received_octo 0 151 | # HELP jitsi_total_bytes_sent_octo The total outgoing bit rate for the OCTO video bridge in bytes per second. 152 | # TYPE jitsi_total_bytes_sent_octo gauge 153 | jitsi_total_bytes_sent_octo 0 154 | # HELP jitsi_total_packets_dropped_octo The total of dropped packets handled by the OCTO video bridge. 155 | # TYPE jitsi_total_packets_dropped_octo gauge 156 | jitsi_total_packets_dropped_octo 0 157 | # HELP jitsi_total_packets_received_octo The total of incoming dropped packets handled by the OCTO video bridge. 158 | # TYPE jitsi_total_packets_received_octo gauge 159 | jitsi_total_packets_received_octo 0 160 | # HELP jitsi_total_packets_sent_octo The total of sent dropped packets handled by the OCTO video bridge. 161 | # TYPE jitsi_total_packets_sent_octo gauge 162 | jitsi_total_packets_sent_octo 0 163 | ``` 164 | 165 | ## License 166 | 167 | GPLv3 168 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "encoding/json" 5 | "flag" 6 | "log" 7 | "net/http" 8 | "text/template" 9 | ) 10 | 11 | var ( 12 | addr = flag.String("web.listen-address", ":9888", "Address on which to expose metrics and web interface.") 13 | videoBridgeURL = flag.String("videobridge-url", "http://localhost:8080/colibri/stats", "Jitsi Videobridge /stats URL to scrape") 14 | ) 15 | 16 | type videoBridgeStats struct { 17 | Threads int `json:"threads"` 18 | BitRateDownload float64 `json:"bit_rate_download"` 19 | BitRateUpload float64 `json:"bit_rate_upload"` 20 | PacketRateDownload float64 `json:"packet_rate_download"` 21 | PacketRateUpload float64 `json:"packet_rate_upload"` 22 | LossRateDownload float64 `json:"loss_rate_download"` 23 | LossRateUpload float64 `json:"loss_rate_upload"` 24 | JitterAggregate float64 `json:"jitter_aggregate"` 25 | RTTAggregate float64 `json:"rtt_aggregate"` 26 | LargestConference int `json:"largest_conference"` 27 | ConferenceSizes []int `json:"conference_sizes"` 28 | AudioChannels int `json:"audiochannels"` 29 | VideoChannels int `json:"videochannels"` 30 | Conferences int `json:"conferences"` 31 | P2PConferences int `json:"p2p_conferences"` 32 | Participants int `json:"participants"` 33 | Videostreams int `json:"videostreams"` 34 | EndpointsSendingVideo int `json:"endpoints_sending_video"` 35 | StressLevel float64 `json:"stress_level"` 36 | TotalLossControlledParticipantSeconds int `json:"total_loss_controlled_participant_seconds"` 37 | TotalLossLimitedParticipantSeconds int `json:"total_loss_limited_participant_seconds"` 38 | TotalLossDegradedParticipantSeconds int `json:"total_loss_degraded_participant_seconds"` 39 | TotalConferenceSeconds int `json:"total_conference_seconds"` 40 | TotalConferencesCreated int `json:"total_conferences_created"` 41 | TotalConferencesCompleted int `json:"total_conferences_completed"` 42 | TotalFailedConferences int `json:"total_failed_conferences"` 43 | TotalPartiallyFailedConferences int `json:"total_partially_failed_conferences"` 44 | TotalDataChannelMessagesReceived int `json:"total_data_channel_messages_received"` 45 | TotalDataChannelMessagesSent int `json:"total_data_channel_messages_sent"` 46 | TotalColibriWebSocketMessagesReceived int `json:"total_colibri_web_socket_messages_received"` 47 | TotalColibriWebSocketMessagesSent int `json:"total_colibri_web_socket_messages_sent"` 48 | TotalParticipants int `json:"total_participants"` 49 | OctoVersion int `json:"octo_version"` 50 | OctoConferences int `json:"octo_conferences"` 51 | OctoEndpoints int `json:"octo_endpoints"` 52 | OctoReceiveBitrate float64 `json:"octo_receive_bitrate"` 53 | OctoReceivePacketRate float64 `json:"octo_receive_packet_rate"` 54 | OctoSendBitrate float64 `json:"octo_send_bitrate"` 55 | OctoSendPacketRate float64 `json:"octo_send_packet_rate"` 56 | TotalBytesReceivedOcto int `json:"total_bytes_received_octo"` 57 | TotalBytesSentOcto int `json:"total_bytes_sent_octo"` 58 | TotalPacketsDroppedOcto int `json:"total_packets_dropped_octo"` 59 | TotalPacketsReceivedOcto int `json:"total_packets_received_octo"` 60 | TotalPacketsSentOcto int `json:"total_packets_sent_octo"` 61 | TotalICESucceededRelayed int `json:"total_ice_succeeded_relayed"` 62 | TotalICESucceeded int `json:"total_ice_succeeded"` 63 | TotalICESucceededTCP int `json:"total_ice_succeeded_tcp"` 64 | TotalICEFailed int `json:"total_ice_failed"` 65 | } 66 | 67 | var tpl = template.Must(template.New("stats").Parse(`# HELP jitsi_threads The number of Java threads that the video bridge is using. 68 | # TYPE jitsi_threads gauge 69 | jitsi_threads {{.Threads}} 70 | # HELP jitsi_bit_rate_download The total incoming bitrate for the video bridge in kilobits per second. 71 | # TYPE jitsi_bit_rate_download gauge 72 | jitsi_bit_rate_download {{.BitRateDownload}} 73 | # HELP jitsi_bit_rate_upload The total outgoing bitrate for the video bridge in kilobits per second. 74 | # TYPE jitsi_bit_rate_upload gauge 75 | jitsi_bit_rate_upload {{.BitRateUpload}} 76 | # HELP jitsi_packet_rate_download The total incoming packet rate for the video bridge in packets per second. 77 | # TYPE jitsi_packet_rate_download gauge 78 | jitsi_packet_rate_download {{.PacketRateDownload}} 79 | # HELP jitsi_packet_rate_upload The total outgoing packet rate for the video bridge in packets per second. 80 | # TYPE jitsi_packet_rate_upload gauge 81 | jitsi_packet_rate_upload {{.PacketRateUpload}} 82 | # HELP jitsi_loss_rate_download The fraction of lost incoming RTP packets. This is based on RTP sequence numbers and is relatively accurate. 83 | # TYPE jitsi_loss_rate_download gauge 84 | jitsi_loss_rate_download {{.LossRateDownload}} 85 | # HELP jitsi_loss_rate_upload The fraction of lost outgoing RTP packets. This is based on incoming RTCP Receiver Reports, and an attempt to subtract the fraction of packets that were not sent (i.e. were lost before they reached the bridge). Further, this is averaged over all streams of all users as opposed to all packets, so it is not correctly weighted. This is not accurate, but may be a useful metric nonetheless. 86 | # TYPE jitsi_loss_rate_upload gauge 87 | jitsi_loss_rate_upload {{.LossRateUpload}} 88 | # HELP jitsi_jitter_aggregate Experimental. An average value (in milliseconds) of the jitter calculated for incoming and outgoing streams. This hasn't been tested and it is currently not known whether the values are correct or not. 89 | # TYPE jitsi_jitter_aggregate gauge 90 | jitsi_jitter_aggregate {{.JitterAggregate}} 91 | # HELP jitsi_rtt_aggregate An average value (in milliseconds) of the RTT across all streams. 92 | # TYPE jitsi_rtt_aggregate gauge 93 | jitsi_rtt_aggregate {{.RTTAggregate}} 94 | # HELP jitsi_largest_conference The number of participants in the largest conference currently hosted on the bridge. 95 | # TYPE jitsi_largest_conference gauge 96 | jitsi_largest_conference {{.LargestConference}} 97 | # HELP jitsi_audiochannels The current number of audio channels. 98 | # TYPE jitsi_audiochannels gauge 99 | jitsi_audiochannels {{.AudioChannels}} 100 | # HELP jitsi_videochannels The current number of video channels. 101 | # TYPE jitsi_videochannels gauge 102 | jitsi_videochannels {{.VideoChannels}} 103 | # HELP jitsi_conferences The current number of conferences. 104 | # TYPE jitsi_conferences gauge 105 | jitsi_conferences {{.Conferences}} 106 | # HELP jitsi_p2p_conferences The current number of p2p conferences. 107 | # TYPE jitsi_p2p_conferences gauge 108 | jitsi_p2p_conferences {{.P2PConferences}} 109 | # HELP jitsi_participants The current number of participants. 110 | # TYPE jitsi_participants gauge 111 | jitsi_participants {{.Participants}} 112 | # HELP jitsi_total_participants Total participants since running. 113 | # TYPE jitsi_total_participants gauge 114 | jitsi_total_participants {{.TotalParticipants}} 115 | # HELP jitsi_endpoint_sending_video An estimation of the number of current endpoints sending a video stream. 116 | # TYPE jitsi_endpoint_sending_video gauge 117 | jitsi_endpoints_sending_video {{.EndpointsSendingVideo}} 118 | # HELP jitsi_videostreams An estimation of the number of current video streams forwarded by the bridge. 119 | # TYPE jitsi_videostreams gauge 120 | jitsi_videostreams {{.Videostreams}} 121 | # HELP jitsi_stress_level Stress Level reported to Jicofo by the videobridge. 122 | # TYPE jitsi_stress_level gauge 123 | jitsi_stress_level {{.StressLevel}} 124 | # HELP jitsi_total_loss_controlled_participant_seconds The total number of participant-seconds that are loss-controlled. 125 | # TYPE jitsi_total_loss_controlled_participant_seconds counter 126 | jitsi_total_loss_controlled_participant_seconds {{.TotalLossControlledParticipantSeconds}} 127 | # HELP jitsi_total_loss_limited_participant_seconds The total number of participant-seconds that are loss-limited. 128 | # TYPE jitsi_total_loss_limited_participant_seconds counter 129 | jitsi_total_loss_limited_participant_seconds {{.TotalLossLimitedParticipantSeconds}} 130 | # HELP jitsi_total_loss_degraded_participant_seconds The total number of participant-seconds that are loss-degraded. 131 | # TYPE jitsi_total_loss_degraded_participant_seconds counter 132 | jitsi_total_loss_degraded_participant_seconds {{.TotalLossDegradedParticipantSeconds}} 133 | # HELP jitsi_total_conference_seconds The sum of the lengths of all completed conferences, in seconds. 134 | # TYPE jitsi_total_conference_seconds counter 135 | jitsi_total_conference_seconds {{.TotalConferenceSeconds}} 136 | # HELP jitsi_total_conferences_created The total number of conferences created on the bridge. 137 | # TYPE jitsi_total_conferences_created counter 138 | jitsi_total_conferences_created {{.TotalConferencesCreated}} 139 | # HELP jitsi_total_conferences_completed The total number of conferences completed on the bridge. 140 | # TYPE jitsi_total_conferences_completed counter 141 | jitsi_total_conferences_completed {{.TotalConferencesCompleted}} 142 | # HELP jitsi_total_failed_conferences The total number of failed conferences on the bridge. A conference is marked as failed when all of its channels have failed. A channel is marked as failed if it had no payload activity. 143 | # TYPE jitsi_total_failed_conferences counter 144 | jitsi_total_failed_conferences {{.TotalFailedConferences}} 145 | # HELP jitsi_total_partially_failed_conferences The total number of partially failed conferences on the bridge. A conference is marked as partially failed when some of its channels has failed. A channel is marked as failed if it had no payload activity. 146 | # TYPE jitsi_total_partially_failed_conferences counter 147 | jitsi_total_partially_failed_conferences {{.TotalPartiallyFailedConferences}} 148 | # HELP jitsi_total_data_channel_messages_received The total number messages received through data channels. 149 | # TYPE jitsi_total_data_channel_messages_received counter 150 | jitsi_total_data_channel_messages_received {{.TotalDataChannelMessagesReceived}} 151 | # HELP jitsi_total_data_channel_messages_sent The total number messages sent through data channels. 152 | # TYPE jitsi_total_data_channel_messages_sent counter 153 | jitsi_total_data_channel_messages_sent {{.TotalDataChannelMessagesSent}} 154 | # HELP jitsi_total_colibri_web_socket_messages_received The total number messages received through COLIBRI web sockets. 155 | # TYPE jitsi_total_colibri_web_socket_messages_received counter 156 | jitsi_total_colibri_web_socket_messages_received {{.TotalColibriWebSocketMessagesReceived}} 157 | # HELP jitsi_total_colibri_web_socket_messages_sent The total number messages sent through COLIBRI web sockets. 158 | # TYPE jitsi_total_colibri_web_socket_messages_sent counter 159 | jitsi_total_colibri_web_socket_messages_sent {{.TotalColibriWebSocketMessagesSent}} 160 | # HELP jitsi_octo_version The current running OCTO version 161 | # TYPE jitsi_octo_version gauge 162 | jitsi_octo_version {{.OctoVersion}} 163 | # HELP jitsi_octo_conferences The current number of OCTO conferences. 164 | # TYPE jitsi_octo_conferences gauge 165 | jitsi_octo_conferences {{.OctoConferences}} 166 | # HELP jitsi_octo_endpoints The current number of OCTO endpoints. 167 | # TYPE jitsi_octo_endpoints gauge 168 | jitsi_octo_endpoints {{.OctoEndpoints}} 169 | # HELP jitsi_octo_receive_bitrate The total receiving bitrate for the OCTO video bridge in kilobits per second. 170 | # TYPE jitsi_octo_receive_bitrate gauge 171 | jitsi_octo_receive_bitrate {{.OctoReceiveBitrate}} 172 | # HELP jitsi_octo_send_bitrate The total outgoing bitrate for the OCTO video bridge in kilobits per second. 173 | # TYPE jitsi_octo_send_bitrate gauge 174 | jitsi_octo_send_bitrate {{.OctoSendBitrate}} 175 | # HELP jitsi_octo_receive_packet_rate The total incoming packet rate for the OCTO video bridge in packets per second. 176 | # TYPE jitsi_octo_receive_packet_rate gauge 177 | jitsi_octo_receive_packet_rate {{.OctoReceivePacketRate}} 178 | # HELP jitsi_octo_send_packet_rate The total outgoing packet rate for the OCTO video bridge in packets per second. 179 | # TYPE jitsi_octo_send_packet_rate gauge 180 | jitsi_octo_send_packet_rate {{.OctoSendPacketRate}} 181 | # HELP jitsi_total_bytes_received_octo The total incoming bit rate for the OCTO video bridge in bytes per second. 182 | # TYPE jitsi_total_bytes_received_octo gauge 183 | jitsi_total_bytes_received_octo {{.TotalBytesReceivedOcto}} 184 | # HELP jitsi_total_bytes_sent_octo The total outgoing bit rate for the OCTO video bridge in bytes per second. 185 | # TYPE jitsi_total_bytes_sent_octo gauge 186 | jitsi_total_bytes_sent_octo {{.TotalBytesSentOcto}} 187 | # HELP jitsi_total_packets_dropped_octo The total of dropped packets handled by the OCTO video bridge. 188 | # TYPE jitsi_total_packets_dropped_octo gauge 189 | jitsi_total_packets_dropped_octo {{.TotalPacketsDroppedOcto}} 190 | # HELP jitsi_total_packets_received_octo The total of incoming dropped packets handled by the OCTO video bridge. 191 | # TYPE jitsi_total_packets_received_octo gauge 192 | jitsi_total_packets_received_octo {{.TotalPacketsReceivedOcto}} 193 | # HELP jitsi_total_packets_sent_octo The total of sent dropped packets handled by the OCTO video bridge. 194 | # TYPE jitsi_total_packets_sent_octo gauge 195 | jitsi_total_packets_sent_octo {{.TotalPacketsSentOcto}} 196 | # HELP total_ice_succeeded_relayed The total number of times an ICE Agent succeeded and the selected candidate pair included a relayed candidate. 197 | # TYPE total_ice_succeeded_relayed gauge 198 | total_ice_succeeded_relayed {{.TotalICESucceededRelayed}} 199 | # HELP total_ice_succeeded The total number of times an ICE Agent succeeded. 200 | # TYPE total_ice_succeeded gauge 201 | total_ice_succeeded {{.TotalICESucceeded}} 202 | # HELP total_ice_succeeded_tcp The total number of times an ICE Agent succeeded and the selected candidate was a TCP candidate. 203 | # TYPE total_ice_succeeded_tcp gauge 204 | total_ice_succeeded_tcp {{.TotalICESucceededTCP}} 205 | # HELP total_ice_failed The total number of times an ICE Agent failed to establish connectivity. 206 | # TYPE total_ice_failed gauge 207 | total_ice_failed {{.TotalICEFailed}} 208 | # HELP jitsi_conference_sizes Distribution of conference sizes 209 | # TYPE jitsi_conference_sizes gauge 210 | {{ range $key, $value := .ConferenceSizes -}} 211 | jitsi_conference_sizes{conference_size="{{$key}}"} {{ $value }} 212 | {{ end -}} 213 | 214 | `)) 215 | 216 | type handler struct { 217 | sourceURL string 218 | } 219 | 220 | func (h handler) ServeHTTP(w http.ResponseWriter, req *http.Request) { 221 | resp, err := http.Get(h.sourceURL) 222 | if err != nil { 223 | log.Printf("scrape error: %v", err) 224 | http.Error(w, err.Error(), http.StatusInternalServerError) 225 | return 226 | } 227 | defer resp.Body.Close() 228 | 229 | var stats videoBridgeStats 230 | if err := json.NewDecoder(resp.Body).Decode(&stats); err != nil { 231 | log.Printf("json decoding error: %v", err) 232 | http.Error(w, err.Error(), http.StatusInternalServerError) 233 | return 234 | } 235 | 236 | w.Header().Set("Content-Type", "text/plain") 237 | _ = tpl.Execute(w, &stats) 238 | } 239 | 240 | func main() { 241 | log.SetFlags(0) 242 | flag.Parse() 243 | 244 | http.Handle("/metrics", handler{sourceURL: *videoBridgeURL}) 245 | http.HandleFunc("/health", func(w http.ResponseWriter, req *http.Request) { 246 | _, _ = w.Write([]byte(`ok`)) 247 | }) 248 | if err := http.ListenAndServe(*addr, nil); err != nil { 249 | log.Fatal(err) 250 | } 251 | 252 | log.Println("Started Jitsi Meet Metrics Exporter") 253 | } -------------------------------------------------------------------------------- /main_test.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "net/http" 5 | "net/http/httptest" 6 | "testing" 7 | 8 | "github.com/google/go-cmp/cmp" 9 | ) 10 | 11 | type constHandler struct { 12 | s string 13 | } 14 | 15 | func (h constHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { 16 | w.Write([]byte(h.s)) 17 | } 18 | 19 | func TestGetMetrics(t *testing.T) { 20 | tcs := []struct { 21 | statsJson string 22 | expected string 23 | }{ 24 | { 25 | statsJson: `{"largest_conference":3,"total_sip_call_failures":0,"total_participants":18,"conference_sizes":[0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"bridge_selector":{"total_least_loaded_in_region":0,"total_split_due_to_load":0,"total_not_loaded_in_region_in_conference":0,"total_least_loaded_in_region_in_conference":0,"total_not_loaded_in_region":0,"total_split_due_to_region":0,"bridge_count":1,"operational_bridge_count":1,"total_least_loaded_in_conference":0,"total_least_loaded":3},"total_conferences_created":14,"total_conferences_completed":0,"total_recording_failures":0,"conferences":2,"p2p_conferences":1,"total_live_streaming_failures":0,"endpoints_sending_video":10,"participants":4}`, 26 | expected: `# HELP jitsi_threads The number of Java threads that the video bridge is using. 27 | # TYPE jitsi_threads gauge 28 | jitsi_threads 0 29 | # HELP jitsi_bit_rate_download The total incoming bitrate for the video bridge in kilobits per second. 30 | # TYPE jitsi_bit_rate_download gauge 31 | jitsi_bit_rate_download 0 32 | # HELP jitsi_bit_rate_upload The total outgoing bitrate for the video bridge in kilobits per second. 33 | # TYPE jitsi_bit_rate_upload gauge 34 | jitsi_bit_rate_upload 0 35 | # HELP jitsi_packet_rate_download The total incoming packet rate for the video bridge in packets per second. 36 | # TYPE jitsi_packet_rate_download gauge 37 | jitsi_packet_rate_download 0 38 | # HELP jitsi_packet_rate_upload The total outgoing packet rate for the video bridge in packets per second. 39 | # TYPE jitsi_packet_rate_upload gauge 40 | jitsi_packet_rate_upload 0 41 | # HELP jitsi_loss_rate_download The fraction of lost incoming RTP packets. This is based on RTP sequence numbers and is relatively accurate. 42 | # TYPE jitsi_loss_rate_download gauge 43 | jitsi_loss_rate_download 0 44 | # HELP jitsi_loss_rate_upload The fraction of lost outgoing RTP packets. This is based on incoming RTCP Receiver Reports, and an attempt to subtract the fraction of packets that were not sent (i.e. were lost before they reached the bridge). Further, this is averaged over all streams of all users as opposed to all packets, so it is not correctly weighted. This is not accurate, but may be a useful metric nonetheless. 45 | # TYPE jitsi_loss_rate_upload gauge 46 | jitsi_loss_rate_upload 0 47 | # HELP jitsi_jitter_aggregate Experimental. An average value (in milliseconds) of the jitter calculated for incoming and outgoing streams. This hasn't been tested and it is currently not known whether the values are correct or not. 48 | # TYPE jitsi_jitter_aggregate gauge 49 | jitsi_jitter_aggregate 0 50 | # HELP jitsi_rtt_aggregate An average value (in milliseconds) of the RTT across all streams. 51 | # TYPE jitsi_rtt_aggregate gauge 52 | jitsi_rtt_aggregate 0 53 | # HELP jitsi_largest_conference The number of participants in the largest conference currently hosted on the bridge. 54 | # TYPE jitsi_largest_conference gauge 55 | jitsi_largest_conference 3 56 | # HELP jitsi_audiochannels The current number of audio channels. 57 | # TYPE jitsi_audiochannels gauge 58 | jitsi_audiochannels 0 59 | # HELP jitsi_videochannels The current number of video channels. 60 | # TYPE jitsi_videochannels gauge 61 | jitsi_videochannels 0 62 | # HELP jitsi_conferences The current number of conferences. 63 | # TYPE jitsi_conferences gauge 64 | jitsi_conferences 2 65 | # HELP jitsi_p2p_conferences The current number of p2p conferences. 66 | # TYPE jitsi_p2p_conferences gauge 67 | jitsi_p2p_conferences 1 68 | # HELP jitsi_participants The current number of participants. 69 | # TYPE jitsi_participants gauge 70 | jitsi_participants 4 71 | # HELP jitsi_total_participants Total participants since running. 72 | # TYPE jitsi_total_participants gauge 73 | jitsi_total_participants 18 74 | # HELP jitsi_endpoint_sending_video An estimation of the number of current endpoints sending a video stream. 75 | # TYPE jitsi_endpoint_sending_video gauge 76 | jitsi_endpoints_sending_video 10 77 | # HELP jitsi_videostreams An estimation of the number of current video streams forwarded by the bridge. 78 | # TYPE jitsi_videostreams gauge 79 | jitsi_videostreams 0 80 | # HELP jitsi_stress_level Stress Level reported to Jicofo by the videobridge. 81 | # TYPE jitsi_stress_level gauge 82 | jitsi_stress_level 0 83 | # HELP jitsi_total_loss_controlled_participant_seconds The total number of participant-seconds that are loss-controlled. 84 | # TYPE jitsi_total_loss_controlled_participant_seconds counter 85 | jitsi_total_loss_controlled_participant_seconds 0 86 | # HELP jitsi_total_loss_limited_participant_seconds The total number of participant-seconds that are loss-limited. 87 | # TYPE jitsi_total_loss_limited_participant_seconds counter 88 | jitsi_total_loss_limited_participant_seconds 0 89 | # HELP jitsi_total_loss_degraded_participant_seconds The total number of participant-seconds that are loss-degraded. 90 | # TYPE jitsi_total_loss_degraded_participant_seconds counter 91 | jitsi_total_loss_degraded_participant_seconds 0 92 | # HELP jitsi_total_conference_seconds The sum of the lengths of all completed conferences, in seconds. 93 | # TYPE jitsi_total_conference_seconds counter 94 | jitsi_total_conference_seconds 0 95 | # HELP jitsi_total_conferences_created The total number of conferences created on the bridge. 96 | # TYPE jitsi_total_conferences_created counter 97 | jitsi_total_conferences_created 14 98 | # HELP jitsi_total_conferences_completed The total number of conferences completed on the bridge. 99 | # TYPE jitsi_total_conferences_completed counter 100 | jitsi_total_conferences_completed 0 101 | # HELP jitsi_total_failed_conferences The total number of failed conferences on the bridge. A conference is marked as failed when all of its channels have failed. A channel is marked as failed if it had no payload activity. 102 | # TYPE jitsi_total_failed_conferences counter 103 | jitsi_total_failed_conferences 0 104 | # HELP jitsi_total_partially_failed_conferences The total number of partially failed conferences on the bridge. A conference is marked as partially failed when some of its channels has failed. A channel is marked as failed if it had no payload activity. 105 | # TYPE jitsi_total_partially_failed_conferences counter 106 | jitsi_total_partially_failed_conferences 0 107 | # HELP jitsi_total_data_channel_messages_received The total number messages received through data channels. 108 | # TYPE jitsi_total_data_channel_messages_received counter 109 | jitsi_total_data_channel_messages_received 0 110 | # HELP jitsi_total_data_channel_messages_sent The total number messages sent through data channels. 111 | # TYPE jitsi_total_data_channel_messages_sent counter 112 | jitsi_total_data_channel_messages_sent 0 113 | # HELP jitsi_total_colibri_web_socket_messages_received The total number messages received through COLIBRI web sockets. 114 | # TYPE jitsi_total_colibri_web_socket_messages_received counter 115 | jitsi_total_colibri_web_socket_messages_received 0 116 | # HELP jitsi_total_colibri_web_socket_messages_sent The total number messages sent through COLIBRI web sockets. 117 | # TYPE jitsi_total_colibri_web_socket_messages_sent counter 118 | jitsi_total_colibri_web_socket_messages_sent 0 119 | # HELP jitsi_octo_version The current running OCTO version 120 | # TYPE jitsi_octo_version gauge 121 | jitsi_octo_version 0 122 | # HELP jitsi_octo_conferences The current number of OCTO conferences. 123 | # TYPE jitsi_octo_conferences gauge 124 | jitsi_octo_conferences 0 125 | # HELP jitsi_octo_endpoints The current number of OCTO endpoints. 126 | # TYPE jitsi_octo_endpoints gauge 127 | jitsi_octo_endpoints 0 128 | # HELP jitsi_octo_receive_bitrate The total receiving bitrate for the OCTO video bridge in kilobits per second. 129 | # TYPE jitsi_octo_receive_bitrate gauge 130 | jitsi_octo_receive_bitrate 0 131 | # HELP jitsi_octo_send_bitrate The total outgoing bitrate for the OCTO video bridge in kilobits per second. 132 | # TYPE jitsi_octo_send_bitrate gauge 133 | jitsi_octo_send_bitrate 0 134 | # HELP jitsi_octo_receive_packet_rate The total incoming packet rate for the OCTO video bridge in packets per second. 135 | # TYPE jitsi_octo_receive_packet_rate gauge 136 | jitsi_octo_receive_packet_rate 0 137 | # HELP jitsi_octo_send_packet_rate The total outgoing packet rate for the OCTO video bridge in packets per second. 138 | # TYPE jitsi_octo_send_packet_rate gauge 139 | jitsi_octo_send_packet_rate 0 140 | # HELP jitsi_total_bytes_received_octo The total incoming bit rate for the OCTO video bridge in bytes per second. 141 | # TYPE jitsi_total_bytes_received_octo gauge 142 | jitsi_total_bytes_received_octo 0 143 | # HELP jitsi_total_bytes_sent_octo The total outgoing bit rate for the OCTO video bridge in bytes per second. 144 | # TYPE jitsi_total_bytes_sent_octo gauge 145 | jitsi_total_bytes_sent_octo 0 146 | # HELP jitsi_total_packets_dropped_octo The total of dropped packets handled by the OCTO video bridge. 147 | # TYPE jitsi_total_packets_dropped_octo gauge 148 | jitsi_total_packets_dropped_octo 0 149 | # HELP jitsi_total_packets_received_octo The total of incoming dropped packets handled by the OCTO video bridge. 150 | # TYPE jitsi_total_packets_received_octo gauge 151 | jitsi_total_packets_received_octo 0 152 | # HELP jitsi_total_packets_sent_octo The total of sent dropped packets handled by the OCTO video bridge. 153 | # TYPE jitsi_total_packets_sent_octo gauge 154 | jitsi_total_packets_sent_octo 0 155 | # HELP total_ice_succeeded_relayed The total number of times an ICE Agent succeeded and the selected candidate pair included a relayed candidate. 156 | # TYPE total_ice_succeeded_relayed gauge 157 | total_ice_succeeded_relayed 0 158 | # HELP total_ice_succeeded The total number of times an ICE Agent succeeded. 159 | # TYPE total_ice_succeeded gauge 160 | total_ice_succeeded 0 161 | # HELP total_ice_succeeded_tcp The total number of times an ICE Agent succeeded and the selected candidate was a TCP candidate. 162 | # TYPE total_ice_succeeded_tcp gauge 163 | total_ice_succeeded_tcp 0 164 | # HELP total_ice_failed The total number of times an ICE Agent failed to establish connectivity. 165 | # TYPE total_ice_failed gauge 166 | total_ice_failed 0 167 | # HELP jitsi_conference_sizes Distribution of conference sizes 168 | # TYPE jitsi_conference_sizes gauge 169 | jitsi_conference_sizes{conference_size="0"} 0 170 | jitsi_conference_sizes{conference_size="1"} 1 171 | jitsi_conference_sizes{conference_size="2"} 0 172 | jitsi_conference_sizes{conference_size="3"} 1 173 | jitsi_conference_sizes{conference_size="4"} 0 174 | jitsi_conference_sizes{conference_size="5"} 0 175 | jitsi_conference_sizes{conference_size="6"} 0 176 | jitsi_conference_sizes{conference_size="7"} 0 177 | jitsi_conference_sizes{conference_size="8"} 0 178 | jitsi_conference_sizes{conference_size="9"} 0 179 | jitsi_conference_sizes{conference_size="10"} 0 180 | jitsi_conference_sizes{conference_size="11"} 0 181 | jitsi_conference_sizes{conference_size="12"} 0 182 | jitsi_conference_sizes{conference_size="13"} 0 183 | jitsi_conference_sizes{conference_size="14"} 0 184 | jitsi_conference_sizes{conference_size="15"} 0 185 | jitsi_conference_sizes{conference_size="16"} 0 186 | jitsi_conference_sizes{conference_size="17"} 0 187 | jitsi_conference_sizes{conference_size="18"} 0 188 | jitsi_conference_sizes{conference_size="19"} 0 189 | jitsi_conference_sizes{conference_size="20"} 0 190 | jitsi_conference_sizes{conference_size="21"} 0 191 | `, 192 | }, 193 | { 194 | statsJson: `{ 195 | "audiochannels": 0, 196 | "bit_rate_download": 0.5, 197 | "bit_rate_upload": 0.5, 198 | "conference_sizes": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], 199 | "conferences": 0, 200 | "current_timestamp": "2019-03-14 11:02:15.184", 201 | "graceful_shutdown": false, 202 | "jitter_aggregate": 0, 203 | "largest_conference": 0, 204 | "loss_rate_download": 0.5, 205 | "loss_rate_upload": 0.5, 206 | "octo_conferences": 0, 207 | "octo_endpoints": 0, 208 | "octo_receive_bitrate": 0.0, 209 | "octo_receive_packet_rate": 0, 210 | "octo_send_bitrate": 0.0, 211 | "octo_send_packet_rate": 0, 212 | "octo_version": 1, 213 | "packet_rate_download": 0, 214 | "packet_rate_upload": 0, 215 | "participants": 0, 216 | "region": "eu-west-1", 217 | "relay_id": "10.0.0.5:4096", 218 | "rtp_loss": 0, 219 | "rtt_aggregate": 0, 220 | "stress_level": 0.6, 221 | "threads": 59, 222 | "total_bytes_received": 257628359, 223 | "total_bytes_received_octo": 0, 224 | "total_bytes_received_octo": 0, 225 | "total_bytes_sent": 257754048, 226 | "total_bytes_sent_octo": 0, 227 | "total_bytes_sent_octo": 0, 228 | "total_colibri_web_socket_messages_received": 0, 229 | "total_colibri_web_socket_messages_sent": 0, 230 | "total_conference_seconds": 470, 231 | "total_conferences_completed": 1, 232 | "total_conferences_created": 1, 233 | "total_data_channel_messages_received": 602, 234 | "total_data_channel_messages_sent": 600, 235 | "total_failed_conferences": 0, 236 | "total_ice_failed": 0, 237 | "total_ice_succeeded": 2, 238 | "total_ice_succeeded_tcp": 1, 239 | "total_loss_controlled_participant_seconds": 847, 240 | "total_loss_degraded_participant_seconds": 1, 241 | "total_loss_limited_participant_seconds": 0, 242 | "total_packets_dropped_octo": 0, 243 | "total_packets_dropped_octo": 0, 244 | "total_packets_received": 266644, 245 | "total_packets_received_octo": 0, 246 | "total_packets_received_octo": 0, 247 | "total_packets_sent": 266556, 248 | "total_packets_sent_octo": 0, 249 | "total_packets_sent_octo": 0, 250 | "total_partially_failed_conferences": 0, 251 | "total_participants": 2, 252 | "total_ice_succeeded_relayed": 3, 253 | "videochannels": 0, 254 | "videostreams": 0, 255 | "endpoints_sending_video": 10 256 | }`, 257 | expected: `# HELP jitsi_threads The number of Java threads that the video bridge is using. 258 | # TYPE jitsi_threads gauge 259 | jitsi_threads 59 260 | # HELP jitsi_bit_rate_download The total incoming bitrate for the video bridge in kilobits per second. 261 | # TYPE jitsi_bit_rate_download gauge 262 | jitsi_bit_rate_download 0.5 263 | # HELP jitsi_bit_rate_upload The total outgoing bitrate for the video bridge in kilobits per second. 264 | # TYPE jitsi_bit_rate_upload gauge 265 | jitsi_bit_rate_upload 0.5 266 | # HELP jitsi_packet_rate_download The total incoming packet rate for the video bridge in packets per second. 267 | # TYPE jitsi_packet_rate_download gauge 268 | jitsi_packet_rate_download 0 269 | # HELP jitsi_packet_rate_upload The total outgoing packet rate for the video bridge in packets per second. 270 | # TYPE jitsi_packet_rate_upload gauge 271 | jitsi_packet_rate_upload 0 272 | # HELP jitsi_loss_rate_download The fraction of lost incoming RTP packets. This is based on RTP sequence numbers and is relatively accurate. 273 | # TYPE jitsi_loss_rate_download gauge 274 | jitsi_loss_rate_download 0.5 275 | # HELP jitsi_loss_rate_upload The fraction of lost outgoing RTP packets. This is based on incoming RTCP Receiver Reports, and an attempt to subtract the fraction of packets that were not sent (i.e. were lost before they reached the bridge). Further, this is averaged over all streams of all users as opposed to all packets, so it is not correctly weighted. This is not accurate, but may be a useful metric nonetheless. 276 | # TYPE jitsi_loss_rate_upload gauge 277 | jitsi_loss_rate_upload 0.5 278 | # HELP jitsi_jitter_aggregate Experimental. An average value (in milliseconds) of the jitter calculated for incoming and outgoing streams. This hasn't been tested and it is currently not known whether the values are correct or not. 279 | # TYPE jitsi_jitter_aggregate gauge 280 | jitsi_jitter_aggregate 0 281 | # HELP jitsi_rtt_aggregate An average value (in milliseconds) of the RTT across all streams. 282 | # TYPE jitsi_rtt_aggregate gauge 283 | jitsi_rtt_aggregate 0 284 | # HELP jitsi_largest_conference The number of participants in the largest conference currently hosted on the bridge. 285 | # TYPE jitsi_largest_conference gauge 286 | jitsi_largest_conference 0 287 | # HELP jitsi_audiochannels The current number of audio channels. 288 | # TYPE jitsi_audiochannels gauge 289 | jitsi_audiochannels 0 290 | # HELP jitsi_videochannels The current number of video channels. 291 | # TYPE jitsi_videochannels gauge 292 | jitsi_videochannels 0 293 | # HELP jitsi_conferences The current number of conferences. 294 | # TYPE jitsi_conferences gauge 295 | jitsi_conferences 0 296 | # HELP jitsi_p2p_conferences The current number of p2p conferences. 297 | # TYPE jitsi_p2p_conferences gauge 298 | jitsi_p2p_conferences 0 299 | # HELP jitsi_participants The current number of participants. 300 | # TYPE jitsi_participants gauge 301 | jitsi_participants 0 302 | # HELP jitsi_total_participants Total participants since running. 303 | # TYPE jitsi_total_participants gauge 304 | jitsi_total_participants 2 305 | # HELP jitsi_endpoint_sending_video An estimation of the number of current endpoints sending a video stream. 306 | # TYPE jitsi_endpoint_sending_video gauge 307 | jitsi_endpoints_sending_video 10 308 | # HELP jitsi_videostreams An estimation of the number of current video streams forwarded by the bridge. 309 | # TYPE jitsi_videostreams gauge 310 | jitsi_videostreams 0 311 | # HELP jitsi_stress_level Stress Level reported to Jicofo by the videobridge. 312 | # TYPE jitsi_stress_level gauge 313 | jitsi_stress_level 0.6 314 | # HELP jitsi_total_loss_controlled_participant_seconds The total number of participant-seconds that are loss-controlled. 315 | # TYPE jitsi_total_loss_controlled_participant_seconds counter 316 | jitsi_total_loss_controlled_participant_seconds 847 317 | # HELP jitsi_total_loss_limited_participant_seconds The total number of participant-seconds that are loss-limited. 318 | # TYPE jitsi_total_loss_limited_participant_seconds counter 319 | jitsi_total_loss_limited_participant_seconds 0 320 | # HELP jitsi_total_loss_degraded_participant_seconds The total number of participant-seconds that are loss-degraded. 321 | # TYPE jitsi_total_loss_degraded_participant_seconds counter 322 | jitsi_total_loss_degraded_participant_seconds 1 323 | # HELP jitsi_total_conference_seconds The sum of the lengths of all completed conferences, in seconds. 324 | # TYPE jitsi_total_conference_seconds counter 325 | jitsi_total_conference_seconds 470 326 | # HELP jitsi_total_conferences_created The total number of conferences created on the bridge. 327 | # TYPE jitsi_total_conferences_created counter 328 | jitsi_total_conferences_created 1 329 | # HELP jitsi_total_conferences_completed The total number of conferences completed on the bridge. 330 | # TYPE jitsi_total_conferences_completed counter 331 | jitsi_total_conferences_completed 1 332 | # HELP jitsi_total_failed_conferences The total number of failed conferences on the bridge. A conference is marked as failed when all of its channels have failed. A channel is marked as failed if it had no payload activity. 333 | # TYPE jitsi_total_failed_conferences counter 334 | jitsi_total_failed_conferences 0 335 | # HELP jitsi_total_partially_failed_conferences The total number of partially failed conferences on the bridge. A conference is marked as partially failed when some of its channels has failed. A channel is marked as failed if it had no payload activity. 336 | # TYPE jitsi_total_partially_failed_conferences counter 337 | jitsi_total_partially_failed_conferences 0 338 | # HELP jitsi_total_data_channel_messages_received The total number messages received through data channels. 339 | # TYPE jitsi_total_data_channel_messages_received counter 340 | jitsi_total_data_channel_messages_received 602 341 | # HELP jitsi_total_data_channel_messages_sent The total number messages sent through data channels. 342 | # TYPE jitsi_total_data_channel_messages_sent counter 343 | jitsi_total_data_channel_messages_sent 600 344 | # HELP jitsi_total_colibri_web_socket_messages_received The total number messages received through COLIBRI web sockets. 345 | # TYPE jitsi_total_colibri_web_socket_messages_received counter 346 | jitsi_total_colibri_web_socket_messages_received 0 347 | # HELP jitsi_total_colibri_web_socket_messages_sent The total number messages sent through COLIBRI web sockets. 348 | # TYPE jitsi_total_colibri_web_socket_messages_sent counter 349 | jitsi_total_colibri_web_socket_messages_sent 0 350 | # HELP jitsi_octo_version The current running OCTO version 351 | # TYPE jitsi_octo_version gauge 352 | jitsi_octo_version 1 353 | # HELP jitsi_octo_conferences The current number of OCTO conferences. 354 | # TYPE jitsi_octo_conferences gauge 355 | jitsi_octo_conferences 0 356 | # HELP jitsi_octo_endpoints The current number of OCTO endpoints. 357 | # TYPE jitsi_octo_endpoints gauge 358 | jitsi_octo_endpoints 0 359 | # HELP jitsi_octo_receive_bitrate The total receiving bitrate for the OCTO video bridge in kilobits per second. 360 | # TYPE jitsi_octo_receive_bitrate gauge 361 | jitsi_octo_receive_bitrate 0 362 | # HELP jitsi_octo_send_bitrate The total outgoing bitrate for the OCTO video bridge in kilobits per second. 363 | # TYPE jitsi_octo_send_bitrate gauge 364 | jitsi_octo_send_bitrate 0 365 | # HELP jitsi_octo_receive_packet_rate The total incoming packet rate for the OCTO video bridge in packets per second. 366 | # TYPE jitsi_octo_receive_packet_rate gauge 367 | jitsi_octo_receive_packet_rate 0 368 | # HELP jitsi_octo_send_packet_rate The total outgoing packet rate for the OCTO video bridge in packets per second. 369 | # TYPE jitsi_octo_send_packet_rate gauge 370 | jitsi_octo_send_packet_rate 0 371 | # HELP jitsi_total_bytes_received_octo The total incoming bit rate for the OCTO video bridge in bytes per second. 372 | # TYPE jitsi_total_bytes_received_octo gauge 373 | jitsi_total_bytes_received_octo 0 374 | # HELP jitsi_total_bytes_sent_octo The total outgoing bit rate for the OCTO video bridge in bytes per second. 375 | # TYPE jitsi_total_bytes_sent_octo gauge 376 | jitsi_total_bytes_sent_octo 0 377 | # HELP jitsi_total_packets_dropped_octo The total of dropped packets handled by the OCTO video bridge. 378 | # TYPE jitsi_total_packets_dropped_octo gauge 379 | jitsi_total_packets_dropped_octo 0 380 | # HELP jitsi_total_packets_received_octo The total of incoming dropped packets handled by the OCTO video bridge. 381 | # TYPE jitsi_total_packets_received_octo gauge 382 | jitsi_total_packets_received_octo 0 383 | # HELP jitsi_total_packets_sent_octo The total of sent dropped packets handled by the OCTO video bridge. 384 | # TYPE jitsi_total_packets_sent_octo gauge 385 | jitsi_total_packets_sent_octo 0 386 | # HELP total_ice_succeeded_relayed The total number of times an ICE Agent succeeded and the selected candidate pair included a relayed candidate. 387 | # TYPE total_ice_succeeded_relayed gauge 388 | total_ice_succeeded_relayed 3 389 | # HELP total_ice_succeeded The total number of times an ICE Agent succeeded. 390 | # TYPE total_ice_succeeded gauge 391 | total_ice_succeeded 2 392 | # HELP total_ice_succeeded_tcp The total number of times an ICE Agent succeeded and the selected candidate was a TCP candidate. 393 | # TYPE total_ice_succeeded_tcp gauge 394 | total_ice_succeeded_tcp 1 395 | # HELP total_ice_failed The total number of times an ICE Agent failed to establish connectivity. 396 | # TYPE total_ice_failed gauge 397 | total_ice_failed 0 398 | # HELP jitsi_conference_sizes Distribution of conference sizes 399 | # TYPE jitsi_conference_sizes gauge 400 | jitsi_conference_sizes{conference_size="0"} 0 401 | jitsi_conference_sizes{conference_size="1"} 0 402 | jitsi_conference_sizes{conference_size="2"} 0 403 | jitsi_conference_sizes{conference_size="3"} 0 404 | jitsi_conference_sizes{conference_size="4"} 0 405 | jitsi_conference_sizes{conference_size="5"} 0 406 | jitsi_conference_sizes{conference_size="6"} 0 407 | jitsi_conference_sizes{conference_size="7"} 0 408 | jitsi_conference_sizes{conference_size="8"} 0 409 | jitsi_conference_sizes{conference_size="9"} 0 410 | jitsi_conference_sizes{conference_size="10"} 0 411 | jitsi_conference_sizes{conference_size="11"} 0 412 | jitsi_conference_sizes{conference_size="12"} 0 413 | jitsi_conference_sizes{conference_size="13"} 0 414 | jitsi_conference_sizes{conference_size="14"} 0 415 | jitsi_conference_sizes{conference_size="15"} 0 416 | jitsi_conference_sizes{conference_size="16"} 0 417 | jitsi_conference_sizes{conference_size="17"} 0 418 | jitsi_conference_sizes{conference_size="18"} 0 419 | jitsi_conference_sizes{conference_size="19"} 0 420 | jitsi_conference_sizes{conference_size="20"} 0 421 | jitsi_conference_sizes{conference_size="21"} 0 422 | `, 423 | }, 424 | } 425 | 426 | for _, tc := range tcs { 427 | srv := httptest.NewServer(constHandler{tc.statsJson}) 428 | 429 | h := handler{ 430 | sourceURL: srv.URL, 431 | } 432 | req, err := http.NewRequest("GET", "/metrics", nil) 433 | if err != nil { 434 | t.Fatal(err) 435 | } 436 | 437 | rr := httptest.NewRecorder() 438 | h.ServeHTTP(rr, req) 439 | 440 | if status := rr.Code; status != http.StatusOK { 441 | t.Errorf("handler returned wrong status code: got %v want %v", status, http.StatusOK) 442 | } 443 | 444 | if rr.Body.String() != tc.expected { 445 | t.Errorf("Response does not match the expected string:\n%s", cmp.Diff(rr.Body.String(), tc.expected)) 446 | } 447 | 448 | srv.Close() 449 | } 450 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /dashboards/jitsi-meet.json: -------------------------------------------------------------------------------- 1 | { 2 | "__inputs": [ 3 | { 4 | "name": "DS_PROMETHEUS", 5 | "label": "Prometheus", 6 | "description": "", 7 | "type": "datasource", 8 | "pluginId": "prometheus", 9 | "pluginName": "Prometheus" 10 | } 11 | ], 12 | "__elements": {}, 13 | "__requires": [ 14 | { 15 | "type": "grafana", 16 | "id": "grafana", 17 | "name": "Grafana", 18 | "version": "10.4.0" 19 | }, 20 | { 21 | "type": "datasource", 22 | "id": "prometheus", 23 | "name": "Prometheus", 24 | "version": "1.0.0" 25 | }, 26 | { 27 | "type": "panel", 28 | "id": "stat", 29 | "name": "Stat", 30 | "version": "" 31 | }, 32 | { 33 | "type": "panel", 34 | "id": "timeseries", 35 | "name": "Time series", 36 | "version": "" 37 | } 38 | ], 39 | "annotations": { 40 | "list": [ 41 | { 42 | "builtIn": 1, 43 | "datasource": { 44 | "type": "datasource", 45 | "uid": "grafana" 46 | }, 47 | "enable": true, 48 | "hide": true, 49 | "iconColor": "rgba(0, 211, 255, 1)", 50 | "name": "Annotations & Alerts", 51 | "type": "dashboard" 52 | } 53 | ] 54 | }, 55 | "description": "Dashboard for Jitsi Meet Exporter", 56 | "editable": true, 57 | "fiscalYearStartMonth": 0, 58 | "gnetId": 12098, 59 | "graphTooltip": 1, 60 | "id": null, 61 | "links": [], 62 | "panels": [ 63 | { 64 | "collapsed": false, 65 | "datasource": { 66 | "type": "prometheus", 67 | "uid": "prometheus" 68 | }, 69 | "gridPos": { 70 | "h": 1, 71 | "w": 24, 72 | "x": 0, 73 | "y": 0 74 | }, 75 | "id": 40, 76 | "panels": [], 77 | "targets": [ 78 | { 79 | "datasource": { 80 | "type": "prometheus", 81 | "uid": "prometheus" 82 | }, 83 | "refId": "A" 84 | } 85 | ], 86 | "title": "Key metrics", 87 | "type": "row" 88 | }, 89 | { 90 | "datasource": { 91 | "type": "prometheus", 92 | "uid": "${DS_PROMETHEUS}" 93 | }, 94 | "description": "The total incoming bitrate for the video bridge in kilobits per second.", 95 | "fieldConfig": { 96 | "defaults": { 97 | "mappings": [ 98 | { 99 | "options": { 100 | "match": "null", 101 | "result": { 102 | "text": "N/A" 103 | } 104 | }, 105 | "type": "special" 106 | } 107 | ], 108 | "thresholds": { 109 | "mode": "absolute", 110 | "steps": [ 111 | { 112 | "color": "blue", 113 | "value": null 114 | } 115 | ] 116 | }, 117 | "unit": "Kbits" 118 | }, 119 | "overrides": [] 120 | }, 121 | "gridPos": { 122 | "h": 4, 123 | "w": 3, 124 | "x": 0, 125 | "y": 1 126 | }, 127 | "id": 18, 128 | "maxDataPoints": 100, 129 | "options": { 130 | "colorMode": "value", 131 | "fieldOptions": { 132 | "calcs": [ 133 | "lastNotNull" 134 | ] 135 | }, 136 | "graphMode": "area", 137 | "justifyMode": "auto", 138 | "orientation": "horizontal", 139 | "reduceOptions": { 140 | "calcs": [ 141 | "last" 142 | ], 143 | "fields": "", 144 | "values": false 145 | }, 146 | "showPercentChange": false, 147 | "textMode": "auto", 148 | "wideLayout": true 149 | }, 150 | "pluginVersion": "10.4.0", 151 | "targets": [ 152 | { 153 | "datasource": { 154 | "type": "prometheus", 155 | "uid": "${DS_PROMETHEUS}" 156 | }, 157 | "expr": "jitsi_bit_rate_download{instance=~\"$instance.*\"}", 158 | "interval": "", 159 | "legendFormat": "", 160 | "refId": "A" 161 | } 162 | ], 163 | "title": "Bitrate download", 164 | "type": "stat" 165 | }, 166 | { 167 | "datasource": { 168 | "type": "prometheus", 169 | "uid": "${DS_PROMETHEUS}" 170 | }, 171 | "description": "The total outgoing bitrate for the video bridge in kilobits per second.", 172 | "fieldConfig": { 173 | "defaults": { 174 | "mappings": [ 175 | { 176 | "options": { 177 | "match": "null", 178 | "result": { 179 | "text": "N/A" 180 | } 181 | }, 182 | "type": "special" 183 | } 184 | ], 185 | "thresholds": { 186 | "mode": "absolute", 187 | "steps": [ 188 | { 189 | "color": "blue", 190 | "value": null 191 | } 192 | ] 193 | }, 194 | "unit": "Kbits" 195 | }, 196 | "overrides": [] 197 | }, 198 | "gridPos": { 199 | "h": 4, 200 | "w": 3, 201 | "x": 3, 202 | "y": 1 203 | }, 204 | "id": 19, 205 | "maxDataPoints": 100, 206 | "options": { 207 | "colorMode": "value", 208 | "fieldOptions": { 209 | "calcs": [ 210 | "lastNotNull" 211 | ] 212 | }, 213 | "graphMode": "area", 214 | "justifyMode": "auto", 215 | "orientation": "horizontal", 216 | "reduceOptions": { 217 | "calcs": [ 218 | "last" 219 | ], 220 | "fields": "", 221 | "values": false 222 | }, 223 | "showPercentChange": false, 224 | "textMode": "auto", 225 | "wideLayout": true 226 | }, 227 | "pluginVersion": "10.4.0", 228 | "targets": [ 229 | { 230 | "datasource": { 231 | "type": "prometheus", 232 | "uid": "${DS_PROMETHEUS}" 233 | }, 234 | "expr": "jitsi_bit_rate_upload{instance=~\"$instance.*\"}", 235 | "interval": "", 236 | "legendFormat": "", 237 | "refId": "A" 238 | } 239 | ], 240 | "title": "Bitrate upload", 241 | "type": "stat" 242 | }, 243 | { 244 | "datasource": { 245 | "type": "prometheus", 246 | "uid": "${DS_PROMETHEUS}" 247 | }, 248 | "description": "The number of Java threads that the video bridge is using.", 249 | "fieldConfig": { 250 | "defaults": { 251 | "mappings": [ 252 | { 253 | "options": { 254 | "match": "null", 255 | "result": { 256 | "text": "N/A" 257 | } 258 | }, 259 | "type": "special" 260 | } 261 | ], 262 | "thresholds": { 263 | "mode": "absolute", 264 | "steps": [ 265 | { 266 | "color": "blue", 267 | "value": null 268 | } 269 | ] 270 | }, 271 | "unit": "none" 272 | }, 273 | "overrides": [] 274 | }, 275 | "gridPos": { 276 | "h": 4, 277 | "w": 3, 278 | "x": 6, 279 | "y": 1 280 | }, 281 | "id": 9, 282 | "maxDataPoints": 100, 283 | "options": { 284 | "colorMode": "value", 285 | "fieldOptions": { 286 | "calcs": [ 287 | "lastNotNull" 288 | ] 289 | }, 290 | "graphMode": "area", 291 | "justifyMode": "auto", 292 | "orientation": "horizontal", 293 | "reduceOptions": { 294 | "calcs": [ 295 | "last" 296 | ], 297 | "fields": "", 298 | "values": false 299 | }, 300 | "showPercentChange": false, 301 | "textMode": "auto", 302 | "wideLayout": true 303 | }, 304 | "pluginVersion": "10.4.0", 305 | "targets": [ 306 | { 307 | "datasource": { 308 | "type": "prometheus", 309 | "uid": "${DS_PROMETHEUS}" 310 | }, 311 | "expr": "jitsi_threads{instance=~\"$instance.*\"}", 312 | "interval": "", 313 | "legendFormat": "", 314 | "refId": "A" 315 | } 316 | ], 317 | "title": "Threads", 318 | "type": "stat" 319 | }, 320 | { 321 | "datasource": { 322 | "type": "prometheus", 323 | "uid": "${DS_PROMETHEUS}" 324 | }, 325 | "description": "An estimation of the number of current video streams forwarded by the bridge.", 326 | "fieldConfig": { 327 | "defaults": { 328 | "mappings": [ 329 | { 330 | "options": { 331 | "match": "null", 332 | "result": { 333 | "text": "N/A" 334 | } 335 | }, 336 | "type": "special" 337 | } 338 | ], 339 | "thresholds": { 340 | "mode": "absolute", 341 | "steps": [ 342 | { 343 | "color": "blue", 344 | "value": null 345 | } 346 | ] 347 | }, 348 | "unit": "none" 349 | }, 350 | "overrides": [] 351 | }, 352 | "gridPos": { 353 | "h": 4, 354 | "w": 3, 355 | "x": 9, 356 | "y": 1 357 | }, 358 | "id": 20, 359 | "maxDataPoints": 100, 360 | "options": { 361 | "colorMode": "value", 362 | "fieldOptions": { 363 | "calcs": [ 364 | "lastNotNull" 365 | ] 366 | }, 367 | "graphMode": "area", 368 | "justifyMode": "auto", 369 | "orientation": "horizontal", 370 | "reduceOptions": { 371 | "calcs": [ 372 | "last" 373 | ], 374 | "fields": "", 375 | "values": false 376 | }, 377 | "showPercentChange": false, 378 | "textMode": "auto", 379 | "wideLayout": true 380 | }, 381 | "pluginVersion": "10.4.0", 382 | "targets": [ 383 | { 384 | "datasource": { 385 | "type": "prometheus", 386 | "uid": "${DS_PROMETHEUS}" 387 | }, 388 | "expr": "jitsi_videostreams{instance=~\"$instance.*\"}", 389 | "interval": "", 390 | "legendFormat": "", 391 | "refId": "A" 392 | } 393 | ], 394 | "title": "Video streams", 395 | "type": "stat" 396 | }, 397 | { 398 | "datasource": { 399 | "type": "prometheus", 400 | "uid": "${DS_PROMETHEUS}" 401 | }, 402 | "description": "An average value (in milliseconds) of the RTT across all streams.", 403 | "fieldConfig": { 404 | "defaults": { 405 | "mappings": [ 406 | { 407 | "options": { 408 | "match": "null", 409 | "result": { 410 | "text": "N/A" 411 | } 412 | }, 413 | "type": "special" 414 | } 415 | ], 416 | "thresholds": { 417 | "mode": "absolute", 418 | "steps": [ 419 | { 420 | "color": "blue", 421 | "value": null 422 | } 423 | ] 424 | }, 425 | "unit": "ms" 426 | }, 427 | "overrides": [] 428 | }, 429 | "gridPos": { 430 | "h": 4, 431 | "w": 3, 432 | "x": 12, 433 | "y": 1 434 | }, 435 | "id": 22, 436 | "maxDataPoints": 100, 437 | "options": { 438 | "colorMode": "value", 439 | "fieldOptions": { 440 | "calcs": [ 441 | "lastNotNull" 442 | ] 443 | }, 444 | "graphMode": "area", 445 | "justifyMode": "auto", 446 | "orientation": "horizontal", 447 | "reduceOptions": { 448 | "calcs": [ 449 | "last" 450 | ], 451 | "fields": "", 452 | "values": false 453 | }, 454 | "showPercentChange": false, 455 | "textMode": "auto", 456 | "wideLayout": true 457 | }, 458 | "pluginVersion": "10.4.0", 459 | "targets": [ 460 | { 461 | "datasource": { 462 | "type": "prometheus", 463 | "uid": "${DS_PROMETHEUS}" 464 | }, 465 | "expr": "jitsi_rtt_aggregate{instance=~\"$instance.*\"}", 466 | "interval": "", 467 | "legendFormat": "", 468 | "refId": "A" 469 | } 470 | ], 471 | "title": "RTT", 472 | "type": "stat" 473 | }, 474 | { 475 | "datasource": { 476 | "type": "prometheus", 477 | "uid": "${DS_PROMETHEUS}" 478 | }, 479 | "description": "The sum of the lengths of all completed conferences, in seconds.", 480 | "fieldConfig": { 481 | "defaults": { 482 | "mappings": [ 483 | { 484 | "options": { 485 | "match": "null", 486 | "result": { 487 | "text": "N/A" 488 | } 489 | }, 490 | "type": "special" 491 | } 492 | ], 493 | "thresholds": { 494 | "mode": "absolute", 495 | "steps": [ 496 | { 497 | "color": "blue", 498 | "value": null 499 | } 500 | ] 501 | }, 502 | "unit": "s" 503 | }, 504 | "overrides": [] 505 | }, 506 | "gridPos": { 507 | "h": 4, 508 | "w": 3, 509 | "x": 15, 510 | "y": 1 511 | }, 512 | "id": 21, 513 | "maxDataPoints": 100, 514 | "options": { 515 | "colorMode": "value", 516 | "fieldOptions": { 517 | "calcs": [ 518 | "lastNotNull" 519 | ] 520 | }, 521 | "graphMode": "none", 522 | "justifyMode": "auto", 523 | "orientation": "horizontal", 524 | "reduceOptions": { 525 | "calcs": [ 526 | "last" 527 | ], 528 | "fields": "", 529 | "values": false 530 | }, 531 | "showPercentChange": false, 532 | "textMode": "auto", 533 | "wideLayout": true 534 | }, 535 | "pluginVersion": "10.4.0", 536 | "targets": [ 537 | { 538 | "datasource": { 539 | "type": "prometheus", 540 | "uid": "${DS_PROMETHEUS}" 541 | }, 542 | "expr": "jitsi_total_conference_seconds{instance=~\"$instance.*\"}", 543 | "interval": "", 544 | "legendFormat": "", 545 | "refId": "A" 546 | } 547 | ], 548 | "title": "Completed conferences", 549 | "type": "stat" 550 | }, 551 | { 552 | "datasource": { 553 | "type": "prometheus", 554 | "uid": "${DS_PROMETHEUS}" 555 | }, 556 | "description": "The number of participants in the largest conference currently hosted on the bridge.", 557 | "fieldConfig": { 558 | "defaults": { 559 | "mappings": [ 560 | { 561 | "options": { 562 | "match": "null", 563 | "result": { 564 | "text": "N/A" 565 | } 566 | }, 567 | "type": "special" 568 | } 569 | ], 570 | "thresholds": { 571 | "mode": "absolute", 572 | "steps": [ 573 | { 574 | "color": "blue", 575 | "value": null 576 | } 577 | ] 578 | }, 579 | "unit": "none" 580 | }, 581 | "overrides": [] 582 | }, 583 | "gridPos": { 584 | "h": 4, 585 | "w": 3, 586 | "x": 18, 587 | "y": 1 588 | }, 589 | "id": 10, 590 | "maxDataPoints": 100, 591 | "options": { 592 | "colorMode": "value", 593 | "fieldOptions": { 594 | "calcs": [ 595 | "max" 596 | ] 597 | }, 598 | "graphMode": "area", 599 | "justifyMode": "auto", 600 | "orientation": "horizontal", 601 | "reduceOptions": { 602 | "calcs": [ 603 | "max" 604 | ], 605 | "fields": "", 606 | "values": false 607 | }, 608 | "showPercentChange": false, 609 | "textMode": "auto", 610 | "wideLayout": true 611 | }, 612 | "pluginVersion": "10.4.0", 613 | "targets": [ 614 | { 615 | "datasource": { 616 | "type": "prometheus", 617 | "uid": "${DS_PROMETHEUS}" 618 | }, 619 | "expr": "max(jitsi_largest_conference{instance=~\"$instance.*\"})", 620 | "interval": "", 621 | "legendFormat": "", 622 | "refId": "A" 623 | } 624 | ], 625 | "title": "Biggest conference", 626 | "type": "stat" 627 | }, 628 | { 629 | "datasource": { 630 | "type": "prometheus", 631 | "uid": "${DS_PROMETHEUS}" 632 | }, 633 | "description": "The total number of conferences created on the bridge.", 634 | "fieldConfig": { 635 | "defaults": { 636 | "mappings": [ 637 | { 638 | "options": { 639 | "match": "null", 640 | "result": { 641 | "text": "N/A" 642 | } 643 | }, 644 | "type": "special" 645 | } 646 | ], 647 | "thresholds": { 648 | "mode": "absolute", 649 | "steps": [ 650 | { 651 | "color": "blue", 652 | "value": null 653 | } 654 | ] 655 | }, 656 | "unit": "short" 657 | }, 658 | "overrides": [] 659 | }, 660 | "gridPos": { 661 | "h": 4, 662 | "w": 3, 663 | "x": 21, 664 | "y": 1 665 | }, 666 | "id": 8, 667 | "maxDataPoints": 100, 668 | "options": { 669 | "colorMode": "value", 670 | "fieldOptions": { 671 | "calcs": [ 672 | "lastNotNull" 673 | ] 674 | }, 675 | "graphMode": "area", 676 | "justifyMode": "auto", 677 | "orientation": "horizontal", 678 | "reduceOptions": { 679 | "calcs": [ 680 | "last" 681 | ], 682 | "fields": "", 683 | "values": false 684 | }, 685 | "showPercentChange": false, 686 | "textMode": "auto", 687 | "wideLayout": true 688 | }, 689 | "pluginVersion": "10.4.0", 690 | "targets": [ 691 | { 692 | "datasource": { 693 | "type": "prometheus", 694 | "uid": "${DS_PROMETHEUS}" 695 | }, 696 | "expr": "jitsi_total_conferences_created{instance=~\"$instance.*\"}", 697 | "interval": "", 698 | "legendFormat": "", 699 | "refId": "A" 700 | } 701 | ], 702 | "title": "Total conferences", 703 | "type": "stat" 704 | }, 705 | { 706 | "datasource": { 707 | "type": "prometheus", 708 | "uid": "${DS_PROMETHEUS}" 709 | }, 710 | "description": "The current number of conferences.", 711 | "fieldConfig": { 712 | "defaults": { 713 | "color": { 714 | "mode": "palette-classic" 715 | }, 716 | "custom": { 717 | "axisBorderShow": false, 718 | "axisCenteredZero": false, 719 | "axisColorMode": "text", 720 | "axisLabel": "", 721 | "axisPlacement": "auto", 722 | "barAlignment": 0, 723 | "drawStyle": "line", 724 | "fillOpacity": 100, 725 | "gradientMode": "opacity", 726 | "hideFrom": { 727 | "legend": false, 728 | "tooltip": false, 729 | "viz": false 730 | }, 731 | "insertNulls": false, 732 | "lineInterpolation": "linear", 733 | "lineWidth": 1, 734 | "pointSize": 5, 735 | "scaleDistribution": { 736 | "type": "linear" 737 | }, 738 | "showPoints": "never", 739 | "spanNulls": false, 740 | "stacking": { 741 | "group": "A", 742 | "mode": "normal" 743 | }, 744 | "thresholdsStyle": { 745 | "mode": "off" 746 | } 747 | }, 748 | "links": [], 749 | "mappings": [], 750 | "thresholds": { 751 | "mode": "absolute", 752 | "steps": [ 753 | { 754 | "color": "green", 755 | "value": null 756 | }, 757 | { 758 | "color": "red", 759 | "value": 80 760 | } 761 | ] 762 | }, 763 | "unit": "short" 764 | }, 765 | "overrides": [] 766 | }, 767 | "gridPos": { 768 | "h": 8, 769 | "w": 12, 770 | "x": 0, 771 | "y": 5 772 | }, 773 | "id": 2, 774 | "options": { 775 | "legend": { 776 | "calcs": [ 777 | "mean", 778 | "lastNotNull", 779 | "max", 780 | "min" 781 | ], 782 | "displayMode": "table", 783 | "placement": "bottom", 784 | "showLegend": true 785 | }, 786 | "tooltip": { 787 | "mode": "multi", 788 | "sort": "none" 789 | } 790 | }, 791 | "pluginVersion": "10.4.0", 792 | "targets": [ 793 | { 794 | "datasource": { 795 | "type": "prometheus", 796 | "uid": "${DS_PROMETHEUS}" 797 | }, 798 | "expr": "jitsi_conferences{instance=~\"$instance.*\"}", 799 | "interval": "", 800 | "legendFormat": "conferences", 801 | "refId": "A" 802 | }, 803 | { 804 | "datasource": { 805 | "type": "prometheus", 806 | "uid": "${DS_PROMETHEUS}" 807 | }, 808 | "expr": "jitsi_p2p_conferences{instance=~\"$instance.*\"}", 809 | "interval": "", 810 | "legendFormat": "p2p conferences", 811 | "refId": "B" 812 | } 813 | ], 814 | "title": "Conferences", 815 | "type": "timeseries" 816 | }, 817 | { 818 | "datasource": { 819 | "type": "prometheus", 820 | "uid": "${DS_PROMETHEUS}" 821 | }, 822 | "description": "The current number of participants.", 823 | "fieldConfig": { 824 | "defaults": { 825 | "color": { 826 | "mode": "palette-classic" 827 | }, 828 | "custom": { 829 | "axisBorderShow": false, 830 | "axisCenteredZero": false, 831 | "axisColorMode": "text", 832 | "axisLabel": "", 833 | "axisPlacement": "auto", 834 | "barAlignment": 0, 835 | "drawStyle": "line", 836 | "fillOpacity": 100, 837 | "gradientMode": "opacity", 838 | "hideFrom": { 839 | "legend": false, 840 | "tooltip": false, 841 | "viz": false 842 | }, 843 | "insertNulls": false, 844 | "lineInterpolation": "linear", 845 | "lineWidth": 1, 846 | "pointSize": 5, 847 | "scaleDistribution": { 848 | "type": "linear" 849 | }, 850 | "showPoints": "never", 851 | "spanNulls": false, 852 | "stacking": { 853 | "group": "A", 854 | "mode": "none" 855 | }, 856 | "thresholdsStyle": { 857 | "mode": "off" 858 | } 859 | }, 860 | "links": [], 861 | "mappings": [], 862 | "thresholds": { 863 | "mode": "absolute", 864 | "steps": [ 865 | { 866 | "color": "green", 867 | "value": null 868 | }, 869 | { 870 | "color": "red", 871 | "value": 80 872 | } 873 | ] 874 | }, 875 | "unit": "short" 876 | }, 877 | "overrides": [] 878 | }, 879 | "gridPos": { 880 | "h": 8, 881 | "w": 12, 882 | "x": 12, 883 | "y": 5 884 | }, 885 | "id": 3, 886 | "options": { 887 | "legend": { 888 | "calcs": [ 889 | "mean", 890 | "lastNotNull", 891 | "max", 892 | "min" 893 | ], 894 | "displayMode": "table", 895 | "placement": "bottom", 896 | "showLegend": true 897 | }, 898 | "tooltip": { 899 | "mode": "multi", 900 | "sort": "none" 901 | } 902 | }, 903 | "pluginVersion": "10.4.0", 904 | "targets": [ 905 | { 906 | "datasource": { 907 | "type": "prometheus", 908 | "uid": "${DS_PROMETHEUS}" 909 | }, 910 | "expr": "jitsi_participants{instance=~\"$instance.*\"}", 911 | "interval": "", 912 | "legendFormat": "participants", 913 | "refId": "A" 914 | } 915 | ], 916 | "title": "Participants", 917 | "type": "timeseries" 918 | }, 919 | { 920 | "collapsed": false, 921 | "datasource": { 922 | "type": "prometheus", 923 | "uid": "prometheus" 924 | }, 925 | "gridPos": { 926 | "h": 1, 927 | "w": 24, 928 | "x": 0, 929 | "y": 13 930 | }, 931 | "id": 42, 932 | "panels": [], 933 | "targets": [ 934 | { 935 | "datasource": { 936 | "type": "prometheus", 937 | "uid": "prometheus" 938 | }, 939 | "refId": "A" 940 | } 941 | ], 942 | "title": "Additional metrics", 943 | "type": "row" 944 | }, 945 | { 946 | "datasource": { 947 | "type": "prometheus", 948 | "uid": "${DS_PROMETHEUS}" 949 | }, 950 | "description": "The total incoming/outgoing bitrate for the video bridge in kilobits per second.", 951 | "fieldConfig": { 952 | "defaults": { 953 | "color": { 954 | "mode": "palette-classic" 955 | }, 956 | "custom": { 957 | "axisBorderShow": false, 958 | "axisCenteredZero": false, 959 | "axisColorMode": "text", 960 | "axisLabel": "", 961 | "axisPlacement": "auto", 962 | "barAlignment": 0, 963 | "drawStyle": "line", 964 | "fillOpacity": 10, 965 | "gradientMode": "none", 966 | "hideFrom": { 967 | "legend": false, 968 | "tooltip": false, 969 | "viz": false 970 | }, 971 | "insertNulls": false, 972 | "lineInterpolation": "linear", 973 | "lineWidth": 1, 974 | "pointSize": 5, 975 | "scaleDistribution": { 976 | "type": "linear" 977 | }, 978 | "showPoints": "never", 979 | "spanNulls": false, 980 | "stacking": { 981 | "group": "A", 982 | "mode": "none" 983 | }, 984 | "thresholdsStyle": { 985 | "mode": "off" 986 | } 987 | }, 988 | "links": [], 989 | "mappings": [], 990 | "thresholds": { 991 | "mode": "absolute", 992 | "steps": [ 993 | { 994 | "color": "green", 995 | "value": null 996 | }, 997 | { 998 | "color": "red", 999 | "value": 80 1000 | } 1001 | ] 1002 | }, 1003 | "unit": "Kbits" 1004 | }, 1005 | "overrides": [ 1006 | { 1007 | "matcher": { 1008 | "id": "byName", 1009 | "options": "upload" 1010 | }, 1011 | "properties": [ 1012 | { 1013 | "id": "custom.transform", 1014 | "value": "negative-Y" 1015 | } 1016 | ] 1017 | } 1018 | ] 1019 | }, 1020 | "gridPos": { 1021 | "h": 8, 1022 | "w": 12, 1023 | "x": 0, 1024 | "y": 14 1025 | }, 1026 | "id": 24, 1027 | "options": { 1028 | "legend": { 1029 | "calcs": [ 1030 | "mean", 1031 | "lastNotNull", 1032 | "max", 1033 | "min" 1034 | ], 1035 | "displayMode": "table", 1036 | "placement": "bottom", 1037 | "showLegend": true 1038 | }, 1039 | "tooltip": { 1040 | "mode": "multi", 1041 | "sort": "none" 1042 | } 1043 | }, 1044 | "pluginVersion": "10.4.0", 1045 | "targets": [ 1046 | { 1047 | "datasource": { 1048 | "type": "prometheus", 1049 | "uid": "${DS_PROMETHEUS}" 1050 | }, 1051 | "expr": "jitsi_bit_rate_download{instance=~\"$instance.*\"}", 1052 | "hide": false, 1053 | "interval": "", 1054 | "legendFormat": "download", 1055 | "refId": "A" 1056 | }, 1057 | { 1058 | "datasource": { 1059 | "type": "prometheus", 1060 | "uid": "${DS_PROMETHEUS}" 1061 | }, 1062 | "expr": "jitsi_bit_rate_upload{instance=~\"$instance.*\"}", 1063 | "hide": false, 1064 | "interval": "", 1065 | "legendFormat": "upload", 1066 | "refId": "B" 1067 | } 1068 | ], 1069 | "title": "Bitrate", 1070 | "type": "timeseries" 1071 | }, 1072 | { 1073 | "datasource": { 1074 | "type": "prometheus", 1075 | "uid": "${DS_PROMETHEUS}" 1076 | }, 1077 | "description": " The total incoming/outgoing packet rate for the video bridge in packets per second.", 1078 | "fieldConfig": { 1079 | "defaults": { 1080 | "color": { 1081 | "mode": "palette-classic" 1082 | }, 1083 | "custom": { 1084 | "axisBorderShow": false, 1085 | "axisCenteredZero": false, 1086 | "axisColorMode": "text", 1087 | "axisLabel": "", 1088 | "axisPlacement": "auto", 1089 | "barAlignment": 0, 1090 | "drawStyle": "line", 1091 | "fillOpacity": 10, 1092 | "gradientMode": "none", 1093 | "hideFrom": { 1094 | "legend": false, 1095 | "tooltip": false, 1096 | "viz": false 1097 | }, 1098 | "insertNulls": false, 1099 | "lineInterpolation": "linear", 1100 | "lineWidth": 1, 1101 | "pointSize": 5, 1102 | "scaleDistribution": { 1103 | "type": "linear" 1104 | }, 1105 | "showPoints": "never", 1106 | "spanNulls": false, 1107 | "stacking": { 1108 | "group": "A", 1109 | "mode": "none" 1110 | }, 1111 | "thresholdsStyle": { 1112 | "mode": "off" 1113 | } 1114 | }, 1115 | "links": [], 1116 | "mappings": [], 1117 | "thresholds": { 1118 | "mode": "absolute", 1119 | "steps": [ 1120 | { 1121 | "color": "green", 1122 | "value": null 1123 | }, 1124 | { 1125 | "color": "red", 1126 | "value": 80 1127 | } 1128 | ] 1129 | }, 1130 | "unit": "short" 1131 | }, 1132 | "overrides": [ 1133 | { 1134 | "matcher": { 1135 | "id": "byName", 1136 | "options": "upload" 1137 | }, 1138 | "properties": [ 1139 | { 1140 | "id": "custom.transform", 1141 | "value": "negative-Y" 1142 | } 1143 | ] 1144 | } 1145 | ] 1146 | }, 1147 | "gridPos": { 1148 | "h": 8, 1149 | "w": 12, 1150 | "x": 12, 1151 | "y": 14 1152 | }, 1153 | "id": 25, 1154 | "options": { 1155 | "legend": { 1156 | "calcs": [ 1157 | "mean", 1158 | "lastNotNull", 1159 | "max", 1160 | "min" 1161 | ], 1162 | "displayMode": "table", 1163 | "placement": "bottom", 1164 | "showLegend": true 1165 | }, 1166 | "tooltip": { 1167 | "mode": "multi", 1168 | "sort": "none" 1169 | } 1170 | }, 1171 | "pluginVersion": "10.4.0", 1172 | "targets": [ 1173 | { 1174 | "datasource": { 1175 | "type": "prometheus", 1176 | "uid": "${DS_PROMETHEUS}" 1177 | }, 1178 | "expr": "jitsi_packet_rate_download{instance=~\"$instance.*\"}", 1179 | "hide": false, 1180 | "interval": "", 1181 | "legendFormat": "download", 1182 | "refId": "A" 1183 | }, 1184 | { 1185 | "datasource": { 1186 | "type": "prometheus", 1187 | "uid": "${DS_PROMETHEUS}" 1188 | }, 1189 | "expr": "jitsi_packet_rate_upload{instance=~\"$instance.*\"}", 1190 | "hide": false, 1191 | "interval": "", 1192 | "legendFormat": "upload", 1193 | "refId": "B" 1194 | } 1195 | ], 1196 | "title": "Package rate", 1197 | "type": "timeseries" 1198 | }, 1199 | { 1200 | "datasource": { 1201 | "type": "prometheus", 1202 | "uid": "${DS_PROMETHEUS}" 1203 | }, 1204 | "description": "The fraction of lost incoming RTP packets. This is based on RTP sequence numbers and is relatively accurate.\nThe fraction of lost outgoing RTP packets. This is based on incoming RTCP Receiver Reports, and an attempt to subtract the fraction of packets that were not sent (i.e. were lost before they reached the bridge). Further, this is averaged over all streams of all users as opposed to all packets, so it is not correctly weighted. This is not accurate, but may be a useful metric nonetheless.", 1205 | "fieldConfig": { 1206 | "defaults": { 1207 | "color": { 1208 | "mode": "palette-classic" 1209 | }, 1210 | "custom": { 1211 | "axisBorderShow": false, 1212 | "axisCenteredZero": false, 1213 | "axisColorMode": "text", 1214 | "axisLabel": "", 1215 | "axisPlacement": "auto", 1216 | "barAlignment": 0, 1217 | "drawStyle": "line", 1218 | "fillOpacity": 10, 1219 | "gradientMode": "none", 1220 | "hideFrom": { 1221 | "legend": false, 1222 | "tooltip": false, 1223 | "viz": false 1224 | }, 1225 | "insertNulls": false, 1226 | "lineInterpolation": "linear", 1227 | "lineWidth": 1, 1228 | "pointSize": 5, 1229 | "scaleDistribution": { 1230 | "type": "linear" 1231 | }, 1232 | "showPoints": "never", 1233 | "spanNulls": false, 1234 | "stacking": { 1235 | "group": "A", 1236 | "mode": "none" 1237 | }, 1238 | "thresholdsStyle": { 1239 | "mode": "off" 1240 | } 1241 | }, 1242 | "links": [], 1243 | "mappings": [], 1244 | "thresholds": { 1245 | "mode": "absolute", 1246 | "steps": [ 1247 | { 1248 | "color": "green" 1249 | }, 1250 | { 1251 | "color": "red", 1252 | "value": 80 1253 | } 1254 | ] 1255 | }, 1256 | "unit": "short" 1257 | }, 1258 | "overrides": [ 1259 | { 1260 | "matcher": { 1261 | "id": "byName", 1262 | "options": "upload" 1263 | }, 1264 | "properties": [ 1265 | { 1266 | "id": "custom.transform", 1267 | "value": "negative-Y" 1268 | } 1269 | ] 1270 | } 1271 | ] 1272 | }, 1273 | "gridPos": { 1274 | "h": 8, 1275 | "w": 12, 1276 | "x": 0, 1277 | "y": 22 1278 | }, 1279 | "id": 26, 1280 | "options": { 1281 | "legend": { 1282 | "calcs": [ 1283 | "mean", 1284 | "lastNotNull", 1285 | "max", 1286 | "min" 1287 | ], 1288 | "displayMode": "table", 1289 | "placement": "bottom", 1290 | "showLegend": true 1291 | }, 1292 | "tooltip": { 1293 | "mode": "multi", 1294 | "sort": "none" 1295 | } 1296 | }, 1297 | "pluginVersion": "10.4.0", 1298 | "targets": [ 1299 | { 1300 | "datasource": { 1301 | "type": "prometheus", 1302 | "uid": "${DS_PROMETHEUS}" 1303 | }, 1304 | "expr": "jitsi_loss_rate_download{instance=~\"$instance.*\"}", 1305 | "hide": false, 1306 | "interval": "", 1307 | "legendFormat": "download", 1308 | "refId": "A" 1309 | }, 1310 | { 1311 | "datasource": { 1312 | "type": "prometheus", 1313 | "uid": "${DS_PROMETHEUS}" 1314 | }, 1315 | "expr": "jitsi_loss_rate_upload{instance=~\"$instance.*\"}", 1316 | "hide": false, 1317 | "interval": "", 1318 | "legendFormat": "upload", 1319 | "refId": "B" 1320 | } 1321 | ], 1322 | "title": "Lost RTP packets", 1323 | "type": "timeseries" 1324 | }, 1325 | { 1326 | "datasource": { 1327 | "type": "prometheus", 1328 | "uid": "${DS_PROMETHEUS}" 1329 | }, 1330 | "description": "Experimental. An average value (in milliseconds) of the jitter calculated for incoming and outgoing streams. This hasn't been tested and it is currently not known whether the values are correct or not.", 1331 | "fieldConfig": { 1332 | "defaults": { 1333 | "color": { 1334 | "mode": "palette-classic" 1335 | }, 1336 | "custom": { 1337 | "axisBorderShow": false, 1338 | "axisCenteredZero": false, 1339 | "axisColorMode": "text", 1340 | "axisLabel": "", 1341 | "axisPlacement": "auto", 1342 | "barAlignment": 0, 1343 | "drawStyle": "line", 1344 | "fillOpacity": 10, 1345 | "gradientMode": "none", 1346 | "hideFrom": { 1347 | "legend": false, 1348 | "tooltip": false, 1349 | "viz": false 1350 | }, 1351 | "insertNulls": false, 1352 | "lineInterpolation": "linear", 1353 | "lineWidth": 1, 1354 | "pointSize": 5, 1355 | "scaleDistribution": { 1356 | "type": "linear" 1357 | }, 1358 | "showPoints": "never", 1359 | "spanNulls": false, 1360 | "stacking": { 1361 | "group": "A", 1362 | "mode": "none" 1363 | }, 1364 | "thresholdsStyle": { 1365 | "mode": "off" 1366 | } 1367 | }, 1368 | "links": [], 1369 | "mappings": [], 1370 | "thresholds": { 1371 | "mode": "absolute", 1372 | "steps": [ 1373 | { 1374 | "color": "green" 1375 | }, 1376 | { 1377 | "color": "red", 1378 | "value": 80 1379 | } 1380 | ] 1381 | }, 1382 | "unit": "ms" 1383 | }, 1384 | "overrides": [] 1385 | }, 1386 | "gridPos": { 1387 | "h": 8, 1388 | "w": 12, 1389 | "x": 12, 1390 | "y": 22 1391 | }, 1392 | "id": 28, 1393 | "options": { 1394 | "legend": { 1395 | "calcs": [ 1396 | "mean", 1397 | "lastNotNull", 1398 | "max", 1399 | "min" 1400 | ], 1401 | "displayMode": "table", 1402 | "placement": "bottom", 1403 | "showLegend": true 1404 | }, 1405 | "tooltip": { 1406 | "mode": "multi", 1407 | "sort": "none" 1408 | } 1409 | }, 1410 | "pluginVersion": "10.4.0", 1411 | "targets": [ 1412 | { 1413 | "datasource": { 1414 | "type": "prometheus", 1415 | "uid": "${DS_PROMETHEUS}" 1416 | }, 1417 | "expr": "jitsi_jitter_aggregate{instance=~\"$instance.*\"}", 1418 | "interval": "", 1419 | "legendFormat": "jitter", 1420 | "refId": "A" 1421 | } 1422 | ], 1423 | "title": "Jitter aggregate", 1424 | "type": "timeseries" 1425 | }, 1426 | { 1427 | "datasource": { 1428 | "type": "prometheus", 1429 | "uid": "${DS_PROMETHEUS}" 1430 | }, 1431 | "description": "An average value (in milliseconds) of the RTT across all streams.", 1432 | "fieldConfig": { 1433 | "defaults": { 1434 | "color": { 1435 | "mode": "palette-classic" 1436 | }, 1437 | "custom": { 1438 | "axisBorderShow": false, 1439 | "axisCenteredZero": false, 1440 | "axisColorMode": "text", 1441 | "axisLabel": "", 1442 | "axisPlacement": "auto", 1443 | "barAlignment": 0, 1444 | "drawStyle": "line", 1445 | "fillOpacity": 10, 1446 | "gradientMode": "none", 1447 | "hideFrom": { 1448 | "legend": false, 1449 | "tooltip": false, 1450 | "viz": false 1451 | }, 1452 | "insertNulls": false, 1453 | "lineInterpolation": "linear", 1454 | "lineWidth": 1, 1455 | "pointSize": 5, 1456 | "scaleDistribution": { 1457 | "type": "linear" 1458 | }, 1459 | "showPoints": "never", 1460 | "spanNulls": false, 1461 | "stacking": { 1462 | "group": "A", 1463 | "mode": "none" 1464 | }, 1465 | "thresholdsStyle": { 1466 | "mode": "off" 1467 | } 1468 | }, 1469 | "links": [], 1470 | "mappings": [], 1471 | "thresholds": { 1472 | "mode": "absolute", 1473 | "steps": [ 1474 | { 1475 | "color": "green" 1476 | }, 1477 | { 1478 | "color": "red", 1479 | "value": 80 1480 | } 1481 | ] 1482 | }, 1483 | "unit": "ms" 1484 | }, 1485 | "overrides": [] 1486 | }, 1487 | "gridPos": { 1488 | "h": 8, 1489 | "w": 12, 1490 | "x": 0, 1491 | "y": 30 1492 | }, 1493 | "id": 29, 1494 | "options": { 1495 | "legend": { 1496 | "calcs": [ 1497 | "mean", 1498 | "lastNotNull", 1499 | "max", 1500 | "min" 1501 | ], 1502 | "displayMode": "table", 1503 | "placement": "bottom", 1504 | "showLegend": true 1505 | }, 1506 | "tooltip": { 1507 | "mode": "multi", 1508 | "sort": "none" 1509 | } 1510 | }, 1511 | "pluginVersion": "10.4.0", 1512 | "targets": [ 1513 | { 1514 | "datasource": { 1515 | "type": "prometheus", 1516 | "uid": "${DS_PROMETHEUS}" 1517 | }, 1518 | "expr": "jitsi_rtt_aggregate{instance=~\"$instance.*\"}", 1519 | "interval": "", 1520 | "legendFormat": "rtt", 1521 | "refId": "A" 1522 | } 1523 | ], 1524 | "title": "RTT", 1525 | "type": "timeseries" 1526 | }, 1527 | { 1528 | "datasource": { 1529 | "type": "prometheus", 1530 | "uid": "${DS_PROMETHEUS}" 1531 | }, 1532 | "description": "The current number of audio/video channels.", 1533 | "fieldConfig": { 1534 | "defaults": { 1535 | "color": { 1536 | "mode": "palette-classic" 1537 | }, 1538 | "custom": { 1539 | "axisBorderShow": false, 1540 | "axisCenteredZero": false, 1541 | "axisColorMode": "text", 1542 | "axisLabel": "", 1543 | "axisPlacement": "auto", 1544 | "barAlignment": 0, 1545 | "drawStyle": "line", 1546 | "fillOpacity": 10, 1547 | "gradientMode": "none", 1548 | "hideFrom": { 1549 | "legend": false, 1550 | "tooltip": false, 1551 | "viz": false 1552 | }, 1553 | "insertNulls": false, 1554 | "lineInterpolation": "linear", 1555 | "lineWidth": 1, 1556 | "pointSize": 5, 1557 | "scaleDistribution": { 1558 | "type": "linear" 1559 | }, 1560 | "showPoints": "never", 1561 | "spanNulls": false, 1562 | "stacking": { 1563 | "group": "A", 1564 | "mode": "none" 1565 | }, 1566 | "thresholdsStyle": { 1567 | "mode": "off" 1568 | } 1569 | }, 1570 | "links": [], 1571 | "mappings": [], 1572 | "thresholds": { 1573 | "mode": "absolute", 1574 | "steps": [ 1575 | { 1576 | "color": "green" 1577 | }, 1578 | { 1579 | "color": "red", 1580 | "value": 80 1581 | } 1582 | ] 1583 | }, 1584 | "unit": "short" 1585 | }, 1586 | "overrides": [] 1587 | }, 1588 | "gridPos": { 1589 | "h": 8, 1590 | "w": 12, 1591 | "x": 12, 1592 | "y": 30 1593 | }, 1594 | "id": 31, 1595 | "options": { 1596 | "legend": { 1597 | "calcs": [ 1598 | "mean", 1599 | "lastNotNull", 1600 | "max", 1601 | "min" 1602 | ], 1603 | "displayMode": "table", 1604 | "placement": "bottom", 1605 | "showLegend": true 1606 | }, 1607 | "tooltip": { 1608 | "mode": "multi", 1609 | "sort": "none" 1610 | } 1611 | }, 1612 | "pluginVersion": "10.4.0", 1613 | "targets": [ 1614 | { 1615 | "datasource": { 1616 | "type": "prometheus", 1617 | "uid": "${DS_PROMETHEUS}" 1618 | }, 1619 | "editorMode": "code", 1620 | "expr": "jitsi_audiochannels{instance=~\"$instance.*\"}", 1621 | "interval": "", 1622 | "legendFormat": "audio channels", 1623 | "range": true, 1624 | "refId": "A" 1625 | }, 1626 | { 1627 | "datasource": { 1628 | "type": "prometheus", 1629 | "uid": "${DS_PROMETHEUS}" 1630 | }, 1631 | "editorMode": "code", 1632 | "expr": "jitsi_videochannels{instance=~\"$instance.*\"}", 1633 | "interval": "", 1634 | "legendFormat": "video channels", 1635 | "range": true, 1636 | "refId": "B" 1637 | } 1638 | ], 1639 | "title": "Audio/Video channels", 1640 | "type": "timeseries" 1641 | }, 1642 | { 1643 | "datasource": { 1644 | "type": "prometheus", 1645 | "uid": "${DS_PROMETHEUS}" 1646 | }, 1647 | "description": "The rate of participant-seconds that are loss-controlled.", 1648 | "fieldConfig": { 1649 | "defaults": { 1650 | "color": { 1651 | "mode": "palette-classic" 1652 | }, 1653 | "custom": { 1654 | "axisBorderShow": false, 1655 | "axisCenteredZero": false, 1656 | "axisColorMode": "text", 1657 | "axisLabel": "", 1658 | "axisPlacement": "auto", 1659 | "barAlignment": 0, 1660 | "drawStyle": "line", 1661 | "fillOpacity": 10, 1662 | "gradientMode": "none", 1663 | "hideFrom": { 1664 | "legend": false, 1665 | "tooltip": false, 1666 | "viz": false 1667 | }, 1668 | "insertNulls": false, 1669 | "lineInterpolation": "linear", 1670 | "lineWidth": 1, 1671 | "pointSize": 5, 1672 | "scaleDistribution": { 1673 | "type": "linear" 1674 | }, 1675 | "showPoints": "never", 1676 | "spanNulls": false, 1677 | "stacking": { 1678 | "group": "A", 1679 | "mode": "none" 1680 | }, 1681 | "thresholdsStyle": { 1682 | "mode": "off" 1683 | } 1684 | }, 1685 | "links": [], 1686 | "mappings": [], 1687 | "thresholds": { 1688 | "mode": "absolute", 1689 | "steps": [ 1690 | { 1691 | "color": "green" 1692 | }, 1693 | { 1694 | "color": "red", 1695 | "value": 80 1696 | } 1697 | ] 1698 | }, 1699 | "unit": "short" 1700 | }, 1701 | "overrides": [] 1702 | }, 1703 | "gridPos": { 1704 | "h": 8, 1705 | "w": 12, 1706 | "x": 0, 1707 | "y": 38 1708 | }, 1709 | "id": 32, 1710 | "options": { 1711 | "legend": { 1712 | "calcs": [ 1713 | "mean", 1714 | "lastNotNull", 1715 | "max", 1716 | "min" 1717 | ], 1718 | "displayMode": "table", 1719 | "placement": "bottom", 1720 | "showLegend": true 1721 | }, 1722 | "tooltip": { 1723 | "mode": "multi", 1724 | "sort": "none" 1725 | } 1726 | }, 1727 | "pluginVersion": "10.4.0", 1728 | "targets": [ 1729 | { 1730 | "datasource": { 1731 | "type": "prometheus", 1732 | "uid": "${DS_PROMETHEUS}" 1733 | }, 1734 | "expr": "rate(jitsi_total_loss_controlled_participant_seconds{instance=~\"$instance.*\"}[1m])", 1735 | "interval": "", 1736 | "legendFormat": "participant-seconds", 1737 | "refId": "A" 1738 | } 1739 | ], 1740 | "title": "Loss-controlled participant-seconds", 1741 | "type": "timeseries" 1742 | }, 1743 | { 1744 | "datasource": { 1745 | "type": "prometheus", 1746 | "uid": "${DS_PROMETHEUS}" 1747 | }, 1748 | "description": "The rate of participant-seconds that are loss-limited.", 1749 | "fieldConfig": { 1750 | "defaults": { 1751 | "color": { 1752 | "mode": "palette-classic" 1753 | }, 1754 | "custom": { 1755 | "axisBorderShow": false, 1756 | "axisCenteredZero": false, 1757 | "axisColorMode": "text", 1758 | "axisLabel": "", 1759 | "axisPlacement": "auto", 1760 | "barAlignment": 0, 1761 | "drawStyle": "line", 1762 | "fillOpacity": 10, 1763 | "gradientMode": "none", 1764 | "hideFrom": { 1765 | "legend": false, 1766 | "tooltip": false, 1767 | "viz": false 1768 | }, 1769 | "insertNulls": false, 1770 | "lineInterpolation": "linear", 1771 | "lineWidth": 1, 1772 | "pointSize": 5, 1773 | "scaleDistribution": { 1774 | "type": "linear" 1775 | }, 1776 | "showPoints": "never", 1777 | "spanNulls": false, 1778 | "stacking": { 1779 | "group": "A", 1780 | "mode": "none" 1781 | }, 1782 | "thresholdsStyle": { 1783 | "mode": "off" 1784 | } 1785 | }, 1786 | "links": [], 1787 | "mappings": [], 1788 | "thresholds": { 1789 | "mode": "absolute", 1790 | "steps": [ 1791 | { 1792 | "color": "green" 1793 | }, 1794 | { 1795 | "color": "red", 1796 | "value": 80 1797 | } 1798 | ] 1799 | }, 1800 | "unit": "short" 1801 | }, 1802 | "overrides": [] 1803 | }, 1804 | "gridPos": { 1805 | "h": 8, 1806 | "w": 12, 1807 | "x": 12, 1808 | "y": 38 1809 | }, 1810 | "id": 33, 1811 | "options": { 1812 | "legend": { 1813 | "calcs": [ 1814 | "mean", 1815 | "lastNotNull", 1816 | "max", 1817 | "min" 1818 | ], 1819 | "displayMode": "table", 1820 | "placement": "bottom", 1821 | "showLegend": true 1822 | }, 1823 | "tooltip": { 1824 | "mode": "multi", 1825 | "sort": "none" 1826 | } 1827 | }, 1828 | "pluginVersion": "10.4.0", 1829 | "targets": [ 1830 | { 1831 | "datasource": { 1832 | "type": "prometheus", 1833 | "uid": "${DS_PROMETHEUS}" 1834 | }, 1835 | "expr": "rate(jitsi_total_loss_limited_participant_seconds{instance=~\"$instance.*\"}[1m])", 1836 | "interval": "", 1837 | "legendFormat": "participant-seconds", 1838 | "refId": "A" 1839 | } 1840 | ], 1841 | "title": "Loss-limited participant-seconds", 1842 | "type": "timeseries" 1843 | }, 1844 | { 1845 | "datasource": { 1846 | "type": "prometheus", 1847 | "uid": "${DS_PROMETHEUS}" 1848 | }, 1849 | "description": "The rate of participant-seconds that are loss-degraded.", 1850 | "fieldConfig": { 1851 | "defaults": { 1852 | "color": { 1853 | "mode": "palette-classic" 1854 | }, 1855 | "custom": { 1856 | "axisBorderShow": false, 1857 | "axisCenteredZero": false, 1858 | "axisColorMode": "text", 1859 | "axisLabel": "", 1860 | "axisPlacement": "auto", 1861 | "barAlignment": 0, 1862 | "drawStyle": "line", 1863 | "fillOpacity": 10, 1864 | "gradientMode": "none", 1865 | "hideFrom": { 1866 | "legend": false, 1867 | "tooltip": false, 1868 | "viz": false 1869 | }, 1870 | "insertNulls": false, 1871 | "lineInterpolation": "linear", 1872 | "lineWidth": 1, 1873 | "pointSize": 5, 1874 | "scaleDistribution": { 1875 | "type": "linear" 1876 | }, 1877 | "showPoints": "never", 1878 | "spanNulls": false, 1879 | "stacking": { 1880 | "group": "A", 1881 | "mode": "none" 1882 | }, 1883 | "thresholdsStyle": { 1884 | "mode": "off" 1885 | } 1886 | }, 1887 | "links": [], 1888 | "mappings": [], 1889 | "thresholds": { 1890 | "mode": "absolute", 1891 | "steps": [ 1892 | { 1893 | "color": "green" 1894 | }, 1895 | { 1896 | "color": "red", 1897 | "value": 80 1898 | } 1899 | ] 1900 | }, 1901 | "unit": "short" 1902 | }, 1903 | "overrides": [] 1904 | }, 1905 | "gridPos": { 1906 | "h": 8, 1907 | "w": 12, 1908 | "x": 0, 1909 | "y": 46 1910 | }, 1911 | "id": 34, 1912 | "options": { 1913 | "legend": { 1914 | "calcs": [ 1915 | "mean", 1916 | "lastNotNull", 1917 | "max", 1918 | "min" 1919 | ], 1920 | "displayMode": "table", 1921 | "placement": "bottom", 1922 | "showLegend": true 1923 | }, 1924 | "tooltip": { 1925 | "mode": "multi", 1926 | "sort": "none" 1927 | } 1928 | }, 1929 | "pluginVersion": "10.4.0", 1930 | "targets": [ 1931 | { 1932 | "datasource": { 1933 | "type": "prometheus", 1934 | "uid": "${DS_PROMETHEUS}" 1935 | }, 1936 | "expr": "rate(jitsi_total_loss_degraded_participant_seconds{instance=~\"$instance.*\"}[1m])", 1937 | "interval": "", 1938 | "legendFormat": "participant-seconds", 1939 | "refId": "A" 1940 | } 1941 | ], 1942 | "title": "Loss-degraded participant-seconds", 1943 | "type": "timeseries" 1944 | }, 1945 | { 1946 | "datasource": { 1947 | "type": "prometheus", 1948 | "uid": "${DS_PROMETHEUS}" 1949 | }, 1950 | "description": "The rate of failed conferences on the bridge. A conference is marked as failed when all of its channels have failed. A channel is marked as failed if it had no payload activity.", 1951 | "fieldConfig": { 1952 | "defaults": { 1953 | "color": { 1954 | "mode": "palette-classic" 1955 | }, 1956 | "custom": { 1957 | "axisBorderShow": false, 1958 | "axisCenteredZero": false, 1959 | "axisColorMode": "text", 1960 | "axisLabel": "", 1961 | "axisPlacement": "auto", 1962 | "barAlignment": 0, 1963 | "drawStyle": "line", 1964 | "fillOpacity": 10, 1965 | "gradientMode": "none", 1966 | "hideFrom": { 1967 | "legend": false, 1968 | "tooltip": false, 1969 | "viz": false 1970 | }, 1971 | "insertNulls": false, 1972 | "lineInterpolation": "linear", 1973 | "lineWidth": 1, 1974 | "pointSize": 5, 1975 | "scaleDistribution": { 1976 | "type": "linear" 1977 | }, 1978 | "showPoints": "never", 1979 | "spanNulls": false, 1980 | "stacking": { 1981 | "group": "A", 1982 | "mode": "none" 1983 | }, 1984 | "thresholdsStyle": { 1985 | "mode": "off" 1986 | } 1987 | }, 1988 | "links": [], 1989 | "mappings": [], 1990 | "thresholds": { 1991 | "mode": "absolute", 1992 | "steps": [ 1993 | { 1994 | "color": "green" 1995 | }, 1996 | { 1997 | "color": "red", 1998 | "value": 80 1999 | } 2000 | ] 2001 | }, 2002 | "unit": "short" 2003 | }, 2004 | "overrides": [] 2005 | }, 2006 | "gridPos": { 2007 | "h": 8, 2008 | "w": 12, 2009 | "x": 12, 2010 | "y": 46 2011 | }, 2012 | "id": 35, 2013 | "options": { 2014 | "legend": { 2015 | "calcs": [ 2016 | "mean", 2017 | "lastNotNull", 2018 | "max", 2019 | "min" 2020 | ], 2021 | "displayMode": "table", 2022 | "placement": "bottom", 2023 | "showLegend": true 2024 | }, 2025 | "tooltip": { 2026 | "mode": "multi", 2027 | "sort": "none" 2028 | } 2029 | }, 2030 | "pluginVersion": "10.4.0", 2031 | "targets": [ 2032 | { 2033 | "datasource": { 2034 | "type": "prometheus", 2035 | "uid": "${DS_PROMETHEUS}" 2036 | }, 2037 | "expr": "rate(jitsi_total_failed_conferences{instance=~\"$instance.*\"}[1m])", 2038 | "interval": "", 2039 | "legendFormat": "failed conferences", 2040 | "refId": "A" 2041 | } 2042 | ], 2043 | "title": "Failed conferences", 2044 | "type": "timeseries" 2045 | }, 2046 | { 2047 | "datasource": { 2048 | "type": "prometheus", 2049 | "uid": "${DS_PROMETHEUS}" 2050 | }, 2051 | "description": "The rate of partially failed conferences on the bridge. A conference is marked as partially failed when some of its channels has failed. A channel is marked as failed if it had no payload activity.", 2052 | "fieldConfig": { 2053 | "defaults": { 2054 | "color": { 2055 | "mode": "palette-classic" 2056 | }, 2057 | "custom": { 2058 | "axisBorderShow": false, 2059 | "axisCenteredZero": false, 2060 | "axisColorMode": "text", 2061 | "axisLabel": "", 2062 | "axisPlacement": "auto", 2063 | "barAlignment": 0, 2064 | "drawStyle": "line", 2065 | "fillOpacity": 10, 2066 | "gradientMode": "none", 2067 | "hideFrom": { 2068 | "legend": false, 2069 | "tooltip": false, 2070 | "viz": false 2071 | }, 2072 | "insertNulls": false, 2073 | "lineInterpolation": "linear", 2074 | "lineWidth": 1, 2075 | "pointSize": 5, 2076 | "scaleDistribution": { 2077 | "type": "linear" 2078 | }, 2079 | "showPoints": "never", 2080 | "spanNulls": false, 2081 | "stacking": { 2082 | "group": "A", 2083 | "mode": "none" 2084 | }, 2085 | "thresholdsStyle": { 2086 | "mode": "off" 2087 | } 2088 | }, 2089 | "links": [], 2090 | "mappings": [], 2091 | "thresholds": { 2092 | "mode": "absolute", 2093 | "steps": [ 2094 | { 2095 | "color": "green" 2096 | }, 2097 | { 2098 | "color": "red", 2099 | "value": 80 2100 | } 2101 | ] 2102 | }, 2103 | "unit": "short" 2104 | }, 2105 | "overrides": [] 2106 | }, 2107 | "gridPos": { 2108 | "h": 8, 2109 | "w": 12, 2110 | "x": 0, 2111 | "y": 54 2112 | }, 2113 | "id": 36, 2114 | "options": { 2115 | "legend": { 2116 | "calcs": [ 2117 | "mean", 2118 | "lastNotNull", 2119 | "max", 2120 | "min" 2121 | ], 2122 | "displayMode": "table", 2123 | "placement": "bottom", 2124 | "showLegend": true 2125 | }, 2126 | "tooltip": { 2127 | "mode": "multi", 2128 | "sort": "none" 2129 | } 2130 | }, 2131 | "pluginVersion": "10.4.0", 2132 | "targets": [ 2133 | { 2134 | "datasource": { 2135 | "type": "prometheus", 2136 | "uid": "${DS_PROMETHEUS}" 2137 | }, 2138 | "expr": "rate(jitsi_total_partially_failed_conferences{instance=~\"$instance.*\"}[1m])", 2139 | "interval": "", 2140 | "legendFormat": "partially failed conferences", 2141 | "refId": "A" 2142 | } 2143 | ], 2144 | "title": "Partially failed conferences", 2145 | "type": "timeseries" 2146 | }, 2147 | { 2148 | "datasource": { 2149 | "type": "prometheus", 2150 | "uid": "${DS_PROMETHEUS}" 2151 | }, 2152 | "description": "The total number messages sent/received through data channels.", 2153 | "fieldConfig": { 2154 | "defaults": { 2155 | "color": { 2156 | "mode": "palette-classic" 2157 | }, 2158 | "custom": { 2159 | "axisBorderShow": false, 2160 | "axisCenteredZero": false, 2161 | "axisColorMode": "text", 2162 | "axisLabel": "", 2163 | "axisPlacement": "auto", 2164 | "barAlignment": 0, 2165 | "drawStyle": "line", 2166 | "fillOpacity": 10, 2167 | "gradientMode": "none", 2168 | "hideFrom": { 2169 | "legend": false, 2170 | "tooltip": false, 2171 | "viz": false 2172 | }, 2173 | "insertNulls": false, 2174 | "lineInterpolation": "linear", 2175 | "lineWidth": 1, 2176 | "pointSize": 5, 2177 | "scaleDistribution": { 2178 | "type": "linear" 2179 | }, 2180 | "showPoints": "never", 2181 | "spanNulls": false, 2182 | "stacking": { 2183 | "group": "A", 2184 | "mode": "none" 2185 | }, 2186 | "thresholdsStyle": { 2187 | "mode": "off" 2188 | } 2189 | }, 2190 | "links": [], 2191 | "mappings": [], 2192 | "thresholds": { 2193 | "mode": "absolute", 2194 | "steps": [ 2195 | { 2196 | "color": "green" 2197 | }, 2198 | { 2199 | "color": "red", 2200 | "value": 80 2201 | } 2202 | ] 2203 | }, 2204 | "unit": "short" 2205 | }, 2206 | "overrides": [ 2207 | { 2208 | "matcher": { 2209 | "id": "byName", 2210 | "options": "sent" 2211 | }, 2212 | "properties": [ 2213 | { 2214 | "id": "custom.transform", 2215 | "value": "negative-Y" 2216 | } 2217 | ] 2218 | } 2219 | ] 2220 | }, 2221 | "gridPos": { 2222 | "h": 8, 2223 | "w": 12, 2224 | "x": 12, 2225 | "y": 54 2226 | }, 2227 | "id": 37, 2228 | "options": { 2229 | "legend": { 2230 | "calcs": [ 2231 | "mean", 2232 | "lastNotNull", 2233 | "max", 2234 | "min" 2235 | ], 2236 | "displayMode": "table", 2237 | "placement": "bottom", 2238 | "showLegend": true 2239 | }, 2240 | "tooltip": { 2241 | "mode": "multi", 2242 | "sort": "none" 2243 | } 2244 | }, 2245 | "pluginVersion": "10.4.0", 2246 | "targets": [ 2247 | { 2248 | "datasource": { 2249 | "type": "prometheus", 2250 | "uid": "${DS_PROMETHEUS}" 2251 | }, 2252 | "expr": "rate(jitsi_total_data_channel_messages_received{instance=~\"$instance.*\"}[1m])", 2253 | "interval": "", 2254 | "legendFormat": "received", 2255 | "refId": "A" 2256 | }, 2257 | { 2258 | "datasource": { 2259 | "type": "prometheus", 2260 | "uid": "${DS_PROMETHEUS}" 2261 | }, 2262 | "expr": "rate(jitsi_total_data_channel_messages_sent{instance=~\"$instance.*\"}[1m])", 2263 | "interval": "", 2264 | "legendFormat": "sent", 2265 | "refId": "B" 2266 | } 2267 | ], 2268 | "title": "Sent/Received messages", 2269 | "type": "timeseries" 2270 | }, 2271 | { 2272 | "datasource": { 2273 | "type": "prometheus", 2274 | "uid": "${DS_PROMETHEUS}" 2275 | }, 2276 | "description": "The total number messages sent/received through COLIBRI web sockets.", 2277 | "fieldConfig": { 2278 | "defaults": { 2279 | "color": { 2280 | "mode": "palette-classic" 2281 | }, 2282 | "custom": { 2283 | "axisBorderShow": false, 2284 | "axisCenteredZero": false, 2285 | "axisColorMode": "text", 2286 | "axisLabel": "", 2287 | "axisPlacement": "auto", 2288 | "barAlignment": 0, 2289 | "drawStyle": "line", 2290 | "fillOpacity": 10, 2291 | "gradientMode": "none", 2292 | "hideFrom": { 2293 | "legend": false, 2294 | "tooltip": false, 2295 | "viz": false 2296 | }, 2297 | "insertNulls": false, 2298 | "lineInterpolation": "linear", 2299 | "lineWidth": 1, 2300 | "pointSize": 5, 2301 | "scaleDistribution": { 2302 | "type": "linear" 2303 | }, 2304 | "showPoints": "never", 2305 | "spanNulls": false, 2306 | "stacking": { 2307 | "group": "A", 2308 | "mode": "none" 2309 | }, 2310 | "thresholdsStyle": { 2311 | "mode": "off" 2312 | } 2313 | }, 2314 | "links": [], 2315 | "mappings": [], 2316 | "thresholds": { 2317 | "mode": "absolute", 2318 | "steps": [ 2319 | { 2320 | "color": "green" 2321 | }, 2322 | { 2323 | "color": "red", 2324 | "value": 80 2325 | } 2326 | ] 2327 | }, 2328 | "unit": "short" 2329 | }, 2330 | "overrides": [ 2331 | { 2332 | "matcher": { 2333 | "id": "byName", 2334 | "options": "sent" 2335 | }, 2336 | "properties": [ 2337 | { 2338 | "id": "custom.transform", 2339 | "value": "negative-Y" 2340 | } 2341 | ] 2342 | } 2343 | ] 2344 | }, 2345 | "gridPos": { 2346 | "h": 8, 2347 | "w": 12, 2348 | "x": 0, 2349 | "y": 62 2350 | }, 2351 | "id": 38, 2352 | "options": { 2353 | "legend": { 2354 | "calcs": [ 2355 | "mean", 2356 | "lastNotNull", 2357 | "max", 2358 | "min" 2359 | ], 2360 | "displayMode": "table", 2361 | "placement": "bottom", 2362 | "showLegend": true 2363 | }, 2364 | "tooltip": { 2365 | "mode": "multi", 2366 | "sort": "none" 2367 | } 2368 | }, 2369 | "pluginVersion": "10.4.0", 2370 | "targets": [ 2371 | { 2372 | "datasource": { 2373 | "type": "prometheus", 2374 | "uid": "${DS_PROMETHEUS}" 2375 | }, 2376 | "expr": "rate(jitsi_total_colibri_web_socket_messages_received{instance=~\"$instance.*\"}[1m])", 2377 | "interval": "", 2378 | "legendFormat": "received", 2379 | "refId": "A" 2380 | }, 2381 | { 2382 | "datasource": { 2383 | "type": "prometheus", 2384 | "uid": "${DS_PROMETHEUS}" 2385 | }, 2386 | "expr": "rate(jitsi_total_colibri_web_socket_messages_sent{instance=~\"$instance.*\"}[1m])", 2387 | "interval": "", 2388 | "legendFormat": "sent", 2389 | "refId": "B" 2390 | } 2391 | ], 2392 | "title": "Sent/Received websockets", 2393 | "type": "timeseries" 2394 | }, 2395 | { 2396 | "datasource": { 2397 | "type": "prometheus", 2398 | "uid": "${DS_PROMETHEUS}" 2399 | }, 2400 | "description": "Stress level reported to Jicofo by the videobridge.", 2401 | "fieldConfig": { 2402 | "defaults": { 2403 | "color": { 2404 | "mode": "palette-classic" 2405 | }, 2406 | "custom": { 2407 | "axisBorderShow": false, 2408 | "axisCenteredZero": false, 2409 | "axisColorMode": "text", 2410 | "axisLabel": "", 2411 | "axisPlacement": "auto", 2412 | "barAlignment": 0, 2413 | "drawStyle": "line", 2414 | "fillOpacity": 10, 2415 | "gradientMode": "none", 2416 | "hideFrom": { 2417 | "legend": false, 2418 | "tooltip": false, 2419 | "viz": false 2420 | }, 2421 | "insertNulls": false, 2422 | "lineInterpolation": "linear", 2423 | "lineWidth": 1, 2424 | "pointSize": 5, 2425 | "scaleDistribution": { 2426 | "type": "linear" 2427 | }, 2428 | "showPoints": "never", 2429 | "spanNulls": false, 2430 | "stacking": { 2431 | "group": "A", 2432 | "mode": "none" 2433 | }, 2434 | "thresholdsStyle": { 2435 | "mode": "off" 2436 | } 2437 | }, 2438 | "mappings": [], 2439 | "min": 0, 2440 | "thresholds": { 2441 | "mode": "absolute", 2442 | "steps": [ 2443 | { 2444 | "color": "green" 2445 | }, 2446 | { 2447 | "color": "red", 2448 | "value": 80 2449 | } 2450 | ] 2451 | }, 2452 | "unit": "short" 2453 | }, 2454 | "overrides": [] 2455 | }, 2456 | "gridPos": { 2457 | "h": 8, 2458 | "w": 12, 2459 | "x": 12, 2460 | "y": 62 2461 | }, 2462 | "id": 43, 2463 | "options": { 2464 | "legend": { 2465 | "calcs": [ 2466 | "mean", 2467 | "lastNotNull", 2468 | "max", 2469 | "min" 2470 | ], 2471 | "displayMode": "table", 2472 | "placement": "bottom", 2473 | "showLegend": true 2474 | }, 2475 | "tooltip": { 2476 | "mode": "multi", 2477 | "sort": "none" 2478 | } 2479 | }, 2480 | "pluginVersion": "10.4.0", 2481 | "targets": [ 2482 | { 2483 | "datasource": { 2484 | "type": "prometheus", 2485 | "uid": "${DS_PROMETHEUS}" 2486 | }, 2487 | "expr": "jitsi_stress_level{instance=~\"$instance.*\"}", 2488 | "instant": false, 2489 | "interval": "", 2490 | "legendFormat": "stress level", 2491 | "queryType": "randomWalk", 2492 | "refId": "A" 2493 | } 2494 | ], 2495 | "title": "Videobridge stress level", 2496 | "type": "timeseries" 2497 | } 2498 | ], 2499 | "refresh": "1m", 2500 | "schemaVersion": 39, 2501 | "tags": [ 2502 | "jitsi" 2503 | ], 2504 | "templating": { 2505 | "list": [ 2506 | { 2507 | "current": {}, 2508 | "datasource": { 2509 | "type": "prometheus", 2510 | "uid": "${DS_PROMETHEUS}" 2511 | }, 2512 | "definition": "label_values(jitsi_conferences, instance)", 2513 | "hide": 0, 2514 | "includeAll": false, 2515 | "label": "instance", 2516 | "multi": false, 2517 | "name": "instance", 2518 | "options": [], 2519 | "query": "label_values(jitsi_conferences, instance)", 2520 | "refresh": 1, 2521 | "regex": "/(.*):.*/", 2522 | "skipUrlSync": false, 2523 | "sort": 0, 2524 | "tagValuesQuery": "", 2525 | "tagsQuery": "", 2526 | "type": "query", 2527 | "useTags": false 2528 | } 2529 | ] 2530 | }, 2531 | "time": { 2532 | "from": "now-3h", 2533 | "to": "now" 2534 | }, 2535 | "timepicker": { 2536 | "refresh_intervals": [ 2537 | "10s", 2538 | "30s", 2539 | "1m", 2540 | "5m", 2541 | "15m", 2542 | "30m", 2543 | "1h", 2544 | "2h", 2545 | "1d" 2546 | ] 2547 | }, 2548 | "timezone": "", 2549 | "title": "Jitsi Meet", 2550 | "uid": "wX13E8RGz", 2551 | "version": 4, 2552 | "weekStart": "" 2553 | } --------------------------------------------------------------------------------