genofire db65d47ea9 | ||
---|---|---|
.ci | ||
api | ||
contrib | ||
docs | ||
helper | ||
.gitignore | ||
.gitlab-ci.yml | ||
Containerfile | ||
README.adoc | ||
config_example.toml | ||
go.mod | ||
go.sum | ||
main.go | ||
prometheus.go |
README.adoc
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
</head>
</html>
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
Configuration
Read comments in config_example.toml for more information.
Maybe a good place to store this file is: /etc/ovenmediaengine/exporter.conf
OR use env variables:
OVEN_E_LISTEN=:8080
OVEN_E_API__URL=http://1.2.3.4:8081
OVEN_E_API__TOKEN=ome-access-token
OVEN_E_API__DEFAULT_VHOST=
OVEN_E_API__DEFAULT_APP=
(File read could be disabled by call oven-exporter -c ''
Startup
Create a systemd.service file e.g. under /etc/systemd/system/oven-exporter.service
with maybe a content like this:
PS: maybe you need to adjust the binary path and configuration path.
Start and enable on boot: systemctl enable --now oven-exporter.service