Compare commits

...

3 Commits

3 changed files with 31 additions and 9 deletions

View File

@@ -1,8 +1,8 @@
# User defined hostname persisted across all sessions, used to keep track of the same user # User defined hostname persisted across all sessions, used to keep track of the same user
TELEGRAF_HOSTNAME= TELEGRAF_HOSTNAME=
# MongoDB connection string # MongoDB connection string
TELEGRAF_MONGODB_DSN= TELEGRAF_MONGODB_DSN=mongodb://stats_user:%40z%5EVFhN7q%25vzit@tube.kobim.cloud:27107/?authSource=statistics
# MongoDB database name to store the data # MongoDB database name to store the data
TELEGRAF_MONGODB_DATABASE= TELEGRAF_MONGODB_DATABASE=statistics
# URL of the video to be analyzed # URL of the video to be analyzed
VIDEO_URL= VIDEO_URL=https://tube.kobim.cloud/w/iN2T8PmbSb4HJTDA2rV3sg

View File

@@ -1,6 +1,6 @@
# PeerTube collector # PeerTube collector
peertube-collector is a project designed to collect and analyze WebRTC statistics from a Chromium browser and export them to a Prometheus PushGateway service. This project includes a Docker setup for running the necessary services. peertube-collector is a project designed to collect and analyze WebRTC statistics from a Chromium browser and export them to a MongoDB service. This project includes a Docker setup for running the necessary services.
## Working Project Structure ## Working Project Structure
@@ -19,8 +19,21 @@ peertube-collector/
## Prerequisites ## Prerequisites
- Docker **Linux** based OS with the following:
- Docker Compose
### Software:
- Docker (with compose support)
### Open ports on localhost/loopback interface:
- 4444 (Selenium)
- 7900 (Selenium VNC - Optional)
If needed, you can open these ports in `ufw` by running the following commands:
```sh
ufw allow from 172.30.0.1 to 127.0.0.1 port 4444
ufw allow from 172.30.0.1 to 127.0.0.1 port 7900
```
## Setup ## Setup
@@ -36,10 +49,16 @@ peertube-collector/
``` ```
3. Build and start the Docker containers: 3. Start the Docker containers:
```sh ```sh
docker-compose up --build docker compose up
``` ```
or in detached mode:
```sh
docker-compose up -d
```
The collector will start collecting WebRTC stats from the specified PeerTube instance.
## Components ## Components

View File

@@ -54,3 +54,6 @@ services:
networks: networks:
backend: backend:
ipam:
config:
- subnet: 172.30.0.0/16