performancecopilot / grafana-pcp

Performance Co-Pilot Grafana Plugin
https://grafana-pcp.readthedocs.io
Apache License 2.0
110 stars 18 forks source link

Multiple vector hosts cannot be configured properly from higher version Grafana #202

Open MrXinWang opened 6 days ago

MrXinWang commented 6 days ago

Hi,

Data source: Vector

Describe the bug I followed the grafana-pcp quickstart guide and was able to query metrics properly from PCP Vector data source with a predefined target host. Currently I am trying to configure my grafana-pcp dashboard with multiple hosts following the guide here: https://grafana-pcp.readthedocs.io/en/latest/guides/multiple-vector-hosts.html

However I am seeing some errors while following the guide, below are the steps I tried with screenshots. Would you please kindly help to identify or clarify if I am making mistakes? Or provide any hints to configure it properly if maybe the doc is a bit outdated? Thanks!

To Reproduce

  1. Follow the "Setup the Vector data source" section As the doc shows, the error is expected.

    image
  2. Create a new dashboard with variables In this step I created a new dashboard with a textbox variable "host"

    image
  3. Configure the dashboard The problem is in this step: Without the URL set in the data source, it seems that Grafana won't allow me to enter the PCP metric name and the URL field. Any hints on this one? Thanks!

    image

Versions (please complete the following information):

MrXinWang commented 6 days ago

Hi @natoscott @sfeifer @andreasgerstmayr , would you please kindly provide any hint on this issue? Thanks very much!

MrXinWang commented 6 days ago

One update: Using Grafana 9.0.0, I am able to switch the host by changing the URL variable from the default "PCP Vector Checklist" dashboard imported from the grafana-pcp plugin, and the dashboard works well. However using same configuration/setup, if I switch back to Grafana 11.0.0 I will get a "Network Error: NetworkError when attempting to fetch resource", the dashboard will be empty with the error in this case.

Any idea why or where I can start to debug? Thanks!