Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 65c95d619b0a29fd4667f3e1d67f2137d7a86917
https://github.com/tribe29/checkmk/commit/65c95d619b0a29fd4667f3e1d67f2137d…
Author: Max Linke <max.linke(a)tribe29.com>
Date: 2022-02-15 (Tue, 15 Feb 2022)
Changed paths:
M cmk/base/plugins/agent_based/gcp_gcs.py
M cmk/special_agents/agent_gcp.py
M tests/unit/cmk/base/plugins/agent_based/test_gcp_gcs.py
M tests/unit/cmk/special_agents/test_agent_gcp.py
Log Message:
-----------
Add resource discovery to gcp special agent
GCP metrics are stored in a more modern timeseries database. I will only
receive data if the database has entries in the requested interval. I.e.
if I do not download objects from a bucket the send_bytes_count metric
will not contain any values, we default to 0 in the check plugin.
For buckets this is still OK because the object_count metric is always
returned. Note this is only true 24h after creation of the bucket, as
this metric is only updated once every 24h.
Other gcp resources like cloud functions however do not return
any metric if the function is not used. Now I can just collect
information on the cloud functions and add them to the section.
Change-Id: I5337df11ee0d2e32f04799299552375e229b97f6