Question
· Mar 18

Prometheus + Iris 2022.1

Hi, 

i'm with a trouble to take the api/monitor/alerts using prometheus.

i'm using prometheus 3.2.1 with IRIS 2022.1, the api metrics is working fine, but with the alerts, i'm receiving the following error:
 

and this is the answer in the request:

it apears the iris is not using the right way to answer the OpenMetrics the way Prometheus want.

Someone already see this?

Product version: IRIS 2022.1
Discussion (2)1
Log in or sign up to continue

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].