Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Grafana 10.x

You're reading from   Learn Grafana 10.x A beginner's guide to practical data analytics, interactive dashboards, and observability

Arrow left icon
Product type Paperback
Published in Dec 2023
Publisher Packt
ISBN-13 9781803231082
Length 542 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Eric Salituro Eric Salituro
Author Profile Icon Eric Salituro
Eric Salituro
Arrow right icon
View More author details
Toc

Table of Contents (23) Chapters Close

Preface 1. Part 1 – Getting Started with Grafana
2. Chapter 1: Introducing Data Visualization with Grafana FREE CHAPTER 3. Chapter 2: Touring the Grafana Interface 4. Chapter 3: Diving into Grafana's Time Series Visualization 5. Part 2 – Real-World Grafana
6. Chapter 4: Connecting Grafana to a Prometheus Data Source 7. Chapter 5: Extracting and Visualizing Data with InfluxDB and Grafana 8. Chapter 6: Shaping Data with Grafana Transformations 9. Chapter 7: Surveying Key Grafana Visualizations 10. Chapter 8: Surveying Additional Grafana Visualizations 11. Chapter 9: Creating Insightful Dashboards 12. Chapter 10: Working with Advanced Dashboard Features and Elasticsearch 13. Chapter 11: Streaming Real-Time IoT Data from Telegraf Agent to Grafana Live 14. Chapter 12: Monitoring Data Streams with Grafana Alerts 15. Chapter 13: Exploring Log Data with Grafana’s Loki 16. Part 3 – Managing Grafana
17. Chapter 14: Organizing Dashboards and Folders 18. Chapter 15: Managing Permissions for Users, Teams, and Organizations 19. Chapter 16: Authenticating Grafana Logins Using LDAP or OAuth 2 Providers 20. Chapter 17: Cloud Monitoring AWS, Azure, and GCP 21. Index 22. Other Books You May Enjoy

Setting up the InfluxDB database

Here, we’ll log in to our InfluxDB server, set up an initial account and bucket, and generate an API key so we can connect to it from our Python script and the Grafana data source.

Initializing the InfluxDB server

Log in to the InfluxDB UI at http://localhost:8086. If you haven’t already set up the instance, you’ll see a prompt to perform the initialization:

  1. Set the username to whatever you like.
  2. Add a password (a minimum of eight characters minimum).
  3. Choose an organization name, in our case, LearnGrafana.
  4. Create a bucket, in our case, Chapter07.

Generating an API token

Generating an API key is a very straightforward process. You’ll need this token in order to access the InfluxDB server from your script:

  1. Click on Load Data | API Tokens.
  2. Click the gear icon on the right side of the user you created previously and select Clone.
  3. Click on Copy to clipboard to save the API token...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime