Branch: refs/heads/2.1.0
Home:
https://github.com/tribe29/checkmk
Commit: 3fb03161fcc1a56c47f970fb6ba619c60b569add
https://github.com/tribe29/checkmk/commit/3fb03161fcc1a56c47f970fb6ba619c60…
Author: Simon Meggle <simon.meggle(a)elabit.de>
Date: 2022-10-13 (Thu, 13 Oct 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