Written by

Support Leader at BPlus Tecnologia
Question Guilherme Silva · Mar 18, 2025

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

Comments

Brett Saviano · Mar 18, 2025

The /api/monitor/alerts endpoint was created to allow for text-based alerts to be consumed by the now-discontinued System Alerting & Monitoring tool. It does not map to any concept related to Prometheus. For more information, see this documentation page.

0
Stav Bendarsky · Mar 19, 2025

'/api/monitor/alerts' endpoints returns alerts in JSON fomrat, which isn't compatible with Prometheus.

To integrate these alerts into your monitoring setup, consider using a log monitoring tool like Loki to process the 'alerts.log' file

0