Skip to content

Commit

Permalink
Add alert on high bandwidth usage for Fastly
Browse files Browse the repository at this point in the history
This based on historical usage and an initial threshold for when to
alert on high bandwidth.
  • Loading branch information
theseanything committed Jan 8, 2025
1 parent 1e32e9a commit 0f0f194
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions charts/monitoring-config/rules/fastly.yaml
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 0f0f194

Please sign in to comment.