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

TM UI and /api/cache-statuses reports aggregate bandwidth_kbps as 0 unless interfaces are monitored #5558

Closed
rawlinp opened this issue Feb 22, 2021 · 1 comment · Fixed by #5567
Assignees
Labels
bug something isn't working as intended Traffic Monitor related to Traffic Monitor

Comments

@rawlinp
Copy link
Contributor

rawlinp commented Feb 22, 2021

I'm submitting a ...

  • bug report

Traffic Control components affected ...

  • Traffic Monitor

Current behavior:

In the TM UI, bandwidth is reported as 0 unless the server has interfaces with monitor = true.
Screen Shot 2021-02-22 at 2 08 30 PM

The /api/cache-statuses API also has the same issue:

  "odol-atsmid-oshob-01": {
    "type": "MID",
    "load_average": 1.55,
    "query_time_ms": 1939,
    "health_time_ms": 1,
    "stat_time_ms": 1,
    "stat_span_ms": 5819,
    "health_span_ms": 1940,
    "status": "REPORTED - available",
    "status_poller": "health",
    "bandwidth_kbps": 0,
    "bandwidth_capacity_kbps": 1000000,
    "connection_count": 16,
    "ipv4_available": true,
    "ipv6_available": true,
    "combined_available": true,
    "interfaces": {
      "ens3": {
        "status": "available",
        "status_poller": "health",
        "bandwidth_kbps": 266,
        "available": true
      }
    }
  },

As you can see, this host is doing 266 kbps, but it's not showing in the UI or in the bandwidth_kbps field (the aggregate of all interfaces) in this API.

Expected behavior:

The UI and /api/cache-statuses API should report the aggregate bandwidth of a server's interfaces, even if monitor = false.

Minimal reproduction of the problem with instructions:

Open the TM UI and observe what I've described for servers with no monitored interfaces. Then make one or more of those interfaces monitored and observe that the bandwidth starts reporting correctly.

@rawlinp rawlinp added bug something isn't working as intended Traffic Monitor related to Traffic Monitor labels Feb 22, 2021
@srijeet0406
Copy link
Contributor

@rawlinp I can take this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working as intended Traffic Monitor related to Traffic Monitor
Projects
None yet
2 participants