diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/DocumentLevelMonitorRunner.kt b/alerting/src/main/kotlin/org/opensearch/alerting/DocumentLevelMonitorRunner.kt index a0d661465..5fec8df7e 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/DocumentLevelMonitorRunner.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/DocumentLevelMonitorRunner.kt @@ -742,7 +742,9 @@ object DocumentLevelMonitorRunner : MonitorRunner() { } if (response.status() !== RestStatus.OK) { - throw IOException("Failed to search percolate index: $queryIndex. Response status is ${response.status()}") + throw IOException( + "Monitor ${monitor.id}: Failed to search percolate index: $queryIndex. Response status is ${response.status()}" + ) } return response.hits }