Follow the steps mentioned in this page to configure Data Source in Grafana.
To sign in to Grafana for the first time:
Open your web browser and go to http://localhost:3000/.
On the sign-in page, enter admin
in the section for username and password.
Click Sign in.
If successful, you will see a prompt to change the password.
Click OK on the prompt and change your password.
We strongly recommend that you change the default administrator password.
To access the data source configuration page:
Hover the cursor over the Configuration (gear) icon.
Select Data Sources.
Select the InfluxDB data source.
Set the data source’s basic configuration options carefully:
Set a name for your Data Source, like InfluxDB-Flux.
Select Query Language as Flux.
Enter the URL as http://localhost:8086
Configuring Flux Query Related Setting:
Configure these options under InfluxDB details after you select the Flux query language:
Click Save & Test.
A message should pop up on the UI saying, "datasource is working. 1 buckets found"., if not, please check the details you have entered.
Name | Description |
---|---|
Organization
Organization ID obtained previously from InfluxDB UI.
Token
Token obtained previously from InfluxDB UI.
Default bucket
Enter the Bucket Name which was provided when you logged in to InfluxDB for the first time.