clusterpedia-io / clusterpedia

The Encyclopedia of Kubernetes clusters
https://clusterpedia.io
Apache License 2.0
801 stars 121 forks source link

clusterpedia APIServer metrics support #700

Open 27149chen opened 2 months ago

27149chen commented 2 months ago

What would you like to be added?

clusterpedia APIServer metrics support:

  1. Records the duration of the requests(with: code, handler, method).
  2. Records the count of the requests(with: code, handler, method).
  3. Records the size of the responses(with: code, handler, method).
  4. Records the number requests being handled concurrently at a given time a.k.a inflight requests (with: handler).

FYI: https://github.com/slok/go-http-metrics?tab=readme-ov-file#metrics

Why is this needed?

metrics is improtant for:

  1. performance monitoring
  2. resource utilization
  3. debugging and troubleshooting
  4. ...
clusterpedia-bot commented 2 months ago

Hi @27149chen, Thanks for opening an issue! We will look into it as soon as possible.

Details Instructions for interacting with me using comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the [gh-ci-bot](https://github.com/clusterpedia-io/gh-ci-bot) repository.