PCA (Prometheus Certified Associate) sample exam question with answer 608
Question:
Which of the following best practices should be followed when creating a custom Prometheus exporter? Select all that apply.
- Use consistent metric names and labels to facilitate querying and alerting
- Monitor only a small number of metrics to avoid overwhelming Prometheus
- Use histograms and summaries to measure event duration and response times
- Include documentation and examples to help users configure and use the exporter
Answer:
A, D - are the correct answers. When creating a custom Prometheus exporter, it is important to use consistent metric names and labels to facilitate querying and alerting, and to include documentation and examples to help users configure and use the exporter
B - is incorrect answer. It is generally a good idea to monitor only a small number of metrics to avoid overwhelming Prometheus, but this depends on the specific use case
C - is incorrect answer. Histograms and summaries are useful for measuring event duration and response times, but may not be appropriate for all metrics