Chapter 8. Metric Collection with InfluxDB

In this chapter, we are going to cover the following topics:

  • Installing InfluxDB
  • Creating a new InfluxDB database
  • Logging events with the InfluxDB REST API
  • Gathering host statistics with Telegraf
  • Exploring data with the InfluxDB data explorer
  • Installing Grafana
  • Creating dashboards with Grafana

Introduction

The importance of monitoring cannot be overstated and it is seen as one of the core elements of a DevOps approach to a system. Monitoring takes many shapes; however, it's common to stop once you've added state monitoring, such as Is the database up? or Is the site responding?. These are indeed critical things to monitor, but they don't cover important questions such as How fast am I responding to requests?

Get Learning DevOps: Continuously Deliver Better Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.