packetfence
packetfence copied to clipboard
"chart not found on url" in cluster dashboard.
Describe the bug Charts are not available on the dashboard in a cluster installation
To Reproduce Steps to reproduce the behavior:
- Install a 3 node cluster as per the guide.
- Visit the dashboard
Screenshots
Expected behavior Charts to display
Version PacketFence-ZEN-v14.0.0
Additional context Seems to only affect charts where the mode is COMBINED and hosts is a comma separated list: https://github.com/inverse-inc/packetfence/blob/a4e19c976c558114ad1609eb33b0fdb622be3a7c/html/pfappserver/root/src/views/Status/dashboard/_components/TheView.vue#L167-L175
The dev console shows a "Failed to load resource: the server responded with a status of 400 (Bad Request)" because the page is trying to load: https://172.20.13.70:1443/netdata/172.20.13.72,/netdata/172.20.13.71,/netdata/172.20.13.73/api/v1/chart?chart=system.cpu&_=1729112364987
instead of three separate data sources: https://172.20.13.70:1443/netdata/172.20.13.72/api/v1/chart?chart=system.cpu&=1729112364987 https://172.20.13.70:1443/netdata/172.20.13.71/api/v1/chart?chart=system.cpu&=1729112364987 https://172.20.13.70:1443/netdata/172.20.13.73/api/v1/chart?chart=system.cpu&_=1729112364987