OvenMediaEngine Exporter for Prometheus
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
genofire 2ffd30dd0f use production logger as default logger 5 months ago
api api: add push start command 9 months ago
contrib add api default values + rename host to url 10 months ago
.gitignore Init 10 months ago
README.md improve docs for installing 7 months ago
config_example.toml improve docs for installing 7 months ago
go.mod change to zap.Logger 8 months ago
go.sum change to zap.Logger 8 months ago
main.go use production logger as default logger 5 months ago
prometheus.go change to zap.Logger 8 months ago

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