PCA (Prometheus Certified Associate) sample exam question with answer 460

Question:
Which module of the Prometheus client library is used for collecting metrics from applications written in Python?

  1. prometheus_client.metrics
  2. prometheus_client.core
  3. prometheus_client.registry
  4. prometheus_client.process_collector
Answer:
D - is correct answer. This module of the Prometheus client library is used for collecting metrics from applications written in Python. This module provides a ProcessCollector class that automatically collects metrics related to the Python process itself, such as CPU usage and memory usage