-
Notifications
You must be signed in to change notification settings - Fork 126
Groups parameter not working #792
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingsourcesWhat sources and in what way to monitorWhat sources and in what way to monitor
Description
Describe the bug
PW_GROUP or -g parameter does not work
To Reproduce
Steps to reproduce the behavior:
- Create sources config with at leat two group for databases
- Run instance or instances of pgwatch with PW_GROUP set to database group
Expected behavior
PGWATCH will monitor only / connect to only sources with selected group
Additional context
Pgwatch connects to all instances inside sources. While looking into source code I've found out that internal/sources/cmdopts.go contains Groups inside CmdOpts struct, but Groups are never used elsewhere
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingsourcesWhat sources and in what way to monitorWhat sources and in what way to monitor