Skip to content

Commit

Permalink
Added:
Browse files Browse the repository at this point in the history
+ Artifact Registry
+ Cloud Endpoints
  • Loading branch information
DazWilkin committed Feb 9, 2022
1 parent c46c6cd commit a585fc9
Showing 1 changed file with 30 additions and 16 deletions.
46 changes: 30 additions & 16 deletions rules.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,36 @@
groups:
- name: GCPExporter
rules:
- alert: GCPArtifactRegistryRepositories
expr: min_over_time(gcp_artifact_registry_repositories{}[15m]) > 0
for: 60m
labels:
severity: page
annotations:
summary: GCP Artifact Registry repositories exist
- alert: GCPCloudEndpointsServices
expr: min_over_time(gcp_cloud_endpoints_services{}[15m]) > 0
for: 60m
labels:
severity: page
annotations:
summary: GCP Cloud Endpoints services deployed
- alert: GCPCloudFunctionsRunning
# `15m` matches the prometheus.yml scrape_interval
expr: min_over_time(gcp_cloud_functions_functions{}[15m]) > 0
for: 60m
labels:
severity: page
annotations:
summary: GCP Cloud Functions running
- alert: GCPCloudRunServicesRunning
# `15m` matches the prometheus.yml scrape_interval
expr: min_over_time(gcp_cloud_run_services{}[15m]) > 0
for: 60m
labels:
severity: page
annotations:
summary: GCP Cloud Run services running
- alert: GCPInstancesRunning
expr: gcp_compute_engine_instances{} > 0
for: 60m
Expand Down Expand Up @@ -30,22 +60,6 @@ groups:
# severity: warning
# annotations:
# summary: GCP Storage buckets exist
- alert: GCPCloudRunServicesRunning
# `15m` matches the prometheus.yml scrape_interval
expr: min_over_time(gcp_cloudrun_services{}[15m]) > 0
for: 60m
labels:
severity: warning
annotations:
summary: GCP Cloud Run services running
- alert: GCPCloudFunctionsRunning
# `15m` matches the prometheus.yml scrape_interval
expr: min_over_time(gcp_cloudfunctions_functions{}[15m]) > 0
for: 60m
labels:
severity: warning
annotations:
summary: GCP Cloud Functions running
- name: GCPStatus
rules:
- alert: GCPStatusServices
Expand Down

0 comments on commit a585fc9

Please sign in to comment.