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

Using the custom service discovery

To see for ourselves how a custom service discovery behaves, we'll rely on our test environment. The custom-sd binary, which recreates the Consul discovery integration as an example of a custom service discovery, is deployed alongside Prometheus and is ready to be used. Together with the Consul deployment, we have all the required components in the test environment to see how everything fits together.

custom-sd can be built on a machine with a Go development environment set up by issuing the following command: go get github.com/prometheus/prometheus/documentation/examples/custom-sd/adapter-usage.

First, we need to ensure that we are connected to the prometheus instance. We can use the following command: ...

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