PCA (Prometheus Certified Associate) sample exam question with answer 504
Question:
What is required to scrape native histograms via federation in Prometheus?
- The scraping Prometheus server needs to run with native histograms enabled
- The scraping Prometheus server needs to be configured to scrape from the /federate endpoint of a source server
- The federation payload needs to contain multiple metric families with the same name (but different types)
- The federation payload needs to be in the protobuf format
Answer:
A - is the correct answer. To scrape native histograms via federation in Prometheus, the scraping Prometheus server needs to run with native histograms enabled (via the command line flag --enable-feature=native-histograms)