Central Watcherconfig File for multiple Watchers

Is it possible to have a central script where all the Watcherconfigs e.g threshold, triggerinterval... are saved and accessible for multiple watchers. Similar to the possibility to have the condition in a single script. If so, how can that be done and where can that be uploaded?

   {
	"metadata": {
		"name": "name",
		"watcherconfig": {
			"trigger_interval_unit": "m",
			"agg_type": "avg",
			"time_field": "@timestamp",
			"trigger_interval_size": 5,
			"term_size": 5,
			"time_window_unit": "d",
			"threshold_comparator": "<",
			"term_field": null,
			"index": ["index*"],
			"time_window_size": 1,
			"threshold": 0.5,
			"agg_field": null
		}
	}}

Hey,

this is currently not possible. You will need to put this in every watch. Maybe a deployment tool can help you with scripting those watches together. I created a prototype some time ago, that may help you to get some more ideas about that.

--Alex

1 Like

Thank you I'll check this out.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.