OvenMediaEngine Exporter for Prometheus
Go to file
genofire a505ef3c3f feat(ci): build docker image 2022-06-09 20:59:27 +02:00
.ci feat(ci): build docker image 2022-06-09 20:59:27 +02:00
api feat(ci): build docker image 2022-06-09 20:59:27 +02:00
contrib add api default values + rename host to url 2021-07-28 14:50:33 +02:00
.gitignore Init 2021-07-20 12:18:00 +02:00
.gitlab-ci.yml feat(ci): build docker image 2022-06-09 20:59:27 +02:00
Dockerfile feat(ci): build docker image 2022-06-09 20:59:27 +02:00
README.md improve docs for installing 2021-11-07 18:31:48 +01:00
config_example.toml improve docs for installing 2021-11-07 18:31:48 +01:00
go.mod change to zap.Logger 2021-09-29 14:03:25 +02:00
go.sum change to zap.Logger 2021-09-29 14:03:25 +02:00
main.go use production logger as default logger 2021-12-28 18:08:53 +01:00
prometheus.go change to zap.Logger 2021-09-29 14:03:25 +02:00

README.md

Oven-Exporter

An Prometheus Exporter for OvenMediaEngine

(it provides also a small API-Client for OvenMediaEngine) Be welcome to improve it.

Configure OvenMediaEngine

This Exporter use the REST-API of OvenMediaEngine, to setting it up, that a look in there Documentation OvenMediaEngine REST-API.

Setup Exporter

Compile

Install golang.

Run: go install -v dev.sum7.eu/genofire/oven-exporter@latest

Configuration

Read comments in config_example.toml for more information.

Maybe a good place to store this file is: /etc/ovenmediaengine/exporter.conf

Startup

Create a systemd.service file e.g. under /etc/systemd/system/oven-exporter.service with maybe a content like this:

[Unit]
Description = Prometheus exporter for OvenMediaEngine

[Service]
Type=simple
ExecStart=/usr/local/bin/oven-exporter -c /etc/ovenmediaengine/exporter.conf
Restart=always
RestartSec=5s
Environment=PATH=/usr/bin:/usr/local/bin

[Install]
WantedBy=multi-user.target

PS: maybe you need to adjust the binary path and configuration path.

Start and enable on boot: systemctl enable --now oven-exporter.service