# KodeKloud: Courses Prep Course - Prometheus Certified Associate (PCA) Certification ## Prep Course - Prometheus Certified Associate (PCA) Certification ### Introduction - [Course: Prep Course - Prometheus Certified Associate (PCA) Certification](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/index.md): A hands-on course preparing learners for Prometheus Certified Associate covering observability fundamentals, Prometheus installation and usage, PromQL, instrumentation, alerting, Kubernetes monitoring, scaling, and certification labs. - [Course Introduction](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Introduction/Course-Introduction/page.md): A hands-on course preparing learners for Prometheus Certified Associate covering observability fundamentals, Prometheus installation and usage, PromQL, instrumentation, alerting, Kubernetes monitoring, scaling, and certification labs. ### Observability Fundamentals - [Intro to Observability](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Observability-Fundamentals/Intro-to-Observability/page.md): Explains observability for distributed systems, detailing logs, traces, and metrics and how they aid troubleshooting, diagnosis, and performance monitoring. - [SLOSLASLI](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Observability-Fundamentals/SLOSLASLI/page.md): Defines SLIs SLOs and SLAs, guides choosing user-focused metrics, setting realistic objectives, using error budgets, and balancing reliability with product velocity ### Prometheus Fundamentals - [Prometheus Use Case](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Prometheus-Fundamentals/Prometheus-Use-Case/page.md): Explains Prometheus use cases including metric collection across sites, alerting with Alertmanager, correlating metrics with PromQL, and pairing with Grafana for visualization. - [Prometheus Basics](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Prometheus-Fundamentals/Prometheus-Basics/page.md): Overview of Prometheus monitoring system, its metrics collection, query language, exporters, and alerting basics. - [Prometheus Architecture](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Prometheus-Fundamentals/Prometheus-Architecture/page.md): Overview of Prometheus architecture, metric collection, exporters, Pushgateway, service discovery, Alertmanager, TSDB, PromQL querying, and visualization with Grafana. - [Prometheus Installation](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Prometheus-Fundamentals/Prometheus-Installation/page.md): Guide to download, validate, run, and query a Prometheus server from precompiled binaries, including configuration checks, starting the server, web UI access, and troubleshooting. - [Prometheus Installation systemd](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Prometheus-Fundamentals/Prometheus-Installation-systemd/page.md): Guide to install Prometheus, place files in standard system locations, create a systemd service, and run Prometheus as a background service that starts at boot - [Prometheus Installation Demo](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Prometheus-Fundamentals/Prometheus-Installation-Demo/page.md): Guide to install and run Prometheus as a systemd service on Linux, including user, directories, binaries, configuration, permissions, unit file setup, and verifying the service. - [Node Exporter](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Prometheus-Fundamentals/Node-Exporter/page.md): Guide to install, run, and configure Prometheus Node Exporter to expose Linux host and hardware metrics on port 9100 and add it to Prometheus scrape configuration. - [Node Exporter systemd](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Prometheus-Fundamentals/Node-Exporter-systemd/page.md): Guide to install and configure Prometheus node_exporter as a systemd service so it runs as a nonprivileged user and starts automatically on boot - [Prometheus Configuration](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Prometheus-Fundamentals/Prometheus-Configuration/page.md): Guide to configuring Prometheus scrape jobs, targets, intervals, timeouts, metrics paths, authentication, validation and reload procedures. - [AuthenticationEncryption](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Prometheus-Fundamentals/AuthenticationEncryption/page.md): Guide to securing Prometheus scrapes from Node Exporter using TLS and HTTP Basic authentication and configuring Prometheus and Node Exporter with best practices - [Metrics](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Prometheus-Fundamentals/Metrics/page.md): Explains Prometheus metrics structure, types, labels, time series storage, and best practices for naming, labeling, and choosing appropriate metric types. - [Exploring Expression Browser](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Prometheus-Fundamentals/Exploring-Expression-Browser/page.md): Guide to using the Prometheus expression browser to run PromQL queries, inspect time series, evaluate historical data, create simple graphs, and troubleshoot metric collection. - [Prometheus in Docker Container](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Prometheus-Fundamentals/Prometheus-in-Docker-Container/page.md): Running Prometheus in a Docker container using bind-mounted configuration and data, exposing port 9090 and enabling lifecycle reloads. - [Intro to PromTools](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Prometheus-Fundamentals/Intro-to-PromTools/page.md): Overview of promtool, the Prometheus CLI for validating configurations and rules, testing metrics and queries, and debugging Prometheus servers - [Monitoring Containers](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Prometheus-Fundamentals/Monitoring-Containers/page.md): Guide showing how to collect Docker daemon and per container metrics with Prometheus using Docker Engine metrics and cAdvisor, plus scrape configuration and security considerations. ### PromQL - [Introduction](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/PromQL/Introduction/page.md): Overview of PromQL result types and usage, explaining scalars, instant vectors, and range vectors, and when to use them for dashboards, alerts, and time-windowed functions - [Selectors Matchers](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/PromQL/Selectors-Matchers/page.md): Explains Prometheus label selectors and matchers, covering equality, inequality, regex, combining matchers, and instant versus range vectors. - [Modifiers](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/PromQL/Modifiers/page.md): Explains Prometheus modifiers offset and at for retrieving past metric values, anchoring queries and range vectors, with examples and practical use cases. - [PromQL Demo](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/PromQL/PromQL-Demo/page.md): Guide to using PromQL label selectors, regexes, range vectors, offset and @ time modifier with examples using node_cpu_seconds_total and node_filesystem_files - [Operators](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/PromQL/Operators/page.md): Overview of PromQL operators for transforming, comparing, combining and ordering metric queries with arithmetic, comparison, boolean, logical operators, precedence, and practical examples - [Vector Matching](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/PromQL/Vector-Matching/page.md): Describes PromQL vector matching rules, how labels pair instant vectors, and using on, ignoring, group_left and group_right for correct one-to-one and many-to-one operations - [Aggregation](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/PromQL/Aggregation/page.md): PromQL aggregation operators and how to use by and without to summarize and group time series metrics in Prometheus - [Functions](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/PromQL/Functions/page.md): Overview of PromQL functions for Prometheus covering math, time, type conversion, sorting, presence checks, histograms, and rate calculations with examples and best practices. - [Subquery](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/PromQL/Subquery/page.md): Explains Prometheus subqueries in PromQL, showing how to evaluate instant-vector expressions over ranges for use with range-vector functions. - [HistogramSummary](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/PromQL/HistogramSummary/page.md): Explains Prometheus histograms and summaries, reading metrics, PromQL examples for rates, quantiles and bucket math, and guidance on accuracy, cardinality, and SLO extraction - [Recording Rules](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/PromQL/Recording-Rules/page.md): Guide to Prometheus recording rules, covering configuration, PromQL examples, naming and grouping best practices, evaluation semantics, deployment and reloading to precompute and store time series - [HTTP API](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/PromQL/HTTP-API/page.md): Guide to using Prometheus HTTP API to run PromQL instant and range queries, retrieve series and rules, with curl examples, parameters, JSON responses and usage tips ### Dashboarding & Visualization - [Introduction](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Dashboarding-Visualization/Introduction/page.md): Overview of Prometheus visualization options, comparing expression browser, console templates, and Grafana, with guidance on use cases, PromQL example, and dashboard tradeoffs. - [Expression Browser](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Dashboarding-Visualization/Expression-Browser/page.md): Prometheus Expression Browser is a lightweight web UI for running PromQL queries, testing expressions, inspecting metrics and labels, and drawing quick graphs for ad hoc troubleshooting. - [Console Templates](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Dashboarding-Visualization/Console-Templates/page.md): Guide to Prometheus console templates using Go templating to create custom HTML dashboards that embed metrics, PromQL queries, charts, and reusable template fragments. ### Application Instrumentation - [Introduction](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Application-Instrumentation/Introduction/page.md): How to instrument applications with Prometheus client libraries, metric types, and a Python Flask example exposing metrics for scraping, plus best practices on labels and security. - [Instrumentation basics](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Application-Instrumentation/Instrumentation-basics/page.md): Demonstrating how to add Prometheus instrumentation to a Flask app to count HTTP requests and expose metrics via separate port or /metrics - [Labels](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Application-Instrumentation/Labels/page.md): Guides using Python Prometheus client to count HTTP requests, comparing global, per-endpoint, and labeled counters, with PromQL examples and advice on label usage and cardinality. - [HistogramSummary](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Application-Instrumentation/HistogramSummary/page.md): Guide to implementing Prometheus histograms in Flask to measure and expose per request latency, configure buckets, and compute aggregated quantiles with Prometheus. - [Gauge](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Application-Instrumentation/Gauge/page.md): Instrumenting Flask with a Prometheus Gauge to track active in-flight requests, ensure safe decrements on errors, and avoid high-cardinality labels - [Best Practice](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Application-Instrumentation/Best-Practice/page.md): Guide to Prometheus-aligned metric naming conventions and instrumentation recommendations for online services, offline pipelines, and batch jobs to improve clarity, querying, and monitoring ### Service Discovery - [Introduction](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Service-Discovery/Introduction/page.md): Explains Prometheus service discovery, benefits, built-in integrations (Kubernetes, EC2, GCE, Azure, Consul, Nomad), configuration tips, relabeling, and troubleshooting. - [File](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Service-Discovery/File/page.md): Explains Prometheus file service discovery using JSON or YAML files to define scrape targets and labels, configuring file_sd_configs, file formats, examples, and best practices. - [AWS](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Service-Discovery/AWS/page.md): How to configure Prometheus EC2 service discovery to find and scrape EC2 instances, manage IAM credentials, use metadata labels and relabeling, and sample prometheus.yml configuration. - [Re Labeling](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Service-Discovery/Re-Labeling/page.md): Guide to Prometheus relabeling explaining how to filter, rename, and transform discovery and metric labels using pre scrape relabel_configs and post scrape metric_relabel_configs - [Re Labeling Demo](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Service-Discovery/Re-Labeling-Demo/page.md): Demonstrates Prometheus relabeling techniques for relabel_configs before scraping and metric_relabel_configs after scraping, with examples, rules, and best practices. ### Push Gateway - [Introduction](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Push-Gateway/Introduction/page.md): Explains the Prometheus Pushgateway for preserving metrics from short-lived jobs, push/merge/delete operations, scraping setup, client libraries, and best practices to avoid stale data and high cardinality - [Installation](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Push-Gateway/Installation/page.md): Guide to installing, running and configuring Prometheus Pushgateway, including systemd service setup, Prometheus scrape configuration, quick testing, security considerations, and troubleshooting. - [Pushing Metrics](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Push-Gateway/Pushing-Metrics/page.md): Guide to sending metrics to Prometheus Pushgateway via HTTP or client libraries, explaining grouping keys, curl examples, and POST PUT DELETE behaviors and best practices - [Client Library](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Push-Gateway/Client-Library/page.md): Guide for using the Prometheus Python client to push, merge, and delete metrics to a Pushgateway with CollectorRegistry usage and copyable examples. ### Alerting - [Introduction](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Alerting/Introduction/page.md): Explains Prometheus alerting, writing PromQL alert rules, alert lifecycles, and using Alertmanager to group, silence, route, and deliver notifications. - [Labels Annotations](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Alerting/Labels-Annotations/page.md): Explains using labels for machine-oriented routing and annotations for human-readable context in Prometheus alerting rules, plus Go template examples and best practices - [Alertmanager Architecture](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Alerting/Alertmanager-Architecture/page.md): Overview of Alertmanager architecture and pipeline for receiving, deduplicating, grouping, inhibiting, silencing, routing, and delivering Prometheus alerts to configured receivers with HA and best practices. - [Alertmanager Installation](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Alerting/Alertmanager-Installation/page.md): Guide to installing and running Alertmanager and configuring Prometheus to send alerts to it. - [Alertmanager Installation Systemd](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Alerting/Alertmanager-Installation-Systemd/page.md): Guide to install and run Prometheus Alertmanager as a systemd service, including user setup, directories, binaries, unit file, and basic troubleshooting. - [Configuration](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Alerting/Configuration/page.md): Guide to configuring Prometheus Alertmanager routing, receivers, matchers, grouping, and reload procedures with examples and patterns for nested routes, match vs match_re, and continue behavior - [Receivers Notifiers](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Alerting/Receivers-Notifiers/page.md): Guide explaining Alertmanager receivers and notifiers, configuration examples for Slack and email, templating, global settings, grouping and UI tips - [Alertmanager Demo](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Alerting/Alertmanager-Demo/page.md): Guide to creating Prometheus alerting rules, configuring Alertmanager routing and grouping, and sending grouped notifications to Slack using webhooks - [Silences](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Alerting/Silences/page.md): How to create and manage Alertmanager silences to temporarily suppress notifications during maintenance or noisy incidents ### Monitoring Kubernetes - [Introduction](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Monitoring-Kubernetes/Introduction/page.md): How to monitor Kubernetes clusters and applications with Prometheus, including kube-state-metrics, node_exporter, service discovery, and deployment options using Helm and the Prometheus Operator - [Installing Helm Chart](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Monitoring-Kubernetes/Installing-Helm-Chart/page.md): Guide to installing Helm and deploying the kube-prometheus-stack Helm chart to provision Prometheus Alertmanager and Kubernetes monitoring components, including repository setup, value customization, install and uninstall steps. - [Prometheus Chart Overview](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Monitoring-Kubernetes/Prometheus-Chart-Overview/page.md): Guide to inspecting and understanding Kubernetes resources, configuration, and operator-managed components created by the kube-prometheus Helm chart, with access methods and best practices. - [Connecting To Prometheus](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Monitoring-Kubernetes/Connecting-To-Prometheus/page.md): How to access Prometheus in Kubernetes, inspect its Service, expose it via NodePort LoadBalancer or Ingress, and use kubectl port-forward for local UI access. - [Prometheus Configuration](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Monitoring-Kubernetes/Prometheus-Configuration/page.md): Explains kube-prometheus-stack Prometheus configuration, Kubernetes endpoints service discovery, how ServiceMonitor objects become scrape jobs, and relabeling rules that select the correct scrape targets. - [Deploy Demo Application](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Monitoring-Kubernetes/Deploy-Demo-Application/page.md): Guide to deploying a Node.js Express demo app in Kubernetes that exposes Prometheus metrics via swagger-stats, including Dockerfile, Deployment and Service manifests, and scrape configuration. - [Additional Scrape Configs](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Monitoring-Kubernetes/Additional-Scrape-Configs/page.md): Explains how to add raw Prometheus scrape jobs via Helm additionalScrapeConfigs in kube-prometheus-stack, contrasts with ServiceMonitors and warns about upgrade fragility. - [Service Monitors](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Monitoring-Kubernetes/Service-Monitors/page.md): Explains Kubernetes ServiceMonitor CRD used by the Prometheus Operator to declaratively register Services as scrape targets and configure scraping behavior without editing Prometheus configuration files. - [Adding Rules](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Monitoring-Kubernetes/Adding-Rules/page.md): Guide to adding and registering Prometheus alerting and recording rules via the Prometheus Operator PrometheusRule CRD with examples label selection application and troubleshooting. - [Alertmanager Rules](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Monitoring-Kubernetes/Alertmanager-Rules/page.md): Guide to add Alertmanager routing and receivers via Prometheus Operator AlertmanagerConfig CRD, including selectors, YAML examples, Helm configuration, deployment, verification and troubleshooting. ### Conclusion - [Conclusion](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Conclusion/Conclusion/page.md): A concise guide to Prometheus fundamentals, architecture, metric types, PromQL, instrumentation, alerting, and practical steps to monitor applications and infrastructure with integrations like Grafana and Alertmanager - [Registering for Exam](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Conclusion/Registering-for-Exam/page.md): Guide to registering, paying for, scheduling, and preparing for the Prometheus Certified Associate exam on the Linux Foundation Training site, including ID and system requirement checks. ### Scaling & Long Term Storage - [Long Term Storage](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Scaling-Long-Term-Storage/Long-Term-Storage/page.md): Explains Prometheus TSDB layout, retention and sizing, and using remote_write and remote_read with Thanos or Mimir for long term storage - [Thanos](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Scaling-Long-Term-Storage/Thanos/page.md): Thanos provides unified querying, deduplication for HA Prometheus, and long term metrics storage by uploading TSDB blocks to object stores - [Scaling Prometheus](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Scaling-Long-Term-Storage/Scaling-Prometheus/page.md): Strategies to scale Prometheus for capacity and high availability using vertical isolation, horizontal sharding, federation of aggregated metrics, and alternatives like Thanos or Cortex - [Horizontal Sharding](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Scaling-Long-Term-Storage/Horizontal-Sharding/page.md): Guide to horizontally sharding Prometheus scrape jobs using relabel_configs and hashmod to distribute targets across multiple Prometheus instances - [Federation](https://notes.kodekloud.com/docs/Prep-Course-Prometheus-Certified-Associate-PCA-Certification/Scaling-Long-Term-Storage/Federation/page.md): Explains Prometheus federation best practices by aggregating datacenter metrics with recording rules to avoid label collisions and overloading a global server