Test the connection

Now that you’ve configured the connection details, save the data source and verify that Grafana can successfully connect to your InfluxDB instance.

  1. Click Save & test.

    The success message varies by query language:

    Query languageSuccess message
    Fluxdatasource is working. X buckets found
    InfluxQLdatasource is working. X measurements found
    SQLOK

Common connection issues

SymptomLikely causeSolution
Connection refusedInfluxDB not running or wrong URLVerify the URL and that InfluxDB is accepting connections on the specified port
Unauthorized (401)Invalid API token or credentialsGenerate a new token with read access, or verify your username and password
Organization not foundIncorrect organization name (Flux)Check the organization name in your InfluxDB UI under Settings
Bucket not foundIncorrect bucket name or token lacks access (Flux)Verify the bucket name and that the token has read permission for it
Database not foundIncorrect database name (InfluxQL/SQL)Verify the database name in your InfluxDB instance

In the next milestone, you’ll run a query and explore your InfluxDB data in Grafana.

Were you successful?


page 6 of 8