Migrating Elasticsearch Watchers to OpenSearch Monitor

Hello everyone!

I am a Jr SWE looking for advice/help on migrating from Elasticsearch (ES) to OpenSearch(OS). Specifically I am wondering if there is a way to take current watchers in ES and migrate them to OS monitors.

I am aware of this github topic Alerting Monitors should be exportable/importable objects · Issue #120 · opensearch-project/alerting · GitHub
from my understanding there is no way to import into OS. at least not yet.

Has anyone found a work around for getting watchers integrated into OpenSearch?

  • I am still new to this project so I apologize in advance if what I am asking is not clear or if additional information is needed.

Thanks in advance for any help!

Good afternoon, were you able to figure out this issue?

Sort of, I ended up writing two separate scripts to do this. both in python

the first went to elastic and used the API to pull all the watchers and save them in a json.

It formatted them as a key value pair with the key being the watcher and the value being the json of the watcher

the second script opened the json of the watchers and performed all the translations of watchers to opensearch monitors. It took a while and was pretty clunky at first but it worked for our use case.