A Prometheus exporter that exposes Efteling attraction waiting times as metrics.
It fetches the park's public API, converts the response into Prometheus text format, and serves it on /metrics.
A single gauge is exported:
| Metric | Description | Labels |
|---|---|---|
efteling_waiting_time |
Current waiting time for an attraction, in minutes | id, name, empire, type |
Attractions with no reported waiting time (e.g. closed) are omitted from the output.
Example:
# HELP efteling_waiting_time Waiting time for attractions
# TYPE efteling_waiting_time gauge
efteling_waiting_time{id="1", name="Baron 1898", empire="Ruigrijk", type="Attraction"} 25
Responses are cached in-memory for 30 seconds to avoid hammering the upstream API.
docker run -p 1337:1337 ghcr.io/pataar/efteling-node-exporterRequires Rust 1.100 or newer. The exact toolchain is pinned in rust-toolchain.toml, so rustup installs it on first use.
cargo runThe exporter listens on 0.0.0.0:1337. Metrics are available at http://localhost:1337/metrics.
| Variable | Default | Description |
|---|---|---|
RUST_LOG |
efteling_node_exporter=info |
Log level / filter, per tracing-subscriber EnvFilter syntax |
scrape_configs:
- job_name: efteling
static_configs:
- targets: ["localhost:1337"]cargo test # run tests
cargo clippy --all-targets # lint (clippy pedantic + Cargo lints, see [lints] in Cargo.toml)
cargo fmt # formatCI runs with CARGO_BUILD_WARNINGS=deny, so any rustc, clippy or Cargo lint warning (e.g. cargo::unused_dependencies) fails the build. Set the same variable locally to reproduce.
New dependency versions are only picked up after they have been on crates.io for 7 days (global-min-publish-age in .cargo/config.toml; Dependabot uses the same cooldown).