Skip to Main Content
Hands-On Infrastructure Monitoring with Prometheus
book

Hands-On Infrastructure Monitoring with Prometheus

by Joel Bastos, Pedro Araújo
May 2019
Intermediate to advanced content levelIntermediate to advanced
442 pages
11h 36m
English
Packt Publishing
Content preview from Hands-On Infrastructure Monitoring with Prometheus

Creating a new template

Before we dive into creating a template, we must first realize what kind of data structures are sent to the notification templates. The following table depicts the available variables that can be used:

Variable

Description

Alerts

A list of Alert structures, each one with its own Status, Labels, Annotations, StartsAt, EndsAt, and GeneratorURL

CommonAnnotations

The annotations that are common to all alerts

CommonLabels

The labels that are common to all alerts

ExternalURL

The URL for the Alertmanager that sent the alert

GroupLabels

The labels that are used in the grouping of alerts

receiver

The receiver that will handle the notification

status

This will be firing as long ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

How Fastly used Prometheus to improve infrastructure and application monitoring

How Fastly used Prometheus to improve infrastructure and application monitoring

Marcus Barczak

Publisher Resources

ISBN: 9781789612349Supplemental Content