Description
Currently, gnmic supports dynamic Target Discovery (via file, consul, docker, k8s, etc.), which allows targets to be added or removed automatically. However, Subscriptions are still static and require a full instance restart or manual configuration changes whenever we need to update what paths or features we want to subscribe to.
In a dynamic infrastructure, subscription requirements change frequently. Forcing a restart of gnmic just to update subscriptions introduces operational risks and causes data gaps for other active targets.
Expected Behavior / Proposal
I would like to propose a Subscription Discovery feature, similar to how Target Discovery works:
- Dynamic Loading:
gnmic could watch a directory, a file, or a key-value store for subscription configurations.
- Hot Reload/Update: When a new subscription is defined or an existing one is modified/deleted via the discovery source,
gnmic should dynamically apply the changes to the relevant targets without restarting the entire process.
This enhancement would make subscription management as flexible and cloud-native as target management. Thank you for considering this feature!
Description
Currently,
gnmicsupports dynamic Target Discovery (via file, consul, docker, k8s, etc.), which allows targets to be added or removed automatically. However, Subscriptions are still static and require a full instance restart or manual configuration changes whenever we need to update what paths or features we want to subscribe to.In a dynamic infrastructure, subscription requirements change frequently. Forcing a restart of
gnmicjust to update subscriptions introduces operational risks and causes data gaps for other active targets.Expected Behavior / Proposal
I would like to propose a Subscription Discovery feature, similar to how Target Discovery works:
gnmiccould watch a directory, a file, or a key-value store for subscription configurations.gnmicshould dynamically apply the changes to the relevant targets without restarting the entire process.This enhancement would make subscription management as flexible and cloud-native as target management. Thank you for considering this feature!