rawlinp opened a new pull request #5112:
URL: https://github.com/apache/trafficcontrol/pull/5112


   ## What does this PR (Pull Request) do?
   TM should only poll ONLINE/REPORTED/ADMIN_DOWN caches. This PR filters out 
caches that don't have one of those statuses from `monitoring.json`.
   
   ## Which Traffic Control components are affected by this PR?
   
   - Traffic Monitor
   - Traffic Ops
   
   ## What is the best way to verify this PR?
   With caches of status `REPORTED`, `ONLINE`, `ADMIN_DOWN`, and `OFFLINE` in 
TO, snapshot their CDN, then view 
`https://<your-TO-host>/api/3.0/cdns/<your-CDN-name>/configs/monitoring` and 
verify that it does not contain the `OFFLINE` servers.
   
   ## If this is a bug fix, what versions of Traffic Control are affected?
   - master
   - 4.x
   - 3.x
   
   ## The following criteria are ALL met by this PR
   
   - [x] This PR includes tests
   - [x] Docs not necessary
   - [x] This PR includes an update to CHANGELOG.md
   - [x] This PR includes any and all required license headers
   - [x] This PR ensures that database migration sequence is correct OR this PR 
does not include a database migration
   - [x] This PR **DOES NOT FIX A SERIOUS SECURITY VULNERABILITY** (see [the 
Apache Software Foundation's security 
guidelines](https://www.apache.org/security/) for details)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to