https://github.com/genofire/oven-exporter
OvenMediaEngine exporter
https://github.com/genofire/oven-exporter
api exporter mirror ovenmediaengine prometheus prometheus-exporter
Last synced: 2 months ago
JSON representation
OvenMediaEngine exporter
- Host: GitHub
- URL: https://github.com/genofire/oven-exporter
- Owner: genofire
- Created: 2021-07-20T10:19:48.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-23T19:26:07.000Z (over 1 year ago)
- Last Synced: 2025-03-27T21:52:06.527Z (3 months ago)
- Topics: api, exporter, mirror, ovenmediaengine, prometheus, prometheus-exporter
- Language: Go
- Homepage: https://gitlab.com/kukoon/mediathek/ovenmediaengine/oven-exporter
- Size: 214 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
== 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 https://airensoft.gitbook.io/ovenmediaengine/rest-api[OvenMediaEngine REST-API].
=== Setup Exporter
==== Compile
Install https://golang.org/doc/install[golang].
Run: `go install -v codeberg.org/Mediathek/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`
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:
[source,ini]
----
[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`