Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation PCA Exam - Topic 2 Question 7 Discussion

Actual exam question for Linux Foundation's PCA exam
Question #: 7
Topic #: 2
[All PCA Questions]

What is the minimum requirement for an application to expose Prometheus metrics?

Show Suggested Answer Hide Answer
Suggested Answer: C

Prometheus collects metrics by scraping an HTTP endpoint exposed by the target application. Therefore, the only essential requirement for an application to expose metrics to Prometheus is that it serves metrics in the Prometheus text exposition format over HTTP.

This endpoint is conventionally available at /metrics and provides metrics in plain text format (e.g., Content-Type: text/plain; version=0.0.4). The application can run on any operating system, architecture, or network --- as long as Prometheus can reach its endpoint.

It does not need to be Internet-accessible (it can be internal) and is not limited to Linux or any specific bitness.


Verified from Prometheus documentation -- Exposition Formats, Instrumenting Applications, and Target Scraping Requirements sections.

Contribute your Thoughts:

0/2000 characters
Pilar
9 hours ago
No need for Internet exposure, just local access works too.
upvoted 0 times
...
Jaime
5 days ago
Wait, does it really need to be on Linux? That seems off.
upvoted 0 times
...
Carmela
24 days ago
Totally agree, option C is the way to go!
upvoted 0 times
...
Shelba
29 days ago
Haha, I bet the answer is "It must have a cool logo and a catchy name." That's what really matters, right?
upvoted 0 times
...
Glen
1 month ago
A) It must be exposed to the Internet. Nah, that's not necessary. Prometheus can work on a local network.
upvoted 0 times
...
Carlton
1 month ago
B) It must be compiled for 64-bit architectures. Hmm, I'm not sure that's a requirement for Prometheus.
upvoted 0 times
...
Kaitlyn
1 month ago
D) It must run on Linux. Prometheus is a Linux-based monitoring tool, so that makes sense.
upvoted 0 times
...
Dell
2 months ago
C) It must be able to serve text over HTTP. That's the key requirement for Prometheus metrics.
upvoted 0 times
...
Carole
2 months ago
I don’t think it has to be exposed to the Internet, but serving text over HTTP seems crucial for Prometheus to scrape the metrics.
upvoted 0 times
...
Portia
2 months ago
I’m a bit confused; does it really need to be on Linux? I feel like I saw a question about compatibility in a practice exam.
upvoted 0 times
...
Man
2 months ago
I remember something about Prometheus metrics needing to be accessible via HTTP, so I would lean towards option C.
upvoted 0 times
...
Noel
2 months ago
I think the application just needs to serve metrics over HTTP, but I'm not entirely sure if it has to be in a specific format.
upvoted 0 times
...
Charolette
3 months ago
Okay, I think I got it. The key is that Prometheus metrics need to be accessible via HTTP, so the application just needs to be able to serve that kind of content. The other requirements around internet exposure or OS don't seem directly relevant.
upvoted 0 times
...
Yolando
3 months ago
I'm pretty confident the answer is C. Prometheus metrics are typically exposed as text over HTTP, so the application just needs to be able to serve that kind of content, regardless of the underlying OS or architecture.
upvoted 0 times
...
Luann
3 months ago
I'm a bit confused on this one. Does the application have to be running on a specific operating system to expose Prometheus metrics? Or is it just about the ability to serve text over HTTP?
upvoted 0 times
...
Demetra
3 months ago
I think it’s C. HTTP is essential.
upvoted 0 times
...
Denae
3 months ago
It just needs to serve text over HTTP.
upvoted 0 times
...
Corrina
4 months ago
Agreed, C makes sense. Metrics need to be served.
upvoted 0 times
...
Devora
4 months ago
But A sounds tempting. Internet exposure is key, right?
upvoted 0 times
...
Meaghan
4 months ago
Okay, let's think this through. Prometheus is an open-source monitoring system, so the metrics need to be accessible over HTTP, right? I'm guessing the answer is C.
upvoted 0 times
...
An
4 months ago
Hmm, this seems pretty straightforward. I think the key is understanding what Prometheus metrics are and what the minimum requirements are to expose them.
upvoted 0 times
...

Save Cancel