All Projects → PacktPublishing → Learn-Grafana-7.0

PacktPublishing / Learn-Grafana-7.0

Licence: MIT License
Learn Grafana 7.0, published by packt

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects
Dockerfile
14818 projects

Learn Grafana 7.0

Learn Grafana 7.0

This is the code repository for Learn Grafana 7.0, published by Packt.

A beginner's guide to getting well versed in analytics, interactive dashboards, and monitoring

What is this book about?

Grafana is an open-source analytical platform used to analyze and monitoring time-series data. This beginner's guide will help you get to grips with Grafana's new features for querying, visualizing, and exploring metrics and logs no matter where they are stored.

This book covers the following exciting features:

  • Find out how to visualize data using Grafana
  • Understand how to work with the major components of the Graph panel
  • Explore mixed data sources, query inspector, and time interval settings
  • Discover advanced dashboard features such as annotations, templating with variables, dashboard linking, and dashboard sharing techniques
  • Connect user authentication to Google, GitHub, and a variety of external services

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders.

The code will look like the following:

def main():
    logging.basicConfig(level=logging.INFO)

Following is what you need for this book: This book is for business intelligence developers, business analysts, data analysts, and anyone interested in performing time-series data analysis and monitoring using Grafana. Those looking to create and share interactive dashboards or looking to get up to speed with the latest features of Grafana will also find this book useful. Although no prior knowledge of Grafana is required, basic knowledge of data visualization and some experience in Python programming will help you understand the concepts covered in the book.

With the following software and hardware list you can run all code files present in the book (Chapter 1-14).

Software and Hardware List

Software required OS required
Grafana Windows 10 Pro, Linux, Docker
Docker Windows 10 Pro, or Linux
Loki/Promtail Runs in Docker
Prometheus Runs in Docker
InfluxDB Runs in Docker
Logstash Runs in Docker
Elasticsearch Runs in Docker
OpenLDAP Runs in Docker

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it

Errata

Chapter 06, Page 133 should read:

  1. Build the Python container to run our scripts:
    $ docker build --pull --tag python/ch6 .
  1. ...
    $ docker run --rm --network=host -v "$(PWD):/usr/src/app" \
             --name python python/ch6 bin/weather.py \
             --output data/wx.txt \
             --stations KSFO,KDEN,KSTL,KJFK
  1. ...
    $ docker run --rm --network=host -v "$(PWD):/usr/src/app" \
             --name python python/ch6 bin/weather.py \
             --input data/wx.txt \
             --db weatherdb

Chapter 06, page 157 should read:

Adding load_eq_data()

The only significant differences in our file load subroutine, called load_eq_data() is the encoding of the data to accommodate Unicode (UTF-8) characters:

    data = input_file.read().encode('utf-8')

and the specification of time precision in milliseconds (ms):

response = requests.post(url, params=dict(db=db_name, precision="ms"),
data=data)

Chapter 08, page 204 should include additional lines:

To load the data into ElasticSearch, run the following command:

% docker-compose run logstash logstash < data/Current_FY_Cases.csv

For Windows PowerShell, the command is:

Get-Content .\data\Current_FY_Cases.csv | docker-compose run logstash logstash

Related products

Get to Know the Author

Eric Salituro is currently a senior software engineer with the enterprise data and analytics platform team at Zendesk. He has an IT career that spans more than 30 years, over 20 of which were spent in the motion picture industry working as a pipeline technical director and software developer for innovative and creative studios such as DreamWorks, Digital Domain, and Pixar. Before moving to Zendesk, he worked at Pixar, helping to manage and maintain their production render farm as a senior software developer. Among his accomplishments is the development of a Python API toolkit for Grafana aimed at streamlining the creation of rendering metrics dashboards.

Suggestions and Feedback

Click here if you have any feedback or suggestions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].