With our database created, the next thing to do is make Grafana aware and connect to it. To do that, perform the following steps:
- Open the Grafana Web UI by pointing your browser to http://localhost:3000.
- Log in with the following credentials:
- Username: admin
- Password: admin
- Click on the Grafana icon in the top-left corner, Data Sources.
- Click on the + Add data source button.
- In the Add data source window, fill in the following:
- Name: demo
- Type: Select InfluxDB from the dropdown
- Url: http://localhost:8086
- Access: Select direct from the dropdown
- Database: excilys
- Click on the Add button.
- If all is okay, you should get a success message that the data source is working. Refer to this screenshot: