You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 7, 2022. It is now read-only.
Currently only one metrics path per scraped pod is supported. Usually this is called /metrics and is configurable for each scraping job. Some systems, like Apache Spark use two different paths to separate cluster from application metrics. See metric template
Proposed solution
There are at least two possible solutions. The easy, fast and ugly one and the more elegant but complicated to reach one.
Solution 1: Configure an additional scraping jobs for each metrics not available through the /metrics endpoint. For Spark masters, this means an additional job for application metrics. The disadvantage is that these jobs are always present, even in clusters where their targets are not even deployed.
Solution 2: Configure scraping jobs dynamically based on what is actually deployed and running in the K8S cluster. This is what the official Prometheus operator is doing.
The problem
Currently only one metrics path per scraped pod is supported. Usually this is called
/metricsand is configurable for each scraping job. Some systems, like Apache Spark use two different paths to separate cluster from application metrics. See metric templateProposed solution
There are at least two possible solutions. The easy, fast and ugly one and the more elegant but complicated to reach one.
Solution 1: Configure an additional scraping jobs for each metrics not available through the
/metricsendpoint. For Spark masters, this means an additional job for application metrics. The disadvantage is that these jobs are always present, even in clusters where their targets are not even deployed.Solution 2: Configure scraping jobs dynamically based on what is actually deployed and running in the K8S cluster. This is what the official Prometheus operator is doing.