<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>InfluxData Blog - Madu Mitha Ravi</title>
    <description>Posts by Madu Mitha Ravi on the InfluxData Blog</description>
    <link>https://www.influxdata.com/blog/author/madu-mitha-ravi/</link>
    <language>en-us</language>
    <lastBuildDate>Wed, 05 Apr 2023 07:00:00 +0000</lastBuildDate>
    <pubDate>Wed, 05 Apr 2023 07:00:00 +0000</pubDate>
    <ttl>1800</ttl>
    <item>
      <title>How to Connect Grafana &amp; InfluxDB IOx </title>
      <description>&lt;p&gt;&lt;em&gt;This article was originally published on &lt;a href="https://medium.com/@cuteberry.madhu/how-to-connect-grafana-influxdb-iox-75d6568df87a"&gt;Medium.com&lt;/a&gt; and is reposted here with permission from the author.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trying to connect Grafana &amp;amp; InfluxDB IOx? Follow this tutorial to learn how.&lt;/strong&gt;&lt;/p&gt;

&lt;h2 id="assumption"&gt;Assumption&lt;/h2&gt;

&lt;p&gt;InfluxDB IOx account is set with a bucket that gets populated with time series data.&lt;/p&gt;

&lt;p&gt;It’s good to have the InfluxDB connection details handy.&lt;/p&gt;

&lt;h2 id="type-1-using-datasource--flight-sql"&gt;Type 1: Using datasource — Flight SQL&lt;/h2&gt;

&lt;h3 id="configs--requirements"&gt;Configs &amp;amp; requirements&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Installation of custom Flight SQL plugins to be utilized by Grafana OSS version and unzip to the Grafana plugins path&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class="language-bash"&gt;url -L https://github.com/influxdata/grafana-flightsql-datasource/releases/download/v0.1.2/influxdata-flightsql-datasource-0.1.2.zip \
  -o influxdata-flightsql-datasource-0.1.2.zip
  &lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class="language-bash"&gt;unzip influxdata-flightsql-datasource-0.1.2.zip -d /path-to-grafana-plugins/
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Configuring Grafana by editing the  &lt;strong&gt;&lt;em&gt;defaults.ini under conf folder of your Grafana&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;a) Update the plugins directory to point to the plugin&lt;/p&gt;

&lt;p&gt;b) Allow the unsigned version of the plugin to be used&lt;/p&gt;

&lt;p&gt;c) Set the environment variables&lt;/p&gt;

&lt;pre&gt;&lt;code class="language-bash"&gt;[paths]
plugins = path-to-grafana-plugins
&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class="language-bash"&gt;[plugins]
allow_loading_unsigned_plugins = influxdata-flightsql-datasource
&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class="language-bash"&gt;GF_PATHS_PLUGINS=/path-to-grafana-plugins/
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=influxdata-flightsql-datasource
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Restart Grafana to reflect these configuration changes&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id="grafana-flight-sql-datasource-setup"&gt;Grafana Flight SQL datasource setup&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Launch Grafana UI  &lt;a href="http://localhost:3000/datasources"&gt;http://localhost:3000/&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Navigate to Configurations -&amp;gt; Datasources&lt;/li&gt;
  &lt;li&gt;Add Data source -&amp;gt; Select FlightSQL -&amp;gt; Name your configuration&lt;/li&gt;
  &lt;li&gt;Input the FlightSQL connection details similar to below, validate by  &lt;strong&gt;&lt;em&gt;“Save &amp;amp; test”&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Connection details are based on your InfluxDB IOx account setup — host/url, tokenID and bucket name&lt;/li&gt;
  &lt;li&gt;SQL is the query language to access the data&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src="//images.ctfassets.net/o7xu9whrs0u9/Z8hCE1QDTUBbonOeJyW4T/32fe29f1dfd3d2e552a4ed891edb39e2/Data_source-flightSQL.webp" alt="Data source-flightSQL" /&gt;&lt;/p&gt;

&lt;h3 id="sample-exploration-of-sql-query-using-flight-sql"&gt;Sample exploration of SQL query using Flight SQL&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Navigate to Explore (Flight SQL)&lt;/li&gt;
  &lt;li&gt;Design and Run your SQL query which pulls data from your connected InfluxDB IOx using the Flight SQL&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src="//images.ctfassets.net/o7xu9whrs0u9/2eHmAOboxUNoEQWkCTTZWv/4be11de80d0cf1a4c69e3ebd2a925f5b/SQL_query.webp" alt="SQL query" /&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;View run time using Inspector option, similarly other options can be accessed as required&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id="type-2-using-datasource--influxdb"&gt;Type 2: Using datasource — InfluxDB&lt;/h2&gt;

&lt;h3 id="grafana-influxdb-datasource-setup"&gt;Grafana InfluxDB datasource setup&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Launch Grafana UI  &lt;a href="http://localhost:3000/datasources"&gt;http://localhost:3000/&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Navigate to Configurations -&amp;gt; Datasources&lt;/li&gt;
  &lt;li&gt;Add Data source -&amp;gt; Select InfluxDB -&amp;gt; Name your configuration&lt;/li&gt;
  &lt;li&gt;Input the InfluxDB connection details similar to below, validate by  &lt;strong&gt;&lt;em&gt;“Save &amp;amp; test”&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Connection details are based on your InfluxDB account setup — host/url, user credentials, organization, tokenID and bucket name&lt;/li&gt;
  &lt;li&gt;Flux is the query language used to access the data&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src="//images.ctfassets.net/o7xu9whrs0u9/4WTobraAFFNeX1EvRBV2wa/7cc0a942ac5b02fe664a68c7e7745112/settings.webp" alt="settings" /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src="//images.ctfassets.net/o7xu9whrs0u9/4LD66UJr4Z0P4MxM8ocLGA/3f87129b6d8a5e1372e74a17f630e334/basic_auth_details.webp" alt="basic auth details" /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src="//images.ctfassets.net/o7xu9whrs0u9/3HLJza37VwbklcHJ3f2vFs/b2fec342c8d951ce48e1b60e03a573fc/custom_HTTP_headers.webp" alt="custom HTTP headers" /&gt;&lt;/p&gt;

&lt;h3 id="sample-exploration-of-flux-query-using-influxdb"&gt;Sample exploration of Flux query using InfluxDB&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Navigate to Explore (InfluxDB datasource)&lt;/li&gt;
  &lt;li&gt;Design and Run your Flux query which pulls data from your connected InfluxDB&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src="//images.ctfassets.net/o7xu9whrs0u9/5uugGG0AjXlxnfwewqYaTn/7574e2bfcb3ce1f808adcfb7b6fa1ba6/pull_data.webp" alt="pull data" /&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;View run time using Inspector option, similarly other options can be accessed as required&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With this blog post, we have learned the two ways of configuring, connecting and querying time series data from Grafana — InfluxDB IOx by utilizing SQL with Grafana datasource Flight SQL and Flux query language with Grafana datasource InfluxDB.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Thank you for reading!&lt;/em&gt;&lt;/p&gt;
</description>
      <pubDate>Wed, 05 Apr 2023 07:00:00 +0000</pubDate>
      <link>https://www.influxdata.com/blog/how-connect-grafana-influxdb-iox/</link>
      <guid isPermaLink="true">https://www.influxdata.com/blog/how-connect-grafana-influxdb-iox/</guid>
      <category>Product</category>
      <author>Madu Mitha Ravi (InfluxData)</author>
    </item>
  </channel>
</rss>
