Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Add or update runbooks for alarms of anomalous behavior (#3420)
Krystle Salazarcd869bf659e5
diff --git a/documentation/meta/monitoring/runbooks/api_request_count_above_threshold.md b/documentation/meta/monitoring/runbooks/api_request_count_anomaly.mdsimilarity index 70%rename from documentation/meta/monitoring/runbooks/api_request_count_above_threshold.mdrename to documentation/meta/monitoring/runbooks/api_request_count_anomaly.mdindex 332c7afaf..4a2106103 100644--- a/documentation/meta/monitoring/runbooks/api_request_count_above_threshold.md+++ b/documentation/meta/monitoring/runbooks/api_request_count_anomaly.md@@ -1,4 +1,4 @@-# Run Book: API Production Request Count above threshold+# Run Book: API Production Request Count anomalously high```{admonition} MetadataStatus: **Unstable**@@ -6,7 +6,7 @@ Status: **Unstable**Maintainer: @krysaldbAlarm link:-- <https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#alarmsV2:alarm/API+Production+Request+Count+above+threshold?>+- <https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#alarmsV2:alarm/API+Production+Request+Count+anomalously+high?>```## Severity Guide@@ -19,10 +19,10 @@ future resource scaling depending on the kind of traffic.If the services are strained then the severity is critical, search for the rootcause to prevent more serious outages. If there are no recent obviousintegrations (like the Gutenberg plugin) then follow the run book to [identify-traffic anomalies in Cloudflare][runbook_traffic], to determine whether the-recent traffic is organic or if it comes from a botnet. Find the origin of-requests and evaluate whether it needs to be blocked or if Openverse services-need to adapt to the new demand.+traffic anomalies][runbook_traffic], to determine whether the recent traffic is+organic or if it comes from a botnet. Find the origin of requests and evaluate+whether it needs to be blocked or if Openverse services need to adapt to the new+demand.[runbook_traffic]:https://docs.openverse.org/meta/monitoring/traffic/runbooks/identifying-and-blocking-traffic-anomalies.htmldiff --git a/documentation/meta/monitoring/runbooks/api_thumbnails_avg_response_time_above_threshold.md b/documentation/meta/monitoring/runbooks/api_thumbnails_avg_response_time_above_threshold.mdindex eada9a9bf..4cd496397 100644--- a/documentation/meta/monitoring/runbooks/api_thumbnails_avg_response_time_above_threshold.md+++ b/documentation/meta/monitoring/runbooks/api_thumbnails_avg_response_time_above_threshold.md@@ -2,7 +2,9 @@```{admonition} MetadataStatus: **Unstable**+Maintainer: @stacimc+Alarm link:- <https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#alarmsV2:alarm/API+Thumbnails+Production+Average+Response+Time+above+threshold>```diff --git a/documentation/meta/monitoring/runbooks/api_thumbnails_avg_response_time_anomaly.md b/documentation/meta/monitoring/runbooks/api_thumbnails_avg_response_time_anomaly.mdindex 4ab28f149..8e6602b0b 100644--- a/documentation/meta/monitoring/runbooks/api_thumbnails_avg_response_time_anomaly.md+++ b/documentation/meta/monitoring/runbooks/api_thumbnails_avg_response_time_anomaly.md@@ -2,7 +2,9 @@```{admonition} MetadataStatus: **Unstable**+Maintainer: @stacimc+Alarm link:- <https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#alarmsV2:alarm/API+Thumbnails+Production+Average+Response+Time+anomalously+high>```diff --git a/documentation/meta/monitoring/runbooks/api_thumbnails_p99_response_time_above_threshold.md b/documentation/meta/monitoring/runbooks/api_thumbnails_p99_response_time_above_threshold.mdindex 31a7eab1a..0cf613d56 100644--- a/documentation/meta/monitoring/runbooks/api_thumbnails_p99_response_time_above_threshold.md+++ b/documentation/meta/monitoring/runbooks/api_thumbnails_p99_response_time_above_threshold.md@@ -2,7 +2,9 @@```{admonition} MetadataStatus: **Unstable**+Maintainer: @stacimc+Alarm link:- <https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#alarmsV2:alarm/API+Thumbnails+Production+P99+Response+Time+above+threshold>```diff --git a/documentation/meta/monitoring/runbooks/api_thumbnails_p99_response_time_anomaly.md b/documentation/meta/monitoring/runbooks/api_thumbnails_p99_response_time_anomaly.mdindex 65ca50bdc..440af3e7a 100644--- a/documentation/meta/monitoring/runbooks/api_thumbnails_p99_response_time_anomaly.md+++ b/documentation/meta/monitoring/runbooks/api_thumbnails_p99_response_time_anomaly.md@@ -2,7 +2,9 @@```{admonition} MetadataStatus: **Unstable**+Maintainer: @stacimc+Alarm link:- <https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#alarmsV2:alarm/API+Thumbnails+Production+P99+Response+Time+anomalously+high>```diff --git a/documentation/meta/monitoring/runbooks/api_thumbnails_request_count_anomaly.md b/documentation/meta/monitoring/runbooks/api_thumbnails_request_count_anomaly.mdindex a80595f87..255c43db2 100644--- a/documentation/meta/monitoring/runbooks/api_thumbnails_request_count_anomaly.md+++ b/documentation/meta/monitoring/runbooks/api_thumbnails_request_count_anomaly.md@@ -2,7 +2,9 @@```{admonition} MetadataStatus: **Unstable**+Maintainer: @krysaldb+Alarm link:- <https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#alarmsV2:alarm/API+Thumbnails+Production+Request+Count+anomalously+high>```diff --git a/documentation/meta/monitoring/runbooks/index.md b/documentation/meta/monitoring/runbooks/index.mdindex 2145a9dd4..13b661174 100644--- a/documentation/meta/monitoring/runbooks/index.md+++ b/documentation/meta/monitoring/runbooks/index.md@@ -12,13 +12,13 @@ that can be a good resource when writing a new one.```{toctree}:titlesonly:-api_request_count_above_thresholdapi_http_2xx_under_thresholdapi_http_5xx_above_thresholdapi_avg_response_time_above_thresholdapi_avg_response_time_anomalyapi_p99_response_time_above_thresholdapi_p99_response_time_anomaly+api_request_count_anomalyapi_thumbnails_http_2xx_under_thresholdapi_thumbnails_http_5xx_above_thresholdapi_thumbnails_request_count_anomaly@@ -26,10 +26,12 @@ api_thumbnails_avg_response_time_above_thresholdapi_thumbnails_avg_response_time_anomalyapi_thumbnails_p99_response_time_above_thresholdapi_thumbnails_p99_response_time_anomaly-nuxt_request_count-nuxt_2xx_under_threshold-nuxt_5xx_above_threshold+nuxt_http_2xx_under_threshold+nuxt_http_5xx_above_thresholdnuxt_avg_response_time_above_threshold+nuxt_avg_response_time_anomalynuxt_p99_response_time_above_threshold+nuxt_p99_response_time_anomaly+nuxt_request_count_anomalyunhealthy_ecs_hosts```diff --git a/documentation/meta/monitoring/runbooks/nuxt_avg_response_time_above_threshold.md b/documentation/meta/monitoring/runbooks/nuxt_avg_response_time_above_threshold.mdindex c3874021e..538abb687 100644--- a/documentation/meta/monitoring/runbooks/nuxt_avg_response_time_above_threshold.md+++ b/documentation/meta/monitoring/runbooks/nuxt_avg_response_time_above_threshold.md@@ -2,7 +2,9 @@```{admonition} MetadataStatus: **Unstable**+Maintainer: @obulat+Alarm link:- <https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#alarmsV2:alarm/Nuxt+Production+Average+Response+Time+above+threshold?>```diff --git a/documentation/meta/monitoring/runbooks/nuxt_avg_response_time_anomaly.md b/documentation/meta/monitoring/runbooks/nuxt_avg_response_time_anomaly.mdnew file mode 100644index 000000000..338a51f55--- /dev/null+++ b/documentation/meta/monitoring/runbooks/nuxt_avg_response_time_anomaly.md@@ -0,0 +1,31 @@+# Run Book: Nuxt Production Average Response Time anomalously high++```{admonition} Metadata+Status: **Unstable**++Maintainer: @obulat++Alarm link:+- <https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#alarmsV2:alarm/Nuxt+Production+Average+Response+Time+anomalously+high?>+```++## Severity Guide++Confirm that there is not a total outage of the service. If not, the severity is+likely low. Check for the request count and general network activity. If+abnormally high, refer to the [traffic analysis run book][traffic_runbook] to+identify and block any malicious traffic. If not, then check for a recent+deployment that may have introduced a problem, and [rollback][rollback_docs] to+the previous version if necessary.++[traffic_runbook]:+ /meta/monitoring/traffic/runbooks/identifying-and-blocking-traffic-anomalies.md+[rollback_docs]: /general/deployment.md#rollbacks++## Historical false positives++Nothing registered to date.++## Related incident reports++Nothing registered to date.diff --git a/documentation/meta/monitoring/runbooks/nuxt_2xx_under_threshold.md b/documentation/meta/monitoring/runbooks/nuxt_http_2xx_under_threshold.mdsimilarity index 95%rename from documentation/meta/monitoring/runbooks/nuxt_2xx_under_threshold.mdrename to documentation/meta/monitoring/runbooks/nuxt_http_2xx_under_threshold.mdindex 1f7d1d97e..6fbb61e49 100644--- a/documentation/meta/monitoring/runbooks/nuxt_2xx_under_threshold.md+++ b/documentation/meta/monitoring/runbooks/nuxt_http_2xx_under_threshold.md@@ -1,4 +1,4 @@-# Run Book: Nuxt 2XX request count under threshold+# Run Book: Nuxt 2XX responses count under threshold```{admonition} MetadataStatus: **Unstable**diff --git a/documentation/meta/monitoring/runbooks/nuxt_5xx_above_threshold.md b/documentation/meta/monitoring/runbooks/nuxt_http_5xx_above_threshold.mdsimilarity index 96%rename from documentation/meta/monitoring/runbooks/nuxt_5xx_above_threshold.mdrename to documentation/meta/monitoring/runbooks/nuxt_http_5xx_above_threshold.mdindex 7d3705ac9..542862d1e 100644--- a/documentation/meta/monitoring/runbooks/nuxt_5xx_above_threshold.md+++ b/documentation/meta/monitoring/runbooks/nuxt_http_5xx_above_threshold.md@@ -1,4 +1,4 @@-# Run Book: Nuxt 5XX request count above threshold+# Run Book: Nuxt 5XX responses count above threshold```{admonition} MetadataStatus: **Unstable**diff --git a/documentation/meta/monitoring/runbooks/nuxt_p99_response_time_above_threshold.md b/documentation/meta/monitoring/runbooks/nuxt_p99_response_time_above_threshold.mdindex dea1ea3d4..f9a0bf511 100644--- a/documentation/meta/monitoring/runbooks/nuxt_p99_response_time_above_threshold.md+++ b/documentation/meta/monitoring/runbooks/nuxt_p99_response_time_above_threshold.md@@ -1,8 +1,10 @@-# Run Book: Nuxt Production Average Response Time above threshold+# Run Book: Nuxt Production P99 Response Time above threshold```{admonition} Metadata-Status: **Unstable**+Status: **Disabled** until Nuxt request logging is added.+Maintainer: @obulat+Alarm link:- <https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#alarmsV2:alarm/Nuxt+Production+P99+Response+Time+above+threshold?>```diff --git a/documentation/meta/monitoring/runbooks/nuxt_p99_response_time_anomaly.md b/documentation/meta/monitoring/runbooks/nuxt_p99_response_time_anomaly.mdnew file mode 100644index 000000000..9c76aa430--- /dev/null+++ b/documentation/meta/monitoring/runbooks/nuxt_p99_response_time_anomaly.md@@ -0,0 +1,31 @@+# Run Book: Nuxt Production P99 Response Time anomalously high++```{admonition} Metadata+Status: **Disabled** until Nuxt request logging is added.++Maintainer: @obulat++Alarm link:+- <https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#alarmsV2:alarm/Nuxt+Production+P99+Response+Time+anomalously+high>+```++## Severity Guide++Confirm that there is not a total outage of the service. If not, the severity is+likely low. Check for the request count and general network activity. If+abnormally high, refer to the [traffic analysis run book][traffic_runbook] to+identify and block any malicious traffic. If not, then check for a recent+deployment that may have introduced a problem, and [rollback][rollback_docs] to+the previous version if necessary.++[traffic_runbook]:+ /meta/monitoring/traffic/runbooks/identifying-and-blocking-traffic-anomalies.md+[rollback_docs]: /general/deployment.md#rollbacks++## Historical false positives++Nothing registered to date.++## Related incident reports++Nothing registered to date.diff --git a/documentation/meta/monitoring/runbooks/nuxt_request_count.md b/documentation/meta/monitoring/runbooks/nuxt_request_count_anomaly.mdsimilarity index 89%rename from documentation/meta/monitoring/runbooks/nuxt_request_count.mdrename to documentation/meta/monitoring/runbooks/nuxt_request_count_anomaly.mdindex 0573055fa..359f429dc 100644--- a/documentation/meta/monitoring/runbooks/nuxt_request_count.md+++ b/documentation/meta/monitoring/runbooks/nuxt_request_count_anomaly.md@@ -1,4 +1,4 @@-# Run Book: Nuxt request count above threshold+# Run Book: Nuxt Request Count anomalously high```{admonition} MetadataStatus: **Unstable**@@ -6,7 +6,7 @@ Status: **Unstable**Maintainer: @dhruvkbAlarm link:-- [production-nuxt](https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#alarmsV2:alarm/Nuxt+Production+request+count+above+threshold)+- [production-nuxt](https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#alarmsV2:alarm/Nuxt+Production+Request+Count+anomalously+high)```## Severity guide