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

Deployment

Although historically the cAdvisor code was embedded in the Kubelet binary, it is currently scheduled to be deprecated there. Therefore, we'll be launching cAdvisor as a DaemonSet to future proof this example and to expose its configurations, while also enabling its web interface, as a Kubernetes service, to be explored.

Ensure you move into the correct repository path as shown here:

cd ./chapter06/provision/kubernetes/

Next, we must create a DaemonSet, because we want cAdvisor running in every single node:

apiVersion: apps/v1kind: DaemonSetmetadata:  name: cadvisor  namespace: monitoring...

Notice all the volume mounts allowing the collection of data from the Docker daemon and various Linux resources as shown here:

...    spec: containers: ...
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