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?
- prometheus_client.metrics
- prometheus_client.core
- prometheus_client.registry
- 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