cloudfoundry / cloudfoundry/bosh
`/metrics` and `/api_metrics` endpoint does not show the generic API metrics for the director's endpoints
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 2.1k
- Forks
- 662
- Avg merge
- 5h 25m
- Merged PRs (30d)
- 2
Description
Describe the bug
According to documentation the /metrics and /api_metrics endpoint will expose the generic API metrics for the director's endpoints including number of requests and response time. But when we call those endpoints:
/metricsonly exposes the metrics for/metricsand/api_metricsendpoints/api_metricsonly return OK
To Reproduce
- Deploy a bosh director
- curl some endpoints of bosh, e.g.
vms,deployments, etc. - curl http://<bosh_ip>:9092/metrics
- curl curl http://<bosh_ip>:9092/api_metrics
Expected behavior
The endpoint should return metrics of bosh endpoints.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the linked Director metrics documentation and reproducing the requests against /metrics and /api_metrics after calling endpoints such as vms and deployments. Compare the returned metrics with the documented generic request count and response-time behavior; done means both endpoints expose metrics for the Director API endpoints rather than only their own requests or an empty OK response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api, observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100