Configuring the InfluxDB data source
Now that we have our InfluxDB server ready to accept data, let’s get Grafana ready to communicate with it:
- Open your browser to the Grafana app and select Connections | Add new connection from the main menu.
- Search for the InfluxDB data source and select it.
- Click on Add a new data source. Fill out the following form fields:
- Name:
InfluxDB
- Query Language:
InfluxQL
- HTTP | URL:
http://influxdb:8086
- Custom HTTP Headers | Header:
Authorization
- Custom HTTP Headers | Value:
Token <
API Token>
- Database:
Chapter08
- Name:
Note
Make sure there is a space between Token
and <
API Token>
.
Your data source configuration should look like this:
Figure 8.1 – InfluxDB data source
Click on Save and Test to confirm you can successfully connect to the InfluxDB server.
Building the Python Docker container
Use the requirements.txt
file in the Chapter08
repository to create a Docker container with...