Where are monitor definitions stored?

Versions 2.19.2

Describe the issue:

I’m about to upgrade from 2.19.2 to 3.2.0 and I want to make sure to backup the monitor definitions that we have. I see that all of the notifications settings are in .opensearch-notifications-config, but I don’t see any special index related to monitors. I have multiple clusters, with their own unique monitors, so I’d like to find a solution beyond just downloading the JSON for every single monitor.

Where should I be looking for this data?

@reshippie The monitors configuration is stored in system index .opendistro-alerting-config

You need to use admin certificate to be able to view the stored documents, see the following example command:

curl --cacert config/root-ca.pem --cert config/kirk.pem --key config/kirk-key.pem "https://localhost:9200/.opendistro-alerting-config/_search?pretty"

Hope this helps

That helps a great deal.

I use Cerebro, which I know hasn’t been updated in years, mostly to check on the cluster status and node health.
It also lists all of the indices and the # of documents in each one. I guess without the cert it can’t even get a count.

Thank you for your help and patience. I promise to start doing things with the certs before I ask more questions here.

2 Likes