Anomaly detection settings on multiple host groups

I need to set the same settings on multiple hostgroups (a lot, too much to be doing it manually).

I thought about using Monaco since it support Go templating.

But that seems to be limited to the json template files and the scope is set in the yaml config file. So that would mean copy/pasting dozens of time the same lines and changing the scope each time.
As a temporary workaround I used a quick python script to generate the the config.yaml file.

As we regularly have new hosts monitored that leads to new hostgroups added to the same management zone I’m looking for a solution that can be easily reusable or even automated.

Is there a better way to do this quickly ?

Hi,

If you Monaco to apploy configuration in host group level, you need to know those host groups ids. I would say:

  • If host groups are not static, you need to create your script.
  • If host group are static, or you can add them manually, you can use Monaco apply using host group id.

Best regards

As most of the concerned users have no knowledge of git and cicd pipelines we ended up choosing a “reference” host group that will serve has a template and use a manually triggered workflow to propagate selected configuration elements to all the other hostgroups.