OvenMediaEngine Exporter for Prometheus
Go to file
genofire db65d47ea9 fix: migrate to codeberg 2023-10-23 20:42:38 +02:00
.ci feat(ci): build docker image 2022-06-09 20:59:27 +02:00
api improve config reading from env and other file formats 2022-08-14 15:49:55 +02:00
contrib add api default values + rename host to url 2021-07-28 14:50:33 +02:00
docs chore(docs): fix typo in antora 2023-03-09 12:42:49 +00:00
helper fix(helper): use int64 for date -> easier use with golang time.Unix 2023-03-12 20:59:51 +01:00
.gitignore Init 2021-07-20 12:18:00 +02:00
.gitlab-ci.yml feat(ci): versioning 2022-08-01 21:36:41 +02:00
Containerfile fix: migrate to codeberg 2023-10-23 20:42:38 +02:00
README.adoc fix: migrate to codeberg 2023-10-23 20:42:38 +02:00
config_example.toml improve docs for installing 2021-11-07 18:31:48 +01:00
go.mod fix: migrate to codeberg 2023-10-23 20:42:38 +02:00
go.sum fix: migrate to codeberg 2023-10-23 20:42:38 +02:00
main.go fix: migrate to codeberg 2023-10-23 20:42:38 +02:00
prometheus.go fix: migrate to codeberg 2023-10-23 20:42:38 +02:00

README.adoc

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> </head>

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 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:

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

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


</html>