Grafana comes with a feature-rich data source plug-in influxdb. Supports rich query Editor, annotations, and templating (template) queries.
Adding data sources (Adding the source)
- Click the top Grafana icon to open the side menu.
- In the
Dashboards
side menu under links, you should find a link called data sources.
- Click on the button at the top
+ Add data source
.
- Select InfluxDB in the Type drop-down option .
Edit/add Data source
Name: Data source names. This is how the data source is referenced in the panel and in the query.
Defalut: The default data source means that it will be pre-selected for the new panel.
Type
Http settings
URL: The port of your HTTP protocol, IP, and Influxdb API (the INFLUXDB API port is the default of 8086)
Access:proxy: Via Grafana backend access, direct: Access directly through the browser
Http Auth
Basic Auth
With Credentials
Tls Client Auth
With CA Cert
InfluxDB Details
DATABASE:INFLUXDB database name
User: Database username
Password: Database user password
Defalut GROUP BY Time
Note: If you do not see the data sources link in your side menu, this means that your current user does not have the admin role for the current organization.
See in detail; http://docs.grafana.org/features/datasources/influxdb/
Proxy vs Direct Access
Proxy access means that the Grafana backend would proxy all requests from the browser. So requests to InfluxDB would be channeled through grafana-server
. This means, the URL you specify needs to is accessible from the server is running Grafana on. Proxy access mode is also more secure as the username & password would never reach the browser.
Using InfluxDB in Grafana,influxdb for use in Grafana