stefanprodan / k8s-prom-hpa

Kubernetes Horizontal Pod Autoscaler with Prometheus custom metrics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Where dose the podinfo app expose a custom metric named http_requests_total?

hechuan73 opened this issue · comments

@stefanprodan
Hi,
In the README.md, you say "The podinfo app exposes a custom metric named http_requests_total. The Prometheus adapter removes the _total suffix and marks the metric as a counter metric."

While I can't find where it is. So could you please help me to point them out:

  1. Where dose the "podinfo" app expose the custom metrics named "http_request_total"?
  2. Where dose the Prometheus adapter remove the _total suffix and mark the metric as a counter metric?

Thanks!

commented

@stefanprodan I can see cpu, fs_usage_bytes and various other metrics for my app but not able to see http_requests. How can I get the http_requests_total for my podapp?

@stefanprodan ditto as above

if we need change the custom adapter config to add the http_requests metric or need configure the prometheus job?

http://pod_ip:9898/metrics