Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learn Grafana 10.x
  • Table Of Contents Toc
  • Feedback & Rating feedback
Learn Grafana 10.x

Learn Grafana 10.x

By : Salituro
3 (3)
close
close
Learn Grafana 10.x

Learn Grafana 10.x

3 (3)
By: Salituro

Overview of this book

Get ready to unlock the full potential of the open-source Grafana observability platform, ideal for analyzing and monitoring time-series data with this updated second edition. This beginners guide will help you get up to speed with Grafana’s latest features for querying, visualizing, and exploring logs and metrics, no matter where they are stored. Starting with the basics, this book demonstrates how to quickly install and set up a Grafana server using Docker. You’ll then be introduced to the main components of the Grafana interface before learning how to analyze and visualize data from sources such as InfluxDB, Telegraf, Prometheus, Logstash, and Elasticsearch. The book extensively covers key panel visualizations in Grafana, including Time Series, Stat, Table, Bar Gauge, and Text, and guides you in using Python to pipeline data, transformations to facilitate analytics, and templating to build dynamic dashboards. Exploring real-time data streaming with Telegraf, Promtail, and Loki, you’ll work with observability features like alerting rules and integration with PagerDuty and Slack. As you progress, the book addresses the administrative aspects of Grafana, from configuring users and organizations to implementing user authentication with Okta and LDAP, as well as organizing dashboards into folders, and more. By the end of this book, you’ll have gained all the knowledge you need to start building interactive dashboards.
Table of Contents (23 chapters)
close
close
1
Part 1 – Getting Started with Grafana
5
Part 2 – Real-World Grafana
16
Part 3 – Managing Grafana

Configuring the InfluxDB data source

Now that we have our InfluxDB server ready to accept data, let’s get Grafana ready to communicate with it:

  1. Open your browser to the Grafana app and select Connections | Add new connection from the main menu.
  2. Search for the InfluxDB data source and select it.
  3. Click on Add a new data source. Fill out the following form fields:
    • Name: InfluxDB
    • Query Language: InfluxQL
    • HTTP | URL: http://influxdb:8086
    • Custom HTTP Headers | Header: Authorization
    • Custom HTTP Headers | Value: Token <API Token>
    • Database: Chapter08

Note

Make sure there is a space between Token and <API Token>.

Your data source configuration should look like this:

Figure 8.1 – InfluxDB data source

Figure 8.1 – InfluxDB data source

Click on Save and Test to confirm you can successfully connect to the InfluxDB server.

Building the Python Docker container

Use the requirements.txt file in the Chapter08 repository to create a Docker container with...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY