Greetings,
Hopefully this is a right place for a feature request as long as I found no specific topic for the same.
As of now the behavior of the Group prototype option in the Discovery Rule Host prototype is the following: if a group defined by the Group prototype does not exist - create the one and add host to it, if a group does exist - raise an error and do nothing.
I would kindly request you to consider a possibility to extend Group prototype option as following: if a group defined by the Group prototype does not exist - create the one and add host to it, if the group defined in Group prototype does exist - just add host to that group, if group does exist and at the next cycle of Discovery no hosts that included in the group are identified - delete the group. This could be implemented as a checkbox in Groups tab against entries for Group prototypes and if checked follow the extended behavior, while if unchecked follow the existing one.
I personally faced the need for such an extension while designing monitoring for containers orchestrated by the Nomad. There is a number of identical container instances that are covering single service and this containers could run on any subset of the physical hosts presenting the cluster. While it was relatively easy to create Host prototype and discover all the containers, the lack of requested functionality does not allow to put all of them into the single group at discovery and as a result neither agg checks, like number of containers running for a particular service, nor option to show all container instances at a single map using Group functionality of Maps are available.
Thank you.
Hopefully this is a right place for a feature request as long as I found no specific topic for the same.
As of now the behavior of the Group prototype option in the Discovery Rule Host prototype is the following: if a group defined by the Group prototype does not exist - create the one and add host to it, if a group does exist - raise an error and do nothing.
I would kindly request you to consider a possibility to extend Group prototype option as following: if a group defined by the Group prototype does not exist - create the one and add host to it, if the group defined in Group prototype does exist - just add host to that group, if group does exist and at the next cycle of Discovery no hosts that included in the group are identified - delete the group. This could be implemented as a checkbox in Groups tab against entries for Group prototypes and if checked follow the extended behavior, while if unchecked follow the existing one.
I personally faced the need for such an extension while designing monitoring for containers orchestrated by the Nomad. There is a number of identical container instances that are covering single service and this containers could run on any subset of the physical hosts presenting the cluster. While it was relatively easy to create Host prototype and discover all the containers, the lack of requested functionality does not allow to put all of them into the single group at discovery and as a result neither agg checks, like number of containers running for a particular service, nor option to show all container instances at a single map using Group functionality of Maps are available.
Thank you.