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

"chart not found on url" in cluster dashboard. #8349

Open
BrettMerrick opened this issue Oct 16, 2024 · 0 comments
Open

"chart not found on url" in cluster dashboard. #8349

BrettMerrick opened this issue Oct 16, 2024 · 0 comments

Comments

@BrettMerrick
Copy link

Describe the bug
Charts are not available on the dashboard in a cluster installation

To Reproduce
Steps to reproduce the behavior:

  1. Install a 3 node cluster as per the guide.
  2. Visit the dashboard

Screenshots
Screenshot 2024-10-17 at 11 03 46 AM

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:

if (mode === modes.COMBINED) {
// Cluster data is aggregated into one chart
hosts = [$store.getters[`$_status/hostsForChart`](metric).map(host => `/netdata/${host}`).join(',')]
params['friendly-host-names'] = Object.values(cluster.value).filter(server => {
return $store.getters[`$_status/hostsForChart`](metric).includes(server.management_ip)
}).map(server => {
return `/netdata/${server.management_ip}=${server.host}`
}).join(',')
chart.params = params

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant