Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API v1 monitoring.json Profile Parameters no longer contain health.threshold.* #5754

Closed
zrhoffman opened this issue Apr 19, 2021 · 1 comment · Fixed by #5755
Closed

API v1 monitoring.json Profile Parameters no longer contain health.threshold.* #5754

zrhoffman opened this issue Apr 19, 2021 · 1 comment · Fixed by #5755
Labels
high impact impacts the basic function, deployment, or operation of a CDN regression bug a bug in existing functionality introduced by a new version Traffic Monitor related to Traffic Monitor Traffic Ops related to Traffic Ops
Milestone

Comments

@zrhoffman
Copy link
Member

zrhoffman commented Apr 19, 2021

I'm submitting a ...

  • bug report

Traffic Control components affected ...

  • Traffic Monitor
  • Traffic Ops

Current behavior:

The /api/1.3/cdns/{name}/configs/monitoring.json and /api/2.0/cdns/{name}/configs/monitoring.json return Profiles with Health Threshold parameters structured differently than ATC 4.1.1 and before had them in. What they look like at 473d9c2:

          "health_threshold": {
            "availableBandwidthInKbps": {
              "Comparator": ">",
              "Val": 1750000
            },
            "loadavg": {
              "Comparator": "<",
              "Val": 25
            },
            "queryTime": {
              "Comparator": "<",
              "Val": 1000
            }

Expected behavior:

The /api/1.3/cdns/{name}/configs/monitoring.json and /api/2.0/cdns/{name}/configs/monitoring.json should use the same format as previous releases used:

"health.threshold.availableBandwidthInKbps": ">1750000",
"health.threshold.loadavg": "25.0",
"health.threshold.queryTime": 1000,

Minimal reproduction of the problem with instructions:

  1. GET /api/1.3/cdns/{name}/configs/monitoring.json
  2. Notice the Health Threshold Paramters are not in the expected format given above.

Anything else:

@zrhoffman zrhoffman added Traffic Ops related to Traffic Ops Traffic Monitor related to Traffic Monitor regression bug a bug in existing functionality introduced by a new version high impact impacts the basic function, deployment, or operation of a CDN labels Apr 19, 2021
@zrhoffman
Copy link
Member Author

Adding major label since this prevents Traffic Monitor from offlining caches whose available bandwidth does not meet health.threshold.availableBandwidthInKbps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high impact impacts the basic function, deployment, or operation of a CDN regression bug a bug in existing functionality introduced by a new version Traffic Monitor related to Traffic Monitor Traffic Ops related to Traffic Ops
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant