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
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.
'/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
Thanks for the help, probably we will use the grafana to take directly the info
https://grafana.com/tutorials/create-alerts-with-logs/