Skip to main content


Find information to help you troubleshoot issues using CDF as a data source in Grafana.

Bad Gateway error when setting up the API Host


When clicking Save & test in the CDF plugin configuration, the user gets a Bad Gateway error. The developer tab in Grafana has a 502 error in the network tab.


The API Host in the setup is wrong, but the user only gets the Bad Gateway error message.


Check that the API Host field has a valid Cognite hostname.

  • If the project uses the default multi-tenant cluster (, keep the default value and don't change the hostname.
  • If the project uses another cluster like,, change the hostname to point to the API server for the cluster.
  • If you're unsure, use the default hostname.
  • Do not use https:// or trailing slashes / in the API Host field.