11 Commits

Author SHA1 Message Date
30fe75d383 health-agent redeploy with new image
All checks were successful
Deploy Environment Monitoring to Production Environment / deploy (push) Successful in 20s
2026-06-26 23:56:44 +03:00
6f3bf6cef1 health-agent redeploy with new image
All checks were successful
Deploy Environment Monitoring to Production Environment / deploy (push) Successful in 18s
2026-06-26 23:48:58 +03:00
c1cda0b38a health-agent redeploy with new image
All checks were successful
Deploy Environment Monitoring to Production Environment / deploy (push) Successful in 20s
2026-06-26 23:31:39 +03:00
475eb762b9 health-agent redeploy with new image
All checks were successful
Deploy Environment Monitoring to Production Environment / deploy (push) Successful in 17s
2026-06-26 23:13:38 +03:00
2a482ce4df health-agent redeploy with new image
All checks were successful
Deploy Environment Monitoring to Production Environment / deploy (push) Successful in 16s
2026-06-26 22:53:35 +03:00
0551b01c64 health-agent redeploy with new image
All checks were successful
Deploy Environment Monitoring to Production Environment / deploy (push) Successful in 16s
2026-06-26 21:27:14 +03:00
a5fc058978 health-agent redeploy with new image
Some checks failed
Deploy Environment Monitoring to Production Environment / deploy (push) Failing after 15s
2026-06-26 21:15:06 +03:00
95dd439a34 health-agent redeploy with new image
All checks were successful
Deploy Environment Monitoring to Production Environment / deploy (push) Successful in 36s
2026-06-26 20:53:59 +03:00
bc8b3d0934 refactor: convert all monitor names to Title Case and update health-agent digest 2026-06-26 20:47:31 +03:00
8d5fe55b14 health-agent redeploy with new image
All checks were successful
Deploy Environment Monitoring to Production Environment / deploy (push) Successful in 31s
2026-06-26 20:06:48 +03:00
58d5c24f41 feat(health-agent): add CI/CD pipeline, Uptime Kuma setup, and runtime configuration
Some checks failed
Deploy Environment Monitoring to Production Environment / deploy (push) Failing after 10s
Deploy workflows:
- Integrate health-agent build (test) and image promotion (prod) into monitoring stack workflows
- Add storagebox download of health-agent runtime (.env.monitoring.health-agent-runtime → health-agent/.env) and setup (.env.monitoring.health-agent-setup → health-agent/.env.setup) env files
- Add "Run Uptime Kuma Setup" step: runs setup_uptime_kuma.py inside the built image only when uk_tokens.yml is missing, writes tokens to HEALTH_AGENT_CONFIG_GENERATED_DIR (/mnt/storagebox/monitoring/uk_generated)
- Add health-agent/** and health-agent/deploy/prod.env path triggers to test and prod workflows respectively
- Add HARBOR_CI_TOKEN login and HARBOR_PULL_TOKEN login before stack deploy in both workflows
- Source health-agent/.env before docker stack deploy to expose HEALTH_AGENT_CONFIG_GENERATED_DIR

Dockerfile:
- Copy config/ and scripts/ into image so setup_uptime_kuma.py can run inside the container

setup_uptime_kuma.py:
- Load .env and .env.setup automatically via python-dotenv (no manual export needed)
- Write uk_tokens.yml to config/generated/ (aligned with container volume mount)

Health checks:
- PATRONI_HOSTS and VAULT_HOSTS are now configurable via env vars (comma-separated host:port); no code change needed when node count changes
- REDIS_SENTINEL_HOSTS now correctly parses host:port format; default updated to redis-sentinel:26379
- Fix NameError in check_patroni_cluster() caused by leftover node variable after loop refactor
- Remove verify_ssl=False from Vault check; vault.iklim.co has a valid certificate

Ops:
- Add ops/build-and-push-health-agent.sh for manual bypass of CI pipeline
- Add health-agent/deploy/prod.env template for prod image promotion manifest

Project structure:
- Move .env.example and .env.setup.example to health-agent/env-example/ (root .gitignore excludes health-agent/.env*)
- Add root .gitignore: excludes uk_tokens.yml, __pycache__, .venv, and env files
- Remove health-agent/.gitignore (superseded by root .gitignore)
2026-06-26 18:45:17 +03:00