PCA (Prometheus Certified Associate) sample exam question with answer 324
Question:
Which of the following are common techniques used for collecting metrics data in Prometheus? (Select all that apply)
- Push
- Pull
- Stream
- File-based
Answer:
A, B, D - correct answer. Prometheus supports three main methods for collecting metrics data: push, pull, and file-based. Push involves sending metrics data from the application to Push gateway and then push gateway get scrapped by prometheus. Pull involves Prometheus periodically requesting metrics data from the application. File-based involves having the scrapping endpoints defined in configuration file, which Prometheus then reads and scraps the endpoints