diff --git a/charts/monitoring-config/rules/fastly.yaml b/charts/monitoring-config/rules/fastly.yaml new file mode 100644 index 0000000000..3fc0a94e35 --- /dev/null +++ b/charts/monitoring-config/rules/fastly.yaml @@ -0,0 +1,24 @@ +groups: + - name: FastlyAlerts + rules: + - record: global:fastly_global_bandwidth_bytes:rate1d + expr: | + sum( + increase(fastly_rt_body_size_total[1d]) + + increase(fastly_rt_resp_header_bytes_total[1d]) + + increase(fastly_rt_bereq_body_bytes_total[1d]) + + increase(fastly_rt_bereq_header_bytes_total[1d]) + ) + + - alert: HighBandwidthUsage + expr: global:fastly_global_bandwidth_bytes:rate1d > 5.5 * (10 ^ 12) + for: 1m + labels: + severity: warning + destination: slack-platform-engineering + annotations: + summary: Fastly global bandwidth exceeds typical daily usage + description: >- + The global daily bandwidth usage rate for Fastly services has + exceeded the expected threshold of 5.5 TB. This may indicate + abnormal traffic patterns.