<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Fathima Maha on Medium]]></title>
        <description><![CDATA[Stories by Fathima Maha on Medium]]></description>
        <link>https://medium.com/@fathimamaha25?source=rss-b2fbeb479019------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*A6GaeVrTIERegY-ZgaWhhA.jpeg</url>
            <title>Stories by Fathima Maha on Medium</title>
            <link>https://medium.com/@fathimamaha25?source=rss-b2fbeb479019------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 06:58:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fathimamaha25/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Making Your Own Visualisation Web App!]]></title>
            <link>https://levelup.gitconnected.com/making-your-own-visualisation-web-app-3370b57a4fa5?source=rss-b2fbeb479019------2</link>
            <guid isPermaLink="false">https://medium.com/p/3370b57a4fa5</guid>
            <category><![CDATA[grafana]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[timeseries]]></category>
            <category><![CDATA[visualisation]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Fathima Maha]]></dc:creator>
            <pubDate>Fri, 07 May 2021 15:27:17 GMT</pubDate>
            <atom:updated>2021-05-07T15:27:17.063Z</atom:updated>
            <content:encoded><![CDATA[<h4>Difficulty level: Beginner</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z4nwdo1-dvVNCo__tXZPRw.png" /><figcaption>Data Visualisation for Covid-19 data (Source: uxplanet.org)</figcaption></figure><p>If you turn around yourself, you would see a myriad of examples where data are visualised in form of graphs, piecharts, histograms, stats, etc. Visualisation and Analytics are two of the most important aspects of monitoring without which the entire data stack could just mean Nothing. One of the very impressive and essential visualisation application I recently came across was the setting up of Oxygen War Rooms. Amidst the COVID-19 pandemic, states and countries have been facing shortage of oxygen. This utility will monitor the oxygen levels in the state as well as alert incase of any shortage. If this keeps you thinking, how can you make a visualisation app for yourself? Let it be any utility, <em>how do you visualise your/your company’s data on</em><strong><em> your/your company’s own web application with customisations</em></strong>? Let’s get into it.</p><p>There are many visualisation web applications platforms available for you to choose from. Chronograf and Grafana are the best in the market. In this tutorial we will be using Grafana source code available on github to make our own visualisation app. Grafana is an open-source analytics and monitoring solution developed and supported by Grafana Labs. It lets you query, graph, and alert on your time-series metrics no matter where the data is stored. To make it easier for us, we would take all the utilities from the source code and build a new customised Visualisation app with your company name, logo and functionalities.</p><p>If you are a beginner to grafana, you can check my article as linked in the side note*. It would only take a day to learn how to send data, visualise it in different forms such as graph, heat map, stat, etc. and also send alerts if needed.</p><p>Head on to <a href="https://github.com/grafana/grafana/blob/master/contribute/developer-guide.md">https://github.com/grafana/grafana/blob/master/contribute/developer-guide.md</a>. The ReadMe contains a guide for you to get started with building one. I’ll summarise it here for convenience.</p><ol><li>Install Git, GO, and Node.js 14 and yarn on your system.</li></ol><p>For MacOS (using homebrew), the commands are:</p><pre>$ brew install git<br>$ brew install go<br>$ brew install node@14<br>$ npm install -g yarn</pre><p>2. Open a terminal and download the source code from github and install dependancies as:</p><pre>$ git clone <a href="https://github.com/grafana/grafana.git">https://github.com/grafana/grafana.git</a><br>$ yarn install --pure-lockfile</pre><p>In the directory you are in, the file named Grafana would be downloaded. Open the file in any code editor. I have used Atom.</p><p>3. Some of the simple customisations you should make to your application is change the Grafana logo and name. Whether you know coding or not, this can be easily done in a small while.</p><p>First, Open the folder pkg&gt;api&gt;index.go and change the line 409 AppTitle from “Grafana” to your company name. For mine I have changed it to “Hour Glass”.</p><p>Next go to, public&gt;app&gt;core&gt;components&gt;Branding&gt;Branding.tsx and change the AppTitle and LoginTitle, even the slogans to ones of your choice by replacing the grafana default ones.</p><p>To make life easier, in your code editor search the project (Ctrl+Shift+F) for ‘Welcome to Grafana’ and replace it with your company name.</p><p>Finally to change the logo and images, head to public&gt;img and replace the images <strong>apple-touch-icon.png, fav32.png, grafana_com_auth_icon.svg, grafana_icon.svg and mstile-150x150.png</strong> with your company logo. Make sure to keep the file name and resolution of your new image same as the one you are replacing. Svg vector images also have to be replaces with the same file format, you can use any online utility to change your images to svg format. You can change all the images as you go when you start working with your web app. I have also changed the background image by replacing <strong>login_background_dark.svg</strong> as the default mode taken is dark theme.</p><p>Once you are done you are ready to view it.</p><p>4. Open a terminal, go to the directory with grafana folder and cd into grafana folder. Build the backend as:</p><pre>$ make run</pre><p>Open another terminal and cd into the grafana folder, build frontend as:</p><pre>$ yarn start</pre><p>Once the yarn has been completed after 100%, head to <a href="http://localhost:3000/">http://localhost:3000</a> on any browser and view your web app! The default credentials for username and password is <em>admin.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s0Ru1CGf1hjqFQwJxczXuw.gif" /><figcaption>Hour Glass Web Application (Source: Fathima)</figcaption></figure><p>Tada!</p><p>If you make anymore changes to the source code, to see it in effect you can restart grafana as said in the documentation: <a href="https://grafana.com/docs/grafana/latest/installation/restart-grafana/">https://grafana.com/docs/grafana/latest/installation/restart-grafana/</a></p><p><a href="https://medium.com/analytics-vidhya/master-influxdb-querying-influx-data-as-excel-80a0ccb427b8">Master InfluxDB: Querying Influx Data as Excel</a></p><blockquote>*One of the customisations that I added while using Grafana was to download the data as excel. You can check out the full article clicking link above and then follow the same once you make your own app ready. This article also helps you get an understanding about how Grafana and InfluxDB (Time-Series Database I used for the utility) works. You can make a lot of these additional utilities to your own application once done.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*8n4ByvW4bQ9JRArvX1ufLg.gif" /></figure><p>Hope this helped and you can also create an application like Hour Glass to visualise and work with your data.</p><p>Until the next article, take care!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3370b57a4fa5" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/making-your-own-visualisation-web-app-3370b57a4fa5">Making Your Own Visualisation Web App!</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Master InfluxDB: Querying Influx Data as Excel]]></title>
            <link>https://medium.com/analytics-vidhya/master-influxdb-querying-influx-data-as-excel-80a0ccb427b8?source=rss-b2fbeb479019------2</link>
            <guid isPermaLink="false">https://medium.com/p/80a0ccb427b8</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[influxdb]]></category>
            <dc:creator><![CDATA[Fathima Maha]]></dc:creator>
            <pubDate>Mon, 29 Mar 2021 15:44:05 GMT</pubDate>
            <atom:updated>2021-03-29T15:44:05.712Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://levelup.gitconnected.com/master-influxdb-setting-up-a-plugin-dfb58adcbd15">Master InfluxDB: Setting Up A Plugin</a></p><blockquote>Difficulty level: Medium</blockquote><blockquote>Tools: Node.js, JavaScript, InfluxDB, Grafana, Telegraf</blockquote><p>This is the third article on my series of Mastering InfluxDB and Time Series Database. If you haven’t yet, you can check them all out by following the above link to my previous article.</p><p>When working with influx data, it would be convenient if the data can be downloaded as an excel in just one click. If you are curious to create a web server where you can type in your influx query and create an excel sheet by inputting a flux query, stick around! We will only be using InfluxDB and Telegram for collecting and sending data. Grafana is optional if you want to redirect the user from the dashboards. Node.js will help us in creating the web server, which is very important. Let’s get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LymrPAE3Ow5dBgmsgMpiAQ.gif" /><figcaption>Source: Fathima Maha</figcaption></figure><p>I had introduced the TICK Stack aka Telegraf-InfluxDB-Chronograf-Kapacitor. But in this utility, we will look at replacing Chronograf with Grafana. Grafana like Chronograf is a visualisation application that can receive data from InfluxDB and give us a lot more freedom with viewing our data. Embedding links on the dashboards is one of them and would be a great utility for us to have since this is a web server.</p><p>To install Grafana, head to <a href="https://grafana.com/docs/grafana/latest/">https://grafana.com/docs/grafana/latest/</a>. Install it on your system and head to <a href="https://localhost:3000/">http://localhost:3000/</a> or https://&lt;ipaddress&gt;:3000/, choose the source as InfluxDB and connect to your InfluxDB server with an API token with all access. You’ll be able to see your dashboards on Grafana by putting in the flux query (you can also copy it from Chronograf) for the dashboard you would like to view.</p><p>Now that we are done with Grafana, let us set up the node environment.</p><ol><li>Install Node.js on your computer.</li></ol><p>2. Make a new directory for your work.</p><p>3. Initialise the project by the command in the directory: npm init</p><p>This will create a package.json file in which we can see our dependencies for the project.</p><p>4. Install dependencies for our project:</p><blockquote>influxdb-client: for retrieving data from InfluxDB</blockquote><blockquote>exceljs: to create the excel workbook and add data</blockquote><blockquote>express: back end web application framework for Node.js</blockquote><blockquote>ejs: template engine for node.js and express, renders HTML and makes it possible to do conditions and access variables returns from the server</blockquote><blockquote>body-parser: to retrieve post request data from web server</blockquote><p><strong>Jargons:</strong></p><ol><li>post request is something that the webserver gets from the user, in our case we would be entering a query on our website and the server will retrieve it.</li><li>A web framework is simply a platform for developing a website, in our case, we will be hosting the website with the server being your own laptops. The point to note is that this website can only be accessed on your computer, to be accessed by anyone it has to be hosted on Cloud platforms.</li></ol><p>To install these dependencies, run these commands one by one in the working directory:</p><pre>npm install --save @influxdata/influxdb-client<br>npm install exceljs<br>npm install express --save<br>npm install ejs<br>npm install body-parser</pre><p>5. For your convenience, the files and the code for what should consist inside directory you have just made is on my Github.</p><p>Download the files from <em>main_dir</em> to your directory at <a href="https://github.com/fathimamaha/InfluxtoExcel">https://github.com/fathimamaha/InfluxtoExcel</a></p><p>Since this is a quick tutorial I will be skipping the logic and code for the files.</p><p>I am attaching the index.js file for people who are familiar with Node.js and JavaScript:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/edf332063c927b11de2f4a9d509864d9/href">https://medium.com/media/edf332063c927b11de2f4a9d509864d9/href</a></iframe><p>Your directory should now look like this:</p><pre>↓ main_dir</pre><pre>|_package.json</pre><pre>|_package-lock.json</pre><pre>|_env.js</pre><pre>|_index.js</pre><pre>|_↓ views</pre><pre>   |_index.ejs</pre><pre>|_&gt;node_modules</pre><p>6. Change the variables in env.js to your InfluxDB variables.</p><p>7. Finally on your terminal, open the working directory and type in,</p><pre>node index.js</pre><p>The web server will run at <a href="http://localhost:4000/download">http://localhost:4000/download</a> or https:&lt;ipaddress&gt;:4000/download. Keep it running while we are working, if any error the console will log it.</p><p>Phew! We are almost there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*iMMYpQ5J-lt8rGCm.gif" /></figure><p>8. Head on to your Grafana Dashboard.</p><p>Go to Dashboard Settings&gt; links &gt;New.</p><p>Put in type: ‘link’, Title: &lt;name of your choice for the link&gt; (eg: ‘Excel’), Icon: &lt;Icon of your choice for the link&gt; (eg: ‘doc’), Url: ‘<a href="http://localhost:4000/download">http://localhost:4000/download</a> or https:&lt;ipaddress&gt;:4000/download’. Switch the Open in tab option to ‘On’.</p><p>After saving the dashboard you’ll be able to see a small icon with your title, and on clicking would redirect you to our web server.</p><p>Finally, we have it, the gif shows how you can quickly get an excel workbook for all your flux queries!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pg1Gk3mfF9xuA-RTBFeXFg.gif" /><figcaption>Source: Fathima Maha</figcaption></figure><p>Comment if you come across any errors at all. See you soon 👾</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80a0ccb427b8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/master-influxdb-querying-influx-data-as-excel-80a0ccb427b8">Master InfluxDB: Querying Influx Data as Excel</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Master InfluxDB: Setting Up A Plugin]]></title>
            <link>https://levelup.gitconnected.com/master-influxdb-setting-up-a-plugin-dfb58adcbd15?source=rss-b2fbeb479019------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfb58adcbd15</guid>
            <category><![CDATA[tick-stack]]></category>
            <category><![CDATA[time-series-database]]></category>
            <category><![CDATA[telegraf]]></category>
            <category><![CDATA[influxdb]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Fathima Maha]]></dc:creator>
            <pubDate>Sat, 20 Feb 2021 12:02:40 GMT</pubDate>
            <atom:updated>2021-02-23T13:10:42.852Z</atom:updated>
            <content:encoded><![CDATA[<p>If you haven’t read my blog introducing Time Series and InfluxDB, here it is so that you have a better idea of what we’ll be discussing on this article:</p><p><a href="https://fathimamaha25.medium.com/visualising-your-real-life-experiences-with-time-series-data-9641c3f7bfbd">Visualising Your Real-life Experiences With Time-Series Data</a></p><p>By the end of this article as a beginner, you would accomplish the goal of setting up Influxdb on your system, successfully running a plugin to generate a trigonometric function and view it on Chronograf just like you would plot sine or cosine waves against time on paper.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MKAUwnxHOrhE5JJv8V1BrQ.gif" /></figure><h4>Install InfluxDB:</h4><p>Head over to <a href="https://portal.influxdata.com/downloads/">influxdb downloads</a>, select your machine and go to your terminal to execute the command. I installed the lastest version v2.0.4 which in default has Chronograf and Telegraf, on my Ubuntu 20.04 machine.</p><pre><strong>$ </strong><a href="https://dl.influxdata.com/influxdb/releases/influxdb2-2.0.4-amd64.deb">https://dl.influxdata.com/influxdb/releases/influxdb2-2.0.4-amd64.deb</a><br><strong>$</strong> sudo dpkg -i influxdb2-2.0.4-amd64.deb</pre><p>Once setting up is done, execute this command to check the status of Influxd. If it says active we are good to go!</p><pre><strong>$</strong> sudo service influxd status</pre><p>Start your influx service by typing in this command on terminal and head over to http://localhost:8086/ on your machine browser or http://&lt;ipadress&gt;:8086/ if you are using a cloud instance.</p><pre><strong>$</strong> influxd</pre><p>If you need to stop the service, you could use this command or replace <em>stop</em> with <em>restart</em> to do the latter.</p><pre><strong>$</strong> sudo service influxd stop</pre><h4>Install Telegraf:</h4><p>Head over to <a href="https://portal.influxdata.com/downloads/">https://portal.influxdata.com/downloads/</a>, choose your machine and download the latest version of telegraf on your machine.</p><p>For Linux binaries, I executed:</p><pre><strong>$</strong> wget https://dl.influxdata.com/telegraf/releases/telegraf-1.17.3_linux_amd64.tar.gz<br><strong>$</strong> tar xf telegraf-1.17.3_linux_amd64.tar.gz</pre><p>If you come across any errors in these steps, help is all around and I am sure it wouldn’t take much time.</p><p>Telegraf works on a plugin system where we have input plugins to collect data, output plugins to send data to a destination. Telegraf acts like a messenger to your final destination now that is, InfluxDB. Telegraf community has already built around 100+ plugin that we can use. Slight modifications to these plugins and we can view a lot of information on Influxdb.</p><p>We’ll first look at how to obtain these plugins and later work with the trigonometry plugin to plot a tangent and cosine wave with a given amplitude.</p><h4>Get Plugins:</h4><p>Before you get the plugins make sure you have <a href="https://golang.org/doc/install">installed Golang</a> in your system with which all plugins are written.</p><p>You just need to simply execute these set of commands on your shell and you would have a directory with all the plugins that are available with telegraf:</p><pre><strong>$</strong> go get github.com/influxdata/telegraf<br><strong>$</strong> cd &lt;Path-to-go-directory&gt;/github.com/influxdata/telegraf<br><strong>$</strong> make</pre><p>This should return:</p><pre>go mod download<br>go build -ldflags “ -X main.commit=9814d3d8 -X main.branch=random -X main.goos=linux -X main.goarch=amd64” ./cmd/telegraf</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*aLUizludfN4HbCGY.gif" /></figure><p>Alright! you are finally ready with all the plugins. To list/view all the plugins you can explore the commands with telegraf -h.</p><p>Now that we have all the ingredients with us, its time to finally plug &amp; play with telegraf and view cool visualisations on Chronograf.</p><h4>Editing Trig Plugin:</h4><p>Open the file plugins in <strong>Go_directory&gt;guthub.com&gt;influxdata&gt;telegraf</strong> and select inputs to view all the go files of input plugins. Open <strong>trig&gt;trig_original.go</strong>. If you would like to replace the sine function with any other functions you can do so. I will be replacing sine with tan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0QJcQZ-E2IODD1eTDv__Ug.png" /><figcaption>trig_original.go file</figcaption></figure><p>You’ll also be able to see a sample configuration format, which is necessary to push data into influx. This plugin allows user to change the amplitude of the function. Copy the sample configuration for now on your clipboard.</p><p>When you do make any changes to the plugins, to bring it in effect you should execute:</p><pre><strong>$</strong> cd &lt;Path-to-go-directory&gt;/github.com/influxdata/telegraf<br><strong>$</strong> make</pre><p>Finally, Chronograf:</p><p>Open your influxdb server which was running from the first step, make a bucket to flush data by heading to <strong>Data&gt;Buckets&gt;Create Bucket.</strong></p><p>I will be naming mine ‘Trig’. Next head to <strong>Data&gt;Telegraf&gt;Create Configuration. </strong>Name the configuration something simple (trig), make sure to select the bucket you created and select the plugin ‘system’ to make a config. We’ll edit this to use the trig plugin to collect metrics. Click finish.</p><p>Select setup instructions next to the configuration you created and generate a token. A token lets you send data into the bucket through the plugin. Head to a new shell and paste the token you created by using:</p><pre><strong>$</strong> export INFLUX_TOKEN=&lt;TOKEN&gt;</pre><p>You can click on the configuration file and now download it. Once you have downloaded open the file with a text editor and now paste the sample configuration from trig plugin while deleting all the other inputs. To add any inputs we should specify [[inputs.&lt;inputname&gt;]], in this case [[inputs.trig]].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R39mhPtnkbjj3DN7BPbUlQ.png" /></figure><p>Save the file and now you are good to go. Open the shell where we earlier exported token and type in:</p><pre><strong>$</strong> telegraf --config &#39;&lt;path to config file&gt;/trig.conf&#39; --debug</pre><p>Now, you’d get it successfully running on your shell if there are no errors. Open <strong>Chronograf&gt;Explore&gt;Choose your Bucket&gt;Click the measurement&gt;Submit</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yUAoVx3r7IhNT4iI1n-a0g.png" /><figcaption>Tangent and Cosine wave with an amplitude value of 10 with respect to time</figcaption></figure><p>There you go! You would see the plot against time of the waves on the Chronograf dashboard.</p><p>Hoping this article guided you to successfully complete the tasks. For more learning about TICK Stack, Stay Tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfb58adcbd15" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/master-influxdb-setting-up-a-plugin-dfb58adcbd15">Master InfluxDB: Setting Up A Plugin</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Visualising Your Real-life Experiences With Time-Series Data]]></title>
            <link>https://fathimamaha25.medium.com/visualising-your-real-life-experiences-with-time-series-data-9641c3f7bfbd?source=rss-b2fbeb479019------2</link>
            <guid isPermaLink="false">https://medium.com/p/9641c3f7bfbd</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[influxdb]]></category>
            <category><![CDATA[timeseries]]></category>
            <category><![CDATA[telegraf]]></category>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[Fathima Maha]]></dc:creator>
            <pubDate>Thu, 21 Jan 2021 17:25:14 GMT</pubDate>
            <atom:updated>2021-01-21T17:39:07.126Z</atom:updated>
            <content:encoded><![CDATA[<h4>Time-Series For Beginners</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yiXgwjomrTx9NKwhQsDbnQ.jpeg" /></figure><p>Imagine going on a jog with your apple watch opening you to an ecosystem of apps and features measuring <em>everything from your heart rate, distance travelled, pace, to the calories burned</em>. How does all the data that the device measures look behind the system? How is this very dynamic data analysed to show you your weekly averages? And how does this exact data help you plan out your workout schedule for the next week? Here comes the future of our data, <em>Time-Series Data and InfluxDB: Open-Source Time Series Database (A popular preference for Time-Series Database among others).</em></p><p>Before we introduce jargons into this article, let us break it into simpler chunks. <strong>Anything that you measure; </strong>let it be the temperature around you, the income of your company, your mood throughout the day, all of them noted and <strong>ordered with certain timestamps associated with it are called a time series</strong>. The timestamp can be nanoseconds, hours, days or even a number of years. Most of the data we work with is mapped against time and we often consider it a convenient way to observe changes and draw patterns from it.</p><p>Taking an example from a 2017 New York Times article I came across titled ‘<em>95-Degree Days: How Extreme Heat Could Spread Across the World’</em>, the study predicted the number of extremely hot days around the world when temperatures can soar to 95 degrees Fahrenheit or higher leading people to a greater risk of dying. The time-series data that the study had analysed with the number of days in a year had a certain pattern. The rate was seen to be multiplying and the same forecasted for years till 3000 showed dreadful situation for the planet if countries continue to take only moderate climate action. For a common man reading the article, the severity of the issue cannot be better explained than putting out the data visually. That is exactly what the article did, in a second of time the time-series data was visualised and labelled with their timestamps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*H1wnaTb6pimz6HGGrcXKKw.gif" /><figcaption>The map above, based on a new analysis from the <a href="http://www.impactlab.org/map/">Climate Impact Lab</a>, shows how <strong>95-degree days are expected to multiply this century</strong> if countries take moderate climate action. Source: NY Times</figcaption></figure><p>This analysis, forecasting and visualisation is an integral part of everything around us and it was not long ago companies and researchers felt the need for a database solely to work with these huge chunks of time-series data. More and more smart devices are using Internet of Things <em>(a network of material objects measured for physical variables, collected, stored and transferred on the internet)</em>; there is huge real-time traffic generated on applications and websites with millions and billions of events in a day.</p><p>If you are a company producing IoT devices such as sensors, actuators, gadgets, appliances or a researcher wanting to observe patterns in your study over time, or a company wanting to monitor production and sales levels, Time-series database is a must know. <strong>InfluxDB</strong>, an open-source time-series database written in Go language is one of the most preferred databases to work with. It is optimized for fast, high-availability storage and retrieval of time series data and empowers developers to build softwares handling massive volumes of data.</p><p>While working with this technology as a beginner, I was relieved as to how easy it was to set up Influx on my system and get it running. There are only two prerequisites to learning; getting familiar with Go language and reading the documentation. Almost everything else is sorted as help is all around, with easy to follow tutorials, Influx Data organising interactive webinars and Slack groups you can join to discuss.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TrL6vt9E2FpqvmJhTxRkrg.png" /><figcaption>Source: Influx Data</figcaption></figure><p>InfluxDB works with 3 other open-source components to give you the complete control of your data. This is popularly called as the <strong>TICK Stack</strong>. Let us get familiar by taking an example of measuring the temperature in your city on a hot day and creating an alerting mechanism when the temperature goes beyond 40 degrees Celcius. <strong>Telegraf</strong> will be your agent for collecting the metrics that communicate with devices like the thermometer for measuring temperature. <strong>InfluxDB</strong> receives this data and their timestamps in a bucket and lets you visualise the data with the help of <strong>Chronograf,</strong> the User Interface for InfluxDB for monitoring the data. <strong>Kapacitor </strong>acts as the engine with which you can create an alert to your mobile phone when the temperature exceeds the maximum range.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*vDYOs3a9Lji4RGG01wsulw.gif" /></figure><p>A lot of heat was talked about in this article for introducing time-series, but it definitely does not limit its real-life application there. Look around you and I am sure you’ll find an opportunity for building a utility yourself or creating an alert mechanism with real-time data that is abundantly available. You could be building a notification mechanism for COVID-19 cases in your locality, or collecting research data, drawing patterns, forecasting using Machine Learning or simply assessing your system applications and their severity. Be sure to have fun playing with the data and stay updated on how to work with the TICK Stack!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9641c3f7bfbd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>