Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic config loading for gatus #15

Open
rouke-broersma opened this issue Sep 28, 2024 · 2 comments
Open

Dynamic config loading for gatus #15

rouke-broersma opened this issue Sep 28, 2024 · 2 comments

Comments

@rouke-broersma
Copy link

Would you be interested in making the gatus config loading dynamic? Many helm projects such as grafana use the kiwigrid config loader sidecar to dynamically load config from configmaps and secrets. I am planning to add this to my own gatus deployment. If you're interested I can contribute this here as an option.

@TwiN
Copy link
Owner

TwiN commented Oct 22, 2024

Gatus should support dynamic config loading (hot loading) out of the box

@rouke-broersma
Copy link
Author

rouke-broersma commented Oct 22, 2024

Gatus should support dynamic config loading (hot loading) out of the box

Yes gatus supports this but the Helm chart does not assist with this. What the kiwigrid sidecar does is watch a namespace for configmaps and secrets and place those in q specific folder within a volume. Combined with the composable dynamic configuration gatus itself already supports this would make it possible to deploy a new config map in the cluster for a new endpoint and this automatically being picked up by the sidecar, placed in the config dir and processed by gatus. I have already implemented this in my homelab.

See: https://github.com/broersma-forslund/homelab/blob/main/apps%2Fmonitoring%2Fgatus%2Fvalues.yaml

And how it's used: https://github.com/broersma-forslund/homelab/blob/main/apps%2Fcluster%2Fargocd%2Ftemplates%2Fgatus-monitoring-cm.yaml

It's a similar idea to prometheus operator ServiceMonitor but without needing an operator and CRDs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants