To set up a full daily recovery of the Staging server from a full backup of the Production server using scripting, you can use the unattended restore routine provided by InterSystems. This involves using the ^DBREST utility for non-interactive execution. You can write a script to implement unattended restores by calling one of the external entry points:

  1. EXTALL^DBREST - Restores all databases from the backup device.
  2. EXTSELCT^DBREST - Restores selected files from the backup device or restores to a target directory that is different from the source directory.

For detailed steps and examples on how to use these entry points, refer to the documentation on unattended restore using ^DBREST [1].

The /api/monitor/alerts endpoint in InterSystems IRIS returns alerts in JSON format, which is not compatible with Prometheus. This endpoint was originally created for the now-discontinued System Alerting & Monitoring tool and does not map to any concept related to Prometheus. To integrate these alerts into your monitoring setup, consider using a log monitoring tool like Loki to process the alerts.log file [1].

For monitoring metrics, the /api/monitor/metrics endpoint provides metrics in a format compatible with Prometheus. Ensure that this endpoint is enabled and accessible by Prometheus. You can configure Prometheus to scrape this endpoint to gather metrics from your IRIS instance [2][3].