Daniel Lee at Opensource.comhttps://opensource.com/user_articles/350531
en10 Grafana features you need to know for effective monitoringhttps://opensource.com/article/20/2/grafana-features
<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="schema:articleBody content:encoded"><p>The <a href="https://github.com/grafana/grafana" target="_blank">Grafana</a> project <a href="https://grafana.com/blog/2019/09/03/the-mostly-complete-history-of-grafana-ux/" target="_blank">started in 2013</a> when <a href="https://grafana.com/author/torkel" target="_blank">Torkel Ödegaard</a> decided to fork Kibana and turn it into a time-series and graph-focused dashboarding tool. His guiding vision: to make everything look more clean and elegant, with fewer things distracting you from the data.</p>
<p>More than 500,000 active installations later, Grafana dashboards are ubiquitous and instantly recognizable. (Even during a <a href="https://youtu.be/ANv5UfZsvZQ?t=29" target="_blank">SpaceX launch</a>!)</p>
<p>Whether you're a recent adopter or an experienced power user, you may not be familiar with all of the features that <a href="https://grafana.com/" target="_blank">Grafana Labs</a>—the company formed to accelerate the adoption of the Grafana project and to build a sustainable business around it—and the Grafana community at large have developed over the past 6+ years.</p>
<p>Here's a look at some of the most impactful:</p>
<ol><li><strong>Dashboard templating</strong>: One of the key features in Grafana, templating allows you to create dashboards that can be reused for lots of different use cases. Values aren't hard-coded with these templates, so for instance, if you have a production server and a test server, you can use the same dashboard for both. Templating allows you to drill down into your data, say, from all data to North America data, down to Texas data, and beyond. You can also share these dashboards across teams within your organization—or if you create a great dashboard template for a popular data source, you can contribute it to the whole community to customize and use.</li>
<li><strong>Provisioning</strong>: While it's easy to click, drag, and drop to create a single dashboard, power users in need of many dashboards will want to automate the setup with a script. You can script anything in Grafana. For example, if you're spinning up a new Kubernetes cluster, you can also spin up a Grafana automatically with a script that would have the right server, IP address, and data sources preset and locked. It's also a way of getting control over a lot of dashboards.</li>
<li><strong>Annotations:</strong> This feature, which shows up as a graph marker in Grafana, is useful for correlating data in case something goes wrong. You can create the annotations manually—just control-click on a graph and input some text—or you can fetch data from any data source. (Check out how Wikimedia uses annotations on its <a href="https://grafana.wikimedia.org/d/000000143/navigation-timing?orgId=1&amp;refresh=5m" target="_blank">public Grafana dashboard</a>, and here is <a href="https://community.openhab.org/t/howto-create-annotations-in-grafana-via-rules/48929" target="_blank">another example</a> from the OpenHAB community.) A good example is if you automatically create annotations around releases, and a few hours after a new release, you start seeing a lot of errors, then you can go back to your annotation and correlate whether the errors started at the same time as the release. This automation can be achieved using the Grafana HTTP API (see examples <a href="https://docs.microsoft.com/en-us/azure/devops/service-hooks/services/grafana?view=azure-devops" target="_blank">here</a> and <a href="https://medium.com/contentsquare-engineering-blog/from-events-to-grafana-annotation-f35aafe8bd3d" target="_blank">here</a>). Many of Grafana's largest customers use the HTTP API for a variety of tasks, particularly setting up databases and adding users. It's an alternative to provisioning for automation, and you can do more with it. For instance, the team at DigitalOcean used the API to integrate a <a href="https://youtu.be/kV3Ua6guynI" target="_blank">snapshot feature for reviewing dashboards</a>.</li>
<li><strong>Kiosk mode and playlists:</strong> If you want to display your Grafana dashboards on a TV monitor, you can use the playlist feature to pick the dashboards that you or your team need to look at through the course of the day and have them cycle through on the screen. The <a href="https://play.grafana.org/d/vmie2cmWz/bar-gauge?orgId=1&amp;refresh=10s&amp;kiosk" target="_blank">kiosk mode</a> hides all the user interface elements that you don't need in view-only mode. Helpful hint: The <a href="https://github.com/grafana/grafana-kiosk" target="_blank">Grafana Kiosk</a> utility handles logging in, switching to kiosk mode, and opening a playlist—eliminating the pain of logging in on a TV that has no keyboard.</li>
<li><strong>Custom plugins:</strong> Plugins allow you to extend Grafana with integrations with other tools, different visualizations, and more. Some of the most popular in the community are <a href="https://grafana.com/grafana/plugins/grafana-worldmap-panel" target="_blank">Worldmap Panel</a> (for visualizing data on top of a map), <a href="https://grafana.com/grafana/plugins/alexanderzobnin-zabbix-app" target="_blank">Zabbix</a> (an integration with Zabbix metrics), and <a href="https://grafana.com/grafana/plugins/natel-influx-admin-panel" target="_blank">Influx Admin Panel</a> (which offers other functionality like creating databases or adding users). But they're only the tip of the iceberg. Just by writing a bit of code, you can get anything that produces a timestamp and a value visualized in Grafana. Plus, Grafana Enterprise customers have access to more plugins for integrations with Splunk, Datadog, New Relic, and others.</li>
<li><strong>Alerting and alert hooks:</strong> If you're using Grafana alerting, you can have alerts sent through a number of different notifiers, including PagerDuty, SMS, email, or Slack. Alert hooks allow you to create different notifiers with a bit of code if you prefer some other channels of communication.</li>
<li><strong>Permissions and teams</strong>: When organizations have one Grafana and multiple teams, they often want the ability to both keep things separate and share dashboards. Early on, the default in Grafana was that everybody could see everyone else's dashboards, and that was it. Later, Grafana introduced multi-tenant mode, in which you can switch organizations but can't share dashboards. Some people were using huge hacks to enable both, so Grafana decided to officially create an easier way to do this. Now you can create a team of users and then set permissions on folders, dashboards, and down to the data source level if you're using Grafana Enterprise.</li>
<li><strong>SQL data sources:</strong> Grafana's native support for SQL helps you turn anything—not just metrics—in an SQL database into metric data that you can graph. Power users are using SQL data sources to do a whole bunch of interesting things, like creating business dashboards that "make sense for your boss's boss," as the team at Percona put it. Check out their <a href="https://www.youtube.com/watch?v=-xlchgoqkqY" target="_blank">presentation at GrafanaCon</a>.</li>
<li><strong>Monitoring your monitoring</strong>: If you're serious about monitoring and you want to monitor your own monitoring, Grafana has its own Prometheus HTTP endpoint that Prometheus can scrape. It's quite simple to get dashboards and statics. There's also an enterprise version in development that will offer Google Analytics-style easy access to data, such as how much CPU your Grafana is using or how long alerting is taking.</li>
<li><strong>Authentication</strong>: Grafana supports different authentication styles, such as LDAP and OAuth, and allows you to map users to organizations. In Grafana Enterprise, you can also map users to teams: If your company has its own authentication system, Grafana allows you to map the teams in your internal systems to teams in Grafana. That way, you can automatically give people access to the dashboards designated for their teams.</li>
</ol><p>Want to take a deeper dive? Join the <a href="https://community.grafana.com/" target="_blank">Grafana community</a>, check out the <a href="https://community.grafana.com/c/howto/6" target="_blank">how-to section</a>, and share what you think.</p>
</div></div></div><div class="field field-name-field-lead-image field-type-image field-label-above"><div class="field-label">Lead Image:&nbsp;</div><div class="field-items"><div class="field-item even" rel="schema:contentUrl" resource="https://opensource.com/sites/default/files/lead-images/metrics_data_dashboard_system_computer_analytics.png"><img typeof="foaf:Image" src="https://opensource.com/sites/default/files/lead-images/metrics_data_dashboard_system_computer_analytics.png" width="520" height="293" alt="metrics and data shown on a computer screen" title="metrics and data shown on a computer screen" /></div></div></div><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="schema:keywords"><a href="/tags/tools" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Tools</a></div></div></div><div class="field field-name-field-article-type field-type-taxonomy-term-reference field-label-above"><div class="field-label">Article Type:&nbsp;</div><div class="field-items"><div class="field-item even" rel="schema:learningResourceType"><a href="/article-type/article" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Article</a></div></div></div><div class="field field-name-field-default-license field-type-text field-label-above"><div class="field-label">Default CC License:&nbsp;</div><div class="field-items"><div class="field-item even" property="schema:license"><p>CC-BY-SA 4.0</p>
</div></div></div><div class="field field-name-field-article-subhead field-type-text-long field-label-above">
<div class="field-label">Subhead:&nbsp;</div>
<div class="field-items">
<h2>Learn how to make the most of this open source dashboard tool.</h2>
</div>
</div>
<div class="form-item form-type-item">
<label>Article Rate </label>
<div class="rate-widget-1 rate-widget clear-block rate-average rate-widget-thumbs_up rate-371a9dc8f7257450f5b8d6ec6412f6e9 rate-node-60931-1-1" id="rate-node-60931-1-1"><div class="rate-info">46</div><a class="rate-button rate-thumbs-up-btn-up" id="rate-button-1" rel="nofollow" href="/user/350531/feed?rate=IlF4LdotErbyfH1amkzRjc5cHHFGE9AGxBPJoY-1-9k" title="up">up</a></div>
</div>
<span rel="schema:url" resource="/article/20/2/grafana-features" class="rdf-meta element-hidden"></span><span property="schema:name" content="10 Grafana features you need to know for effective monitoring" class="rdf-meta element-hidden"></span>Tue, 18 Feb 2020 08:03:00 +0000daniellee60931 at https://opensource.com