Repository navigation
Tweak monitoring to reduce false positives - #154
Open
tunetheweb wants to merge 1 commit into
Open
tunetheweb wants to merge 1 commit into
tunetheweb wants to merge 1 commit into
Conversation
max-ostapenko
requested changes
Sep 30, 2026
Comment on lines
+159
to
+160
| -httpRequest.userAgent =~ "(?i)(curl|bot|crawler|spider|slurp|archiver|scraper|research|baiduspider|googlebot|facebookexternalhit|meta-externalagent|mj12bot|petalbot|ccbot|censysinspect|worker|python|http-|-http)" | ||
| -protoPayload.userAgent =~ "(?i)(curl|bot|crawler|spider|slurp|archiver|scraper|research|baiduspider|googlebot|facebookexternalhit|meta-externalagent|mj12bot|petalbot|ccbot|censysinspect|worker|python|http-|-http)" |
Contributor
There was a problem hiding this comment.
This hides real errors on /v1/technologies and /v1/cwv-distribution. I've reviewed user-agent list many times but it's still growing. I now think it's easier to fix server errors. Fixed in #156
| (resource.type = "cloud_run_revision" AND resource.labels.service_name = "report-api-prod") | ||
| OR logName = "projects/httparchive/logs/requests" | ||
| severity >= WARNING | ||
| httpRequest.requestUrl =~ "https:\/\/cdn\.httparchive\.org" |
Contributor
There was a problem hiding this comment.
This is mostly redundant.
The only IP-based hit happened before I added enforce_valid_host rule. Since then, IP requests get a 403 at the load balancer - denied_by_security_policy is already excluded.
Maybe add include_host = true to CDN cache key additionally, to avoid them hitting cache. Or should we move this policy to edge?
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.