<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>InfluxData Blog - Gunnar Aasen</title>
    <description>Posts by Gunnar Aasen on the InfluxData Blog</description>
    <link>https://www.influxdata.com/blog/author/gunnar-aasen/</link>
    <language>en-us</language>
    <lastBuildDate>Thu, 02 Nov 2017 10:39:38 -0700</lastBuildDate>
    <pubDate>Thu, 02 Nov 2017 10:39:38 -0700</pubDate>
    <ttl>1800</ttl>
    <item>
      <title>How to Use Grafana with InfluxDB to Monitor Time Series Data</title>
      <description>&lt;p&gt;The “open platform for beautiful analytics and monitoring,” &lt;a href="https://grafana.com/"&gt;Grafana&lt;/a&gt; supports various backends that store time series data. One of those backends is &lt;a href="https://www.influxdata.com/time-series-platform/influxdb/"&gt;InfluxDB&lt;/a&gt;. InfluxDB is a &lt;a href="https://www.influxdata.com/time-series-database/"&gt;time series database&lt;/a&gt; built specifically for storing time series data, and Grafana is a visualization tool for time series data. Given this perfect match, Grafana has a tight integration with InfluxDB.&lt;/p&gt;
&lt;h2&gt;Introduction to time series monitoring with Grafana&lt;/h2&gt;
&lt;p&gt;Grafana is definitely one of the most popular time series data visualization tools that we recommend using with InfluxDB. Below are some basics on how to set up your Grafana dashboard with InfluxDB, how to use the Grafana InfluxDB solution to get the most out of your time series data, and how to visualize what you want - the way that you want - using InfluxDB time series database.&lt;/p&gt;

&lt;p&gt;&lt;img class="aligncenter wp-image-208900 size-full" src="/images/legacy-uploads/grafana-monitoring-influxdb.png" alt="Typical Grafana InfluxDB time series monitoring dashboard" width="1451" height="806" /&gt;&lt;/p&gt;
&lt;h2&gt;Grafana dashboard setup for InfluxDB&lt;/h2&gt;
&lt;p&gt;For starters, &lt;a href="https://portal.influxdata.com/downloads"&gt;download InfluxDB&lt;/a&gt; and &lt;a href="https://grafana.com/get"&gt;Grafana&lt;/a&gt;. The basic setup is to have InfluxDB and Grafana monitoring connected together. InfluxDB has an API, and typically, that defaults to port 8086 while Grafana’s API is on port 3000. And Grafana will call the InfluxDB API whenever it wants to query data.&lt;/p&gt;

&lt;p&gt;When you set up the InfluxData time series platform, you will need a collection agent collecting your metrics. For InfluxDB, use Telegraf which already has over 200 plugins.&lt;/p&gt;

&lt;p&gt;&lt;img class="aligncenter wp-image-208902 size-full" src="/images/legacy-uploads/time-series-stack-grafana.png" alt="Telegraf and other collection agents feed metrics to InfluxDB for Grafana monitoring" width="916" height="164" /&gt;&lt;/p&gt;

&lt;p&gt;Some Grafana InfluxDB setup basics to remember:&lt;/p&gt;
&lt;ul&gt;
 	&lt;li&gt;InfluxDB is essentially a time series database process that runs on a server. That process can also run on the same box that Grafana runs on. Grafana has a very lightweight server-side application, and most of Grafana monitoring runs in the browser.&lt;/li&gt;
 	&lt;li&gt;It's easiest to set up Grafana and InfluxDB on the same instance, yet if you find you have a very large installation of InfluxDB, a number of Grafana users, or a certain security, or deployment profile within your organization, then setting up InfluxDB and Grafana on separate servers is also perfectly acceptable.&lt;/li&gt;
 	&lt;li&gt;InfluxDB will be the more memory-intensive and CPU-intensive application of the two, simply because a lot of Grafana's work happens in the browser. To maintain best performance, we recommend for Grafana monitoring that you use the latest browsers.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Grafana and InfluxDB setup configurations&lt;/h2&gt;
&lt;p&gt;A lot of the defaults set up for InfluxDB can be maintained. Note that you can enable query log—which will log all queries when executed or when sent to the InfluxDB API, which can be useful for debugging Grafana issues.&lt;/p&gt;

&lt;p&gt;One important thing to note when setting up InfluxDB with Grafana is to set up the coordinator section of the config—specifically, set the maximum number of concurrent queries:&lt;/p&gt;
&lt;ul&gt;
 	&lt;li&gt;If you have issues with different Grafana users all hitting InfluxDB with different open browsers and sending a bunch of time series database queries through, we recommend setting the max concurrent queries. You can also set query time-outs and set queries to be logged if they take longer than a certain amount of time.&lt;/li&gt;
 	&lt;li&gt;The settings around max-select point, max-select series, and max-select buckets are also very useful in limiting the amount of results that can be returned — thereby preventing a particularly expansive query from potentially taking down the InfluxDB server or causing a slowdown for everyone else.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When exploring Grafana’s configuration file, you’ll find a wealth of other great ways to configure Grafana monitoring to make it more usable. These include setting Grafana http port, router logging, and enabling the user to make your browser pages load faster.&lt;/p&gt;
&lt;h2&gt;Learn about Grafana security settings&lt;/h2&gt;
&lt;p&gt;As for security settings, every Grafana instance has a default admin user and default password. If you are setting up Grafana monitoring on anything where anyone is able to get into your instances, set your own custom username or at least password to prevent people from getting access.&lt;/p&gt;

&lt;p&gt;Here are some basic Grafana security settings:&lt;/p&gt;
&lt;ul&gt;
 	&lt;li&gt;By default, Grafana will allow users to sign up and register and also allows non-admin users to create organizations. So we recommend setting the "enable anonymous access" option as "false" to prevent people from setting up users on organizations if you didn't want them to.&lt;/li&gt;
 	&lt;li&gt;Also, anonymous access is disabled by default, but you can enable anonymous access, which is very useful if you have a public Grafana dashboard that you'd like to promote.&lt;/li&gt;
 	&lt;li&gt;If you do a password reset that requires a user to receive an email, you'll want to set that up in the SMTP section.&lt;/li&gt;
 	&lt;li&gt;Grafana also has a number of log levels, so if you're trying to debug, definitely bump up the log level to debug.&lt;/li&gt;
 	&lt;li&gt;Grafana will expose metrics about itself — Telegraf has a Prometheus input built-in so you can direct it towards that and receive or collect internal Grafana metrics, put them into InfluxDB, then graph them again in Grafana.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you are using InfluxDB Cloud and need to configure access to different groups and users on Grafana to view the time series data that InfluxDB Cloud collects, view the webinar short &lt;a href="https://www.influxdata.com/training/influxcloud-multi-tenant-grafana/?ao_campid=70137000000Jgvd"&gt;“InfluxDB Cloud with Multi-Tenant Grafana.”&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Setting up graphs for Grafana Metrics&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://www.influxdata.com/resources/how-to-use-grafana-with-influxdb/?ao_campid=70137000000Jbgu"&gt;InfluxData’s “How to use Grafana with InfluxDB” webinar&lt;/a&gt; explains how to use Grafana UI to set up graphs and use InfluxDB Query Builder.&lt;/p&gt;

&lt;p&gt;&lt;img class="alignnone wp-image-208903 size-full" src="/images/legacy-uploads/graphs-grafana.png" alt="Customizing Grafana dashboard graphs" width="1387" height="561" /&gt;&lt;/p&gt;

&lt;p&gt;Here are some webinar highlights on what to expect in building your Grafana dashboard and customizing your graphs:&lt;/p&gt;
&lt;ul&gt;
 	&lt;li&gt;Once in config, add a data source, select the InfluxDB Type, and give that source a name. You might want to make it the default data source for your Grafana monitoring instance. You pick the InfluxDB URL and enter the database, user, and credentials. Once you get the "success" notification on that, then you add a Grafana dashboard.&lt;/li&gt;
 	&lt;li&gt;Grafana dashboards are based off rows and panels. You can have multiple panels on a row, and you can edit panels.&lt;/li&gt;
 	&lt;li&gt;While in edit mode, you see the Grafana Metrics path, where you specify your InfluxDB query. You can also specify the InfluxDB policy that you want to use.&lt;/li&gt;
 	&lt;li&gt;The default is to use the "value" as a field and "mean", but you can use any aggregator of your choice. You can also select multiple fields, or select the same field twice and use different aggregators.&lt;/li&gt;
 	&lt;li&gt;You can add various kinds of transformation like moving_average.&lt;/li&gt;
 	&lt;li&gt;Another property in the Grafana Metrics tab is how they're GROUPED BY. By default, Grafana GROUPS BY a predefined interval value, which is calculated based on the screen and the panel width. You can also specify how InfluxDB should handle null values.&lt;/li&gt;
 	&lt;li&gt;You can change how to display the graph (as lines, bars, points, etc.) and take advantage of the different display settings.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img class="alignnone wp-image-208904 size-full" src="/images/legacy-uploads/grafana-graph-options.png" alt="Display options for Grafana metrics" width="1396" height="779" /&gt;&lt;/p&gt;
&lt;h2&gt;Optimize time series monitoring with Grafana&lt;/h2&gt;
&lt;p&gt;InfluxDB and Grafana perform well together, but you can definitely hit some performance issues. If you’re collecting a lot of time series data, or alternatively querying a lot of data and putting some stress on InfluxDB, you’ll typically find that InfluxDB — since it is doing a lot of the server-side work — is the first piece of the Grafana InfluxDB chain to experience issues.&lt;/p&gt;

&lt;p&gt;Each Grafana graph is actually a query to InfluxDB. The more graphs you have, the more load there is on the InfluxDB server. So if you have a Grafana dashboard of 30 graphs, that’s 30 queries that you’re sending to InfluxDB and 30 queries that need to get the results collated by InfluxDB, and then sent back through Grafana monitoring. If you have a lot of queries or graphs, think about what you’re graphing and whether all the graphs that you have displayed are actually useful to you.&lt;/p&gt;

&lt;p&gt;To further improve the &lt;a href="https://university.influxdata.com/courses/configuring-influxdb-enterprise-best-practices-tutorial/"&gt;performance of InfluxDB&lt;/a&gt; and Grafana, here are some helpful tips:&lt;/p&gt;
&lt;ul&gt;
 	&lt;li&gt;Set your rows to be collapsible - when you collapse rows, Grafana will not show or render that graph, and therefore won't produce the queries to InfluxDB. So if you happen to have a Grafana dashboard that has a lot of useful graphs, that are perhaps not all useful at once, a great way to reduce or speed up your Grafana monitoring experience with InfluxDB is to use collapsible rows.&lt;/li&gt;
 	&lt;li&gt;There are also several graph types and other options you can add to graphs. For example, if you care only about the number of queries executed, you can just return the latest number of queries that was executed and not a graph over time. You can also do templating and annotations.&lt;/li&gt;
 	&lt;li&gt;Every query generated by Grafana graphs typically has a GROUP BY option, so you'll see a lot of recalculation on each loading of the graph.&lt;/li&gt;
 	&lt;li&gt;If you do a very expansive query to calculate, and InfluxDB takes a while to respond and the query times out and you get an error in your Grafana graph, wait a little before you hit the Refresh button.&lt;/li&gt;
 	&lt;li&gt;InfluxDB and Grafana monitoring both provide many logging options. If Grafana is displaying an error for a graph, go through and figure out why it's producing that error if it doesn't show up after one or two refreshes. InfluxDB doesn't cache queries, so every time you send a query, it recalculates the results. Typically, if you're zooming out or selecting larger time ranges, such as 24 hours, it'll take longer for InfluxDB to pull out all those results. The more data you accumulate, the more data Grafana and InfluxDB have to process to load.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;There is no limitation on the number of Grafana metrics displayed on one graph, but remember to track those most useful to you for time series monitoring performance, extracting insights or enabling forecasts. If you’re thinking about how many Grafana metrics you want to display at one time, you might also want to think about what that time series data is actually showing you and what you’re trying to accomplish by reading all that data.&lt;/p&gt;
</description>
      <pubDate>Thu, 02 Nov 2017 10:39:38 -0700</pubDate>
      <link>https://www.influxdata.com/blog/how-to-use-grafana-with-influxdb-to-monitor-time-series-data/</link>
      <guid isPermaLink="true">https://www.influxdata.com/blog/how-to-use-grafana-with-influxdb-to-monitor-time-series-data/</guid>
      <category>Product</category>
      <category>Developer</category>
      <category>Company</category>
      <author>Gunnar Aasen (InfluxData)</author>
    </item>
    <item>
      <title>Introduction to InfluxData's InfluxDB and TICK Stack</title>
      <description>&lt;p&gt;&lt;span style="font-weight: 400;"&gt;InfluxData provides a &lt;/span&gt;&lt;a href="https://www.influxdata.com/modern-time-series-platform/"&gt;&lt;span style="font-weight: 400;"&gt;Modern&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt; Time Series Platform, designed from the ground up to handle metrics and events. &lt;/span&gt;&lt;a href="https://www.influxdata.com/products/editions/"&gt;&lt;span style="font-weight: 400;"&gt;InfluxData’s products&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt; are based on an open source core. This open source core consists of the projects &lt;/span&gt;&lt;a href="https://www.influxdata.com/time-series-platform/telegraf/"&gt;&lt;span style="font-weight: 400;"&gt;Telegraf&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt;, &lt;/span&gt;&lt;a href="https://www.influxdata.com/time-series-platform/influxdb/"&gt;&lt;span style="font-weight: 400;"&gt;InfluxDB&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt;, &lt;/span&gt;&lt;a href="https://www.influxdata.com/time-series-platform/chronograf/"&gt;&lt;span style="font-weight: 400;"&gt;Chronograf&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt;, and &lt;/span&gt;&lt;a href="https://w2.influxdata.com/time-series-platform/kapacitor/"&gt;&lt;span style="font-weight: 400;"&gt;Kapacitor&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt; - collectively called the TICK Stack.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight: 400;"&gt;What is a Time Series?&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight: 400;"&gt;A time series is simply any set of values with a timestamp where time is a meaningful component of the data. The classic real world example of a time series is stock currency exchange price data. For example, the chart below (from &lt;/span&gt;&lt;a href="https://www.coinbase.com/charts?locale=en-US"&gt;&lt;span style="font-weight: 400;"&gt;Coinbase Charts&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt;) shows the US dollar to bitcoin exchange price for the past month.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;img class="alignnone wp-image-207426" src="https://www.influxdata.com/wp-content/uploads/time-series-graph-1-300x127.png" alt="" width="538" height="228" /&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-weight: 400;"&gt;As you can see in the graph above, the USD price of Bitcoin is displayed over time. The underlying data set used to create this graph is composed of many timestamped values, which together form a set of values. This set of values is a time series.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-weight: 400;"&gt;At this point you may be wondering…&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight: 400;"&gt;Why is This Special?&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight: 400;"&gt;The graph above displays a couple of thousand points across a month’s worth of data. However, cryptocurrencies like Bitcoin are traded frequently, so the underlying data set used to derive the graph likely contains several tens of millions of data points. In fact, there is usually so much data in most time series that it’s almost always summarized when it is displayed, and a screen doesn’t have enough pixels to display the full granularity of the data. There are other cryptocurrencies too, and thousands of regular currencies being exchanged.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-weight: 400;"&gt;The amount of time series data being generated is simply enormous. This scale has been one of the primary drivers behind the creation of specialized data stores for time series data.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;What Exactly is a Time Series Database?&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight: 400;"&gt;Time Series Databases typically need to solve two problems: high write throughput and high query rates. Let’s go into more depth on these points.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
 	&lt;li style="font-weight: 400;"&gt;&lt;b&gt;Write throughput&lt;/b&gt;&lt;span style="font-weight: 400;"&gt;: The amount of time series generated by, say, monitoring a fleet of servers can quickly grow from thousands of new values per second to millions of new values per second. Inserting that amount of data into a regular relational database, like MySQL and PostgreSQL, quickly knocks over most systems without careful tuning. Even then, there are limits to the amount of data a system can accept at any one time.&lt;/span&gt;&lt;/li&gt;
 	&lt;li style="font-weight: 400;"&gt;&lt;b&gt;Query throughput&lt;/b&gt;&lt;span style="font-weight: 400;"&gt;: One aspect of time series data is that new data is almost always more valuable than the old data. Again, think of a fleet of servers. Knowing that one server has started to use up all its CPU is much more useful than looking at the evidence even minutes after the CPU spiked. The real-time nature of time series makes it necessary to expose new data in queries as fast as possible. Additionally, not every point matters in a time series. Like the bitcoin chart above, most time series data is summarized into intermediate values because trends provide more information than individual data points.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight: 400;"&gt;Because a Time Series Database specializes in processing timestamped data, there are many optimizations available to address the two fundamental issues above along with a few others.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
 	&lt;li style="font-weight: 400;"&gt;&lt;b&gt;Compression&lt;/b&gt;&lt;span style="font-weight: 400;"&gt;: Since all time series consist of timestamped data, a significant amount of compression is possible.&lt;/span&gt;&lt;/li&gt;
 	&lt;li style="font-weight: 400;"&gt;&lt;b&gt;Query functions&lt;/b&gt;&lt;span style="font-weight: 400;"&gt;: Speed is not the only important thing in queries.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;What is InfluxDB?&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://www.influxdata.com/time-series-platform/influxdb/"&gt;&lt;span style="font-weight: 400;"&gt;InfluxDB&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt; is a high performance Time Series Database. It can store hundreds of thousands of points per second. The InfluxDB SQL-like query language was built specifically for time series. Check out the &lt;/span&gt;&lt;a href="https://docs.influxdata.com/influxdb/latest/introduction/getting_started/"&gt;&lt;span style="font-weight: 400;"&gt;InfluxDB documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt; to start learning more.&lt;/span&gt;&lt;/p&gt;

&lt;h2&gt;What is the TICK Stack?&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight: 400;"&gt;The &lt;/span&gt;&lt;a href="https://www.influxdata.com/time-series-platform/"&gt;&lt;span style="font-weight: 400;"&gt;TICK&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt; Stack is an acronym for a platform of open source tools built to make collection, storage, graphing, and alerting on time series data incredibly easy. The “I” in TICK stands for InfluxDB. The other components in the platform are:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
 	&lt;li style="font-weight: 400;"&gt;&lt;a href="https://www.influxdata.com/time-series-platform/telegraf/"&gt;&lt;span style="font-weight: 400;"&gt;Telegraf&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt;: A metrics collection agent. Use it to collect and send metrics to InfluxDB. Telegraf's plugin architecture supports collection of metrics from 100+ popular services right out of the box.&lt;/span&gt;&lt;/li&gt;
 	&lt;li style="font-weight: 400;"&gt;&lt;a href="https://www.influxdata.com/time-series-platform/chronograf/"&gt;&lt;span style="font-weight: 400;"&gt;Chronograf&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt;: A UI layer for the whole TICK stack. Use it to set up graphs and dashboards of data in InfluxDB and hook up Kapacitor alerts.&lt;/span&gt;&lt;/li&gt;
 	&lt;li style="font-weight: 400;"&gt;&lt;a href="https://www.influxdata.com/time-series-platform/kapacitor/"&gt;&lt;span style="font-weight: 400;"&gt;Kapacitor&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt;: A metrics and events processing and alerting engine. Use it to crunch time series data into actionable alerts and easily send those alerts to many popular products like PagerDuty and Slack.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight: 400;"&gt;The entire TICK Stack is interoperable, yet each component can provide significant value as a standalone installation.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-weight: 400;"&gt;The rest of this guide will explain how to set up the TICK stack on macOS for development and testing.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight: 400;"&gt;Step 1: Install the TICK Stack&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight: 400;"&gt;On macOS, installation of the TICK stack is a breeze using the &lt;/span&gt;&lt;a href="https://brew.sh/"&gt;&lt;span style="font-weight: 400;"&gt;Homebrew package manager&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;pre class="line-numbers"&gt;&lt;code class="language-markup"&gt;brew install telegraf

brew install influxdb

brew install chronograf

brew install kapacitor&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight: 400;"&gt;The above commands will install several binaries into your path. The important ones are &lt;/span&gt;&lt;span style="font-weight: 400;"&gt;telegraf&lt;/span&gt;&lt;span style="font-weight: 400;"&gt;, &lt;/span&gt;&lt;span style="font-weight: 400;"&gt;influxd&lt;/span&gt;&lt;span style="font-weight: 400;"&gt; (the InfluxDB server), &lt;/span&gt;&lt;span style="font-weight: 400;"&gt;influx&lt;/span&gt;&lt;span style="font-weight: 400;"&gt; (the InfluxDB CLI), &lt;/span&gt;&lt;span style="font-weight: 400;"&gt;chronograf&lt;/span&gt;&lt;span style="font-weight: 400;"&gt;, &lt;/span&gt;&lt;span style="font-weight: 400;"&gt;kapacitord&lt;/span&gt;&lt;span style="font-weight: 400;"&gt; (the Kapacitor server), and &lt;/span&gt;&lt;span style="font-weight: 400;"&gt;kapacitor&lt;/span&gt;&lt;span style="font-weight: 400;"&gt; (the Kapacitor CLI).&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight: 400;"&gt;Step 2: Configure the TICK Stack&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight: 400;"&gt;Telegraf, InfluxDB, and Kapacitor all use configuration files. Most configuration values in the TICK Stack do not need to be changed out of the box on macOS. In fact, Chronograf does not require a configuration file and can be configured entirely via CLI flags. Here are the commands to generate a new config file for the other three components:&lt;/span&gt;&lt;/p&gt;
&lt;pre class="line-numbers"&gt;&lt;code class="language-markup"&gt;# The telegraf config generated here will be already set up to only gather CPU, memory, and system metrics.

telegraf --input-filter cpu:mem:system --output-filter influxdb config &amp;gt; /usr/local/etc/telegraf.conf

influxd config &amp;gt; /usr/local/etc/influxdb.conf

kapacitord config &amp;gt; /usr/local/etc/kapacitor.conf&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight: 400;"&gt;On macOS, InfluxDB, Chronograf, and Kapacitor will store their data in the default directories at &lt;/span&gt;&lt;span style="font-weight: 400;"&gt;~/.influxdb&lt;/span&gt;&lt;span style="font-weight: 400;"&gt;, &lt;/span&gt;&lt;span style="font-weight: 400;"&gt;~/.chronograf&lt;/span&gt;&lt;span style="font-weight: 400;"&gt;, and &lt;/span&gt;&lt;span style="font-weight: 400;"&gt;~/.kapacitor&lt;/span&gt;&lt;span style="font-weight: 400;"&gt;, respecitvely. These locations can be overridden in the configuration files, but do not need to be changed right now.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight: 400;"&gt;Step 3: Run the TICK Stack&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight: 400;"&gt;Now that configuration files have been generated, spinning up the TICK Stack is very easy using Homebrew services.&lt;/span&gt;&lt;/p&gt;
&lt;pre class="line-numbers"&gt;&lt;code class="language-markup"&gt;brew services start telegraf

brew services start influxdb

brew services start chronograf

brew services start kapacitor&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-weight: 400;"&gt;This will start all the TICK component processes in the background. The logs for Homebrew services can be found in the &lt;/span&gt;&lt;span style="font-weight: 400;"&gt;/usr/local/var/log&lt;/span&gt;&lt;span style="font-weight: 400;"&gt; directory if you run into any trouble.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-weight: 400;"&gt;Voilà! The TICK Stack is now running. In this setup, Telegraf is collecting CPU and memory metrics and writing them to InfluxDB’s &lt;/span&gt;&lt;span style="font-weight: 400;"&gt;telegraf&lt;/span&gt;&lt;span style="font-weight: 400;"&gt; database, which was automatically created. &lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-weight: 400;"&gt;There are several ways to interact with the stack. InfluxDB and Kapacitor have APIs available, along with CLI tools to make it easier to interact with their APIs. Additional Telegraf plugins can be configured to gather additional data as well. Finally, Chronograf provides a UI for data in InfluxDB.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-weight: 400;"&gt;Let’s open Chronograf in the browser to see the data being collected. Navigate to &lt;/span&gt;&lt;a href="http://localhost:8888"&gt;&lt;span style="font-weight: 400;"&gt;http://localhost:8888&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt;. This will bring up a configuration page. Using the default settings will automatically connect InfluxDB to Chronograf and allow you to begin exploring the local system data you’ve started collecting in InfluxDB.&lt;/span&gt;&lt;/p&gt;

&lt;h2&gt;Next Steps&lt;/h2&gt;

&lt;p&gt;&lt;span style="font-weight: 400;"&gt;To learn more about InfluxDB and the TICK Stack, read through the &lt;/span&gt;&lt;a href="https://docs.influxdata.com/influxdb/v1.8/introduction/get-started/" target="_blank" rel="noopener"&gt;&lt;span style="font-weight: 400;"&gt;InfluxDB Getting Started guide&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt;. Then take a look at the &lt;/span&gt;&lt;a href="https://docs.influxdata.com/influxdb/v1.3/concepts/key_concepts/"&gt;&lt;span style="font-weight: 400;"&gt;InfluxDB key concepts doc&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt;, which is a great overview of the InfluxDB data model.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-weight: 400;"&gt;Check out the Getting Started guides for &lt;/span&gt;&lt;a href="https://docs.influxdata.com/telegraf/v1.4/introduction/getting_started/"&gt;&lt;span style="font-weight: 400;"&gt;Telegraf&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt; and &lt;/span&gt;&lt;a href="https://docs.influxdata.com/kapacitor/v1.3/"&gt;&lt;span style="font-weight: 400;"&gt;Kapacitor&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt;. If you have questions or hit errors, we recommend checking out the &lt;/span&gt;&lt;a href="https://community.influxdata.com/"&gt;&lt;span style="font-weight: 400;"&gt;InfluxData Community&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt;. Finally, the TICK Stack is open source and always &lt;/span&gt;&lt;a href="https://github.com/influxdata/influxdb"&gt;&lt;span style="font-weight: 400;"&gt;welcomes new contributors&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: 400;"&gt;.&lt;/span&gt;&lt;/p&gt;
</description>
      <pubDate>Fri, 22 Sep 2017 11:49:45 -0700</pubDate>
      <link>https://www.influxdata.com/blog/introduction-to-influxdatas-influxdb-and-tick-stack/</link>
      <guid isPermaLink="true">https://www.influxdata.com/blog/introduction-to-influxdatas-influxdb-and-tick-stack/</guid>
      <category>Product</category>
      <category>Developer</category>
      <category>Company</category>
      <author>Gunnar Aasen (InfluxData)</author>
    </item>
  </channel>
</rss>
