Skip to content

[Feature Request] Support Subscription Discovery mechanism similar to Target Discovery #877

Description

@vuthinh0301

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions