- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Core Tech
Kubernetes Metrics and Logging Stack Installation
Metrics and logging provide valuable insight into your applications and infrastructure, and the ability to monitor and observe your systems is just as important on Kubernetes clusters as it would be elsewhere. In this lab, you set up Grafana, Prometheus, and Loki to ingest and visualize metrics and logs from within your Kubernetes cluster.
Lab Info
Table of Contents
-
Challenge
Prepare the environment
Create an
observabilitynamespace to store monitoring services, and ensure the object storage solution has the appropriate buckets needed for Loki to store logs. Set up the local path provisioner. -
Challenge
Install and configure Grafana
Add the Grafana Community Helm chart, then create a Kubernetes secret to store the Grafana username and password. Create a Helm values file to configure Grafana, mapping it to a public node port. Install Grafana via Helm.
-
Challenge
Install and configure the Prometheus stack
Add the Prometheus Community Helm chart, then create a Helm values file to configure the Prometheus stack (Prometheus, AlertManger, and the Node Exporter), ensuring Prometheus and AlertManager use the local path storage class. Install the stack via Helm. Once installed, add Prometheus as a data source in the Grafana UI.
-
Challenge
Install and configure Loki
Create a Kubernetes Secret containing the SeaweedFS credentials for use with Loki. Create a Helm values file to configure Loki, then install it via Helm using the Grafana Community Helm chart. Add Loki as a datasource in the Grafana UI.
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.