uselagoon / lagoon-images

This repository builds the images used in Lagoon and local development environments
Apache License 2.0
27 stars 33 forks source link

Update fast health check monitoring user agent matches #710

Open seanhamlin opened 1 year ago

seanhamlin commented 1 year ago

I spot a few issues at present https://github.com/uselagoon/lagoon-images/blob/main/images/nginx/helpers/90_healthz_fast_check.conf.disabled#L3

if ( $http_user_agent ~* "StatusCake|Pingdom|Site25x7|Uptime|nagios" ) {

There is a typo with Site25x7, this should be Site24x7.

Also, we should likely force the new amazee.io monitoring bot through this too. so perhaps

if ( $http_user_agent ~* "StatusCake|Pingdom|Site24x7|Uptime|nagios|[Mm]onitoring" ) {

This would catch the following user agents

amazee.io-monitoring - clusterX - support@amazee.io
Microsoft Monitoring Agent 10.22.10056.0
Splunk Website Monitoring (+https://splunkbase.splunk.com/app/1493/)
tobybellwood commented 1 year ago

:oof: - yup this makes sense!