44 lines
1.0 KiB
Markdown
44 lines
1.0 KiB
Markdown
|
# Prometheus Europa Park Exporter
|
||
|
|
||
|
This is an exporter that exposes information gathered from Europa Park for use by the Prometheus monitoring system.
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
Requires Python 3.11 or better.
|
||
|
|
||
|
## Using docker
|
||
|
|
||
|
```
|
||
|
docker pull git.hipstercat.fr/hipstercat/europapark-exporter:main
|
||
|
```
|
||
|
|
||
|
Example: Display usage message:
|
||
|
|
||
|
```
|
||
|
docker run -it --rm git.hipstercat.fr/hipstercat/europapark-exporter:main --help
|
||
|
```
|
||
|
|
||
|
Example: Run the image with a mounted configuration file and published port:
|
||
|
```
|
||
|
docker run --init --name prometheus-europapark-exporter -d -p 127.0.0.1:9224:9224 git.hipstercat.fr/hipstercat/europapark-exporter:main
|
||
|
```
|
||
|
Prometheus Europa Park Exporter will now be reachable at http://localhost:9224/.
|
||
|
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
Visit http://localhost:9224/europapark
|
||
|
|
||
|
## Prometheus Configuration
|
||
|
|
||
|
Example config for Europa Park exporter running on Prometheus host:
|
||
|
|
||
|
```yaml
|
||
|
scrape_configs:
|
||
|
- job_name: 'europapark'
|
||
|
static_configs:
|
||
|
- targets:
|
||
|
- 192.168.1.2 # Europa Park exporter.
|
||
|
metrics_path: /europapark
|
||
|
scrape_interval: 1h
|
||
|
```
|