What is the minimum requirement for an application to expose Prometheus metrics?
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.
Pilar
9 hours agoJaime
5 days agoCarmela
24 days agoShelba
29 days agoGlen
1 month agoCarlton
1 month agoKaitlyn
1 month agoDell
2 months agoCarole
2 months agoPortia
2 months agoMan
2 months agoNoel
2 months agoCharolette
3 months agoYolando
3 months agoLuann
3 months agoDemetra
3 months agoDenae
3 months agoCorrina
4 months agoDevora
4 months agoMeaghan
4 months agoAn
4 months ago