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
7e2fb0135e
fix dd client interface change, update deprecated context lib in influxdb
2025-12-03 11:51:40 -06:00
Cody Lee
6f4384c18d
fix linting
2025-12-03 11:40:21 -06:00
Cody Lee
c3126d27e3
interface change updates
2025-08-20 11:36:29 -05:00
Traxmaxx
8fb9c3cb40
fix: skip loki reporting if streams is empty
2025-07-20 13:18:58 +02:00
Sofiane A
10ccd0c2d7
Correct logic for default site condition
2025-04-29 19:34:52 +02:00
Sofiane A
5a89a4634a
Add default_site_name_override to support customizable default site names
2025-04-29 16:12:32 +02:00
Cody Lee
4b19b873ab
address issue
2025-04-04 08:33:58 -05:00
Cody Lee
6d4065113f
fixes metrics prefix names for ubb and uci devices
2025-01-15 15:50:47 -06:00
Cody Lee
cba1111f29
add support for api-key auth
2025-01-10 15:19:30 -06:00
Cody Lee
ed3c222992
oops fix dd expectation
2025-01-02 12:51:37 -06:00
Cody Lee
9d1f8606df
update expectations
2025-01-02 12:46:17 -06:00
Cody Lee
4da299ff46
adds device uplink stats for issue #585
2025-01-02 12:41:34 -06:00
Cody Lee
1b120a258a
tests pass locally;
2025-01-02 11:33:28 -06:00
Cody Lee
3602d8cc8f
adds in UBB & UCI support
2025-01-02 08:57:47 -06:00
Cody Lee
a30c82093d
add ubb and uci initial support
2024-12-31 16:26:54 -06:00
Cody Lee
ebdb224d95
fixes mocks
2024-12-31 15:03:55 -06:00
Cody Lee
78f30e0056
fix vet
2024-12-31 14:47:06 -06:00
Cody Lee
b372198840
painful upgrade for dumb go versioning
2024-12-31 14:44:10 -06:00
Cody Lee
b9d668abee
upgrading dependencies
2024-12-31 14:23:53 -06:00
Cody Lee
38ac45fc17
update golangci-lint, address lint issue
2024-12-31 14:12:35 -06:00
Cody Lee
9bdc6e8d0f
auto fix lint rules
2024-09-09 08:55:12 -05:00
Cody Lee
5b58e6c237
fix promver collector to default buildinfo collector
2024-04-19 15:51:18 -05:00
Cody Lee
4bd56677c9
fix type
2024-04-19 15:43:00 -05:00
Cody Lee
cfd35ddf67
nice find here, pct should be float
2024-04-03 18:41:34 -05:00
Cody Lee
f372ddd3b6
fix integration test
2024-04-03 18:34:54 -05:00
Cody Lee
7308a1c2e6
fix type errors
2024-04-03 12:17:24 -05:00
Cody Lee
b87ee94111
add hostname per #415 request to loki exports
2024-03-04 18:28:04 -06:00
Austin Browder
8974cce072
Fixed PR lint failure
2023-11-07 12:25:02 -07:00
Austin Browder
746ab856e0
Added source interface identifier to exportUSGstats function
2023-10-23 14:39:22 -06:00
Mike Piatek-Jimenez
ce55a864ea
Make sure descPDU handles the power outlets.
2023-09-11 00:00:48 -04:00
Mike Piatek-Jimenez
5514be1a57
Update the test expectations for the datadog output package.
2023-09-10 22:15:50 -04:00
Mike Piatek-Jimenez
b5247cf65d
Updated the integration test expectations for the parsed PDU data.
2023-09-10 22:02:41 -04:00
Mike Piatek-Jimenez
6ddb2055d0
Fix a bug where the PDU metrics captured by the unifi collector wouldn’t be included in the device output.
2023-09-10 13:06:37 -04:00
Cody Lee
7e87e7f4fb
rename package per per comment, add comments, and drop unnecessary compile time check
2023-08-03 09:27:09 -05:00
Cody Lee
11142c0209
remove nl
2023-07-31 16:16:48 -05:00
Cody Lee
ffb8579369
add integration test guard;
...
datadog integration test works
influx package tests
update unifi version
golanglint-ci and address *all* issues.
all tests pass
bump unifi version
2023-07-31 14:40:33 -05:00
Cody Lee
c5e409adff
per https://github.com/unpoller/unpoller/issues/575\#issuecomment-1641041603 fixes the other two data points that need to be re-cast
2023-07-18 16:56:50 -05:00
Cody Lee
2b186a9451
anomalies
2023-07-18 14:20:51 -05:00
Cody Lee
0aa406a2dc
cast back to int64 so existing timeseries continue to ingest, influxdb is very strict about int vs float storage
2023-07-18 13:48:57 -05:00
Cody Lee
0e4affbcd5
update unifi to v0.3.5, fix flexint conversions
2023-07-18 11:59:41 -05:00
Cody Lee
0f915e88c9
bump unifi version and fix data types
...
https://github.com/unpoller/unpoller/issues/575
2023-07-18 10:57:23 -05:00
Cody Lee
c002283387
fixes the webserver default file path issues
2023-04-13 09:56:24 -05:00
Patrik Boström
d4dc0d76d6
Fix for upgradable metric for Prometheus
2023-02-25 22:46:26 +01:00
Cody Lee
2b185e88c7
fixes sitedpi strings on influx and prom
2023-01-23 17:32:14 -06:00
Cody Lee
27bab9a01c
fixes client dpi strings on influx and prom
2023-01-07 11:36:11 -06:00
Cody Lee
1edb580084
bump unifi client and address
...
https://github.com/unpoller/dashboards/issues/20\#issuecomment-1364716049
and the duplicate https://github.com/unpoller/unpoller/issues/492
2023-01-06 21:12:24 -06:00
Cody Lee
3768c53512
CLI works
2022-12-22 18:16:43 -06:00
Cody Lee
db9bcd5687
add new interface for testing
2022-12-22 17:44:39 -06:00
Cody Lee
26e2771229
prom and influx support
2022-12-22 14:36:08 -06:00