faryon93 / hlswatch

keep track of hls viewer stats
GNU General Public License v3.0
49 stars 9 forks source link

Usage #2

Closed hoodsy closed 6 years ago

hoodsy commented 6 years ago

Once I've configured hlswatch, how can I consume the viewer stats?

faryon93 commented 6 years ago

The statistics are published in two different forms:

  1. Written every second to an InfluxDB. A valid [influx] section must be present in the config file.
  2. Exposed as an REST HTTP endpoint. The config entry common.listen specifies the address/port to listen on (e.g. 127.0.0.1:300). Then the JSON object containing the viewer information can be obtained at http://127.0.0.1:300/stats