stefanprodan / k8s-prom-hpa

Kubernetes Horizontal Pod Autoscaler with Prometheus custom metrics
MIT License
565 stars 192 forks source link

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

Open hechuan73 opened 6 years ago

hechuan73 commented 6 years ago

@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!

arjunprasad2143 commented 6 years ago

@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?

humayunjamal commented 5 years ago

@stefanprodan ditto as above

jeffcai commented 5 years ago

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

Erically commented 5 years ago

http://pod_ip:9898/metrics