influxdata / influxdata/influxdb

Connecting to Grafana - InfluxDB Error: Bad Request

Open
#20,761 18 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/2.x area/documentation
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

Hi,

I am trying to view Influxdb2 data in Grafana. I use a python script to upload data into influxdb. This is confirmed to be working:
![image](https://user-images.githubusercontent.com/17007879/108068904-6435ef80-706b-11eb-8d27-31fa804bc978.png)

Influxdb is running on the IP shown in the image above. When I try to connect Grafana I get the error `IInfluxDB Error: Bad Request`

Following the steps in the [documentation](https://docs.influxdata.com/influxdb/v2.0/tools/grafana/) the url I input into grafana is the same one as in the image above.
![image](https://user-images.githubusercontent.com/17007879/108069283-dc041a00-706b-11eb-98c2-110f26142f01.png)

The rest of the config is shown in the image below. Both passwords are the admin token and the database is my bucket ID.

![image](https://user-images.githubusercontent.com/17007879/108069603-38ffd000-706c-11eb-87af-e8da946ea9aa.png)

Has anyone managed to get a minimum example working between Grafana and Influxdb2 or is there an obvious step I'm missing?

* System info: Linux 5.4.0-65-generic x86_64
* InfluxDB version: 2.0.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked InfluxDB 2.0 Grafana documentation and compare it with the URL, token, and bucket settings shown in the issue screenshots. Reproduce the connection using the reported Linux and InfluxDB 2.0 context; done means identifying the missing configuration or providing a confirmed minimum working setup. حالت

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python
Domain
databases, observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.