From 0bdbde5c5b47341e01121279166e1d1fe0f6aa4f Mon Sep 17 00:00:00 2001 From: Derek Cooper Date: Sat, 6 Jun 2026 00:20:32 -0700 Subject: [PATCH] created unpoller --- Unpoller/.env.example | 10 ++++++++++ Unpoller/docker-compose.yaml | 23 +++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 Unpoller/.env.example create mode 100644 Unpoller/docker-compose.yaml diff --git a/Unpoller/.env.example b/Unpoller/.env.example new file mode 100644 index 0000000..bac8f3d --- /dev/null +++ b/Unpoller/.env.example @@ -0,0 +1,10 @@ +# Unpoller Docker Compose Environment Variables + +# Version of the unpoller image to use +# See: https://github.com/unpoller/unpoller/releases +UNPOLLER_VERSION=latest + +# Absolute path on the host to the unpoller config file (up.conf) +# This file configures the UniFi controller connection(s) and output plugins (Prometheus/InfluxDB) +# See: https://unpoller.com/docs/install/configuration/ +UNPOLLER_UP_CONF_PATH=/path/to/up.conf diff --git a/Unpoller/docker-compose.yaml b/Unpoller/docker-compose.yaml new file mode 100644 index 0000000..01a4773 --- /dev/null +++ b/Unpoller/docker-compose.yaml @@ -0,0 +1,23 @@ +services: + app: + image: ghcr.io/unpoller/unpoller:${UNPOLLER_VERSION:-latest} + container_name: unifi-poller-app + volumes: + - ${UNPOLLER_UP_CONF_PATH}:/etc/unpoller/up.conf + networks: + - monitor_network + healthcheck: + test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1:9130/metrics || exit 1"] + interval: 15s + timeout: 5s + retries: 5 + start_period: 30s + deploy: + resources: + limits: + memory: 512m + restart: unless-stopped + +networks: + monitor_network: + external: true \ No newline at end of file