title: Add prometheus ready application to the Prometheus
body: <p>I have a python application installed on the <code>default</code> namespace of the Kubernetes service. It uses <code>starlette_exporter</code> and exposes <code>/metrics</code> endpoint to Prometheus. When I access <code>1.2.3.4/metrics</code> endpoint I see:</p>
  <pre><code>...
  process_open_fds 21.0
  # HELP process_max_fds Maximum number of open file descriptors.
  # TYPE process_max_fds gauge
  process_max_fds 1.048576e+06
  # HELP starlette_request_duration_seconds HTTP request duration, in seconds
  # TYPE starlette_request_duration_seconds histogram  
  starlette_request_duration_seconds_bucket{app_name=&quot;starlette&quot;,le=&quot;0.005&quot;,method=&quot;GET&quot;,path=&quot;/sitemap.xml&quot;,status_code=&quot;404&quot;} 1.0
  starlette_request_duration_seconds_bucket{app_name=&quot;starlette&quot;,le=&quot;0.01&quot;,method=&quot;GET&quot;,path=&quot;/sitemap.xml&quot;,status_code=&quot;404&quot;} 1.0
  starlette_request_duration_seconds_bucket{app_name=&quot;starlette&quot;,le=&quot;0.025&quot;,method=&quot;GET&quot;,path=&quot;/sitemap.xml&quot;,status_code=&quot;404&quot;} 1.0
  ...
  </code></pre>
  <p>I also installed <code>kube-prometheus-stack</code> on the <code>monitor</code> namespace of that Kubernetes service. It has no customizations and I used this command for installation:</p>
  <pre><code>helm install prometheus-stack prometheus-community/kube-prometheus-stack -n monitor
  </code></pre>
  <p>What are the necessary steps to add my application metrics to the Prometheus stack that I can track them on the Grafana dashboard? As I understand, I should write a custom configuration and somehow include that in Prometheus probably by issuing some kind of <code>kubectl</code> command. Please be specific.</p>