Commit Graph

26 Commits

Author SHA1 Message Date
Cody Lee
b960695f3b Add Docker health check support
Implements #406 by adding a --health CLI flag and HEALTHCHECK instruction
to the Dockerfile. This allows Docker and container orchestration platforms
to monitor container health automatically.

Changes:
- Added --health flag that validates configuration and plugin connectivity
- Implemented HealthCheck() method in pkg/poller/commands.go
- Updated Dockerfile with HEALTHCHECK instruction (30s interval, 10s timeout)
- Updated MANUAL.md with --health flag documentation
- Added health check documentation to Docker README
- Added comments to docker-compose examples about built-in health check

The health check:
- Validates configuration file is found and parseable
- Ensures at least one input and one enabled output are configured
- Performs basic validation on enabled outputs
- Returns exit code 0 (healthy) or 1 (unhealthy)
- Runs silently for Docker compatibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-08 13:09:10 -06:00
Cody Lee
c503f04ae7 Fixes influxdb init for docker compose
Fixes #623 #558

Thanks to @bcjmk https://github.com/unpoller/unpoller/issues/623#issuecomment-1977691177
2024-03-04 18:18:07 -06:00
David Newhall
46b2871cf0 Update docker-compose.yml 2024-01-01 12:12:11 -08:00
Cody Lee
68e9ec37c6 Update docker-compose.yml
Removes dangling chronograph
2024-01-01 14:05:49 -06:00
Cody Lee
bcfab844ae Update docker-compose.yml
Fix from #633
2023-11-15 18:31:35 -06:00
David Newhall
1d48e1a667 Update docker-compose.yml 2023-09-14 15:40:01 -07:00
David Newhall
a18c0479bc Update docker-compose.yml 2023-09-14 15:39:18 -07:00
Cody Lee
fded91ce40 fixed start loop 2022-12-11 13:00:40 -06:00
crustulumtheoneandonly
8b8f2ec3b7 Update unpoller image source from dockerhub to gh 2022-11-23 10:09:21 +01:00
John Warne
6b750f7016 Specify InfluxDB version 1.8
InfluxDB 1.8 is the latest 1.x version to support the environment variables specified in the `docker-compose.yml`. If set to `latest` the newer 2.x version of InfluxDB is pulled and the user/db is not initialized.
2021-03-01 09:56:00 -07:00
David Newhall II
b46b31827e Merge pull request #217 from davidyilee/update-docker-compose
Update docker compose and example env file for DPI and IDS polling
2020-04-28 00:15:08 -07:00
David Lee
cf249953e4 remove IDS env var and add back newline
addressing PR comments
2020-04-27 22:10:46 -07:00
David Lee
73fec17bdb Update docker compose and example env file for DPI and IDS polling
Add two example env variables for folks who want want to add DPI and IDS polling options in their docker stack.
2020-04-26 17:05:17 -07:00
L2v2P
d40d218ef8 Update docker-compose.yml
Remove IP address from Chronograf port to make Chronograf accessible from outside of Docker container.
2020-04-23 14:05:54 +02:00
Matthww
46829b8113 Fix Unifi-poller not able to connect
Seems like this commit: ff825c5f32 (diff-e6d152191eedc58f07f2559d4e8736c8) changed the environment to use the UNIFI_USER as a password instead of UNIFI_PASS
2020-02-19 11:42:37 +01:00
jonbloom
8d5ad1c74a Fixes #191 - update env vars, *actually* enable auth 2020-02-10 09:08:52 -05:00
davidnewhall2
ff825c5f32 update docker compose for v2 2020-02-03 00:36:16 -08:00
Jon Bloom
b861aad980 Add back in docker-compose files 2019-12-29 23:58:33 -05:00
David Newhall II
0ec3096a20 Delete docker-compose.yml 2019-12-29 20:52:47 -08:00
Jon Bloom
28165d06f1 Revert "temporarily remove file"
This reverts commit 8a53b9fb5b.
2019-12-29 23:48:05 -05:00
Jon Bloom
8a53b9fb5b temporarily remove file 2019-12-29 23:47:19 -05:00
davidnewhall2
3444db73d4 small qol update 2019-11-28 03:34:29 -08:00
Dan Wall
84fc443e52 Fix docker compose environment variables 2019-09-10 18:17:31 +10:00
Jon Bloom
5fae40b714 sane defaults 2019-09-09 13:38:14 -04:00
Jon Bloom
0676c53f58 rename .env, add newlines, branch in env var 2019-09-06 16:47:24 -04:00
Jon Bloom
7785c5439d add docker-compose for influxdb, chronograf, grafana, unifi-poller 2019-09-06 16:20:09 -04:00