Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Time Influx is open source time series Influx DB is used to store stream metric values acquired from WCS.

Influx DB installation

...

To install Influx DB to on CentOS 7, do the following:

...

The installation procedure for Influx DB to on Debian / Ubuntu differs only in the method of adding the necessary repository.

Influx DB can be installed to the same server with monitoring backend server. By default, TCP port 8086 or UDP port 8089 is used to connect to Influx DB.

DB structure

...

Influx DB setup

To configure Influx DB for metric storage do the following:

1. Set the following parameter in wcsoam.properties file

Code Block
themeRDark
metric_store=influx

2. Set metrics retention policy in init_tsdb.properties file

Code Block
themeRDark
influx_retention_interval=48h0m0s

By default, metrics are stored for 2 days (48 hours).

3. Launch DB setup script

Code Block
languagebash
themeRDark
./init_tsdb.sh

DB structure

The database to store metric values as time series . The database contains fields with the following keys:

Code Block
themeRDark
VIDEO_HEIGHT
VIDEO_WIDTH
VIDEO_RATE
VIDEO_SYNC
VIDEO_FPS
VIDEO_NACK
VIDEO_PLI
VIDEO_CODEC
AUDIO_SYNC
AUDIO_RATE
AUDIO_LOST
AUDIO_CODEC

...

Examples of data selection from Influx DB

...

The data Data can be selected from Influx DB for the a stream, for which node and mediasession media session identifiers are known:

1. Enter Influx DB command line interface

...

will show time series list, every of them which corresponds to stream published to certain node in certain mediasessionmedia session, for example

Code Block
themeRDark
name: measurements                                                                         
name                                                                                       
----                                                                                       
3-7ecbd270-123e-11e9-bb40-b96debd59887
3-93412000-123b-11e9-8357-3d4423e30d73

4. Select video bitrate values for stream on node 3 in mediasession media session 7ecbd270-123e-11e9-bb40-b96debd59887

...