-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert Kubernetes cronjob instrumentation (#4293)
As far as Kubernetes cronjobs go, successful terminations can be obtained through log base metrics in GCP, with the following query: ``` jsonPayload.involvedObject.name =~ "${cronjob_name}" jsonPayload.message = "Job completed" resource.type="k8s_cluster" ``` This metric suffices to alert on, since the abscence of successful runs for 24h suffices to signal that a cron is broken. It is obtained from kubernetes events (kubectl get events), so we can rely on the Kubernetes control plane for cronjob instrumentation instead of rolling our own. Thus, this PR will revert the previous metrics added to Kubernetes cronjobs, for the sake of simplifying the codebase.
- Loading branch information
1 parent
ed73c3f
commit 9fd8a61
Showing
5 changed files
with
54 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters