Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: d1a08e0538264a51085b71a2d3e039bba8e3a754
https://github.com/tribe29/checkmk/commit/d1a08e0538264a51085b71a2d3e039bba…
Author: Simon Meggle <simon.meggle(a)elabit.de>
Date: 2022-11-09 (Wed, 09 Nov 2022)
Changed paths:
A .werks/14561
M cmk/special_agents/agent_prometheus.py
Log Message:
-----------
14561 FIX Prometheus: allow operation of special agent without querying targets
endpoint
Previously, the Prometheus special agent would query the endpoint
`/api/v1/targets` regardless of what was configured in the Prometheus
rule. This was an additional burden on users, which did not specify any
scrape targets and therefore do not need this endpoint. E.g., it can
lead to additional timeouts. With this werk, the endpoint
`/api/v1/targets` is only queried if necessary.
CMK-11288
Change-Id: I5a0bed07f97b1217a8b2d632dd5abe82527082ea