You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.
Currently if you run gnmic in docker or kubernetes, the only way to reload the configuration is by restarting the container/pod.
This could be triggered the same way as prometheus allows you to reload a config file, e.g., sending a SIGHUP to the process or sending a POST request to a url.
The text was updated successfully, but these errors were encountered:
This has been brought up before, the complexity here is in going through the targets and figuring out if there was any change, reestablishing the gRPC connection if needed, updating subscriptions if needed, etc...
Prometheus pulls data from targets, so it's just a matter of using the new configuration on the next scrape.
It is more simple to just restart the gnmic instance, considering that there would be other instances to take over its targets in case something goes wrong.
Open to other opinions or a better way of looking at this.
Maybe in case of Kubernetes, it would be easier to implement a readiness check so that Kubernetes only restarts another pod after the first pod is ready and is scraping all it's assigned targets?
Can you details what you mean by "first pod" here ?
What would be the criteria for a pod to be "ready" ?
It would be helpful if you can details which configuration you want to update dynamically, without restarting
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently if you run gnmic in docker or kubernetes, the only way to reload the configuration is by restarting the container/pod.
This could be triggered the same way as prometheus allows you to reload a config file, e.g., sending a SIGHUP to the process or sending a POST request to a url.
The text was updated successfully, but these errors were encountered: