Commit Graph

12 Commits

Author SHA1 Message Date
pokom cd460fef29 Update cli-arguments.md 2024-06-11 06:48:22 -04:00
Mark ee3913967e
Update docs/developer/cli-arguments.md
Co-authored-by: Manuel Rüger <manuel@rueg.eu>
2024-06-07 14:13:44 -04:00
pokom b4f032ecfd Add additional flags for IdleTimeouts 2024-06-06 13:11:00 -04:00
pokom e97933bcb9 fix(server): Add read and write timeouts
There are a few documented scenarios where `kube-state-metrics` will
lock up(#995, #1028). I believe a much simpler solution to ensure
`kube-state-metrics` doesn't lock up and require a restart to server
`/metrics` requests is to add default read and write timeouts and to
allow them to be configurable. At Grafana, we've experienced a few
scenarios where `kube-state-metrics` running in larger clusters falls
behind and starts getting scraped multiple times. When this occurs,
`kube-state-metrics` becomes completely unresponsive and requires a
reboot. This is somewhat easily reproduceable(I'll provide a script in
an issue) and causes other critical workloads(KEDA, VPA) to fail in
weird ways.

Adds two flags:
- `server-read-timeout`
- `server-write-timeout`

Updates the metrics http server to set the `ReadTimeout` and
`WriteTimeout` to the configured values.
2024-06-05 14:18:43 -04:00
Ovidiu Tirla 3fc953561f docs: reorganize documentation directory structure 2024-04-03 12:32:14 +00:00
opeco17 81e825dfea feat: introduce Markdown formatter 2023-09-11 22:41:43 +09:00
CatherineF-dev 022fce9d9b
Update docs/developer/guide.md
Co-authored-by: Pranshu Srivastava <prasriva@redhat.com>
2022-12-21 09:34:40 -05:00
Catherine Fang 62f3fc2983 Add develop doc on adding new metrics 2022-12-20 13:17:54 -05:00
Manuel Rüger 01062d5186 Rename references from master to main branch 2022-12-11 19:13:31 +01:00
Julian van den Berkmortel a2ab72a773
Update the developer documentation for adding a new resource metric collector 2022-06-29 23:59:32 +02:00
Alexander-Carpenter 69fe7da267 Rename collector to resource 2020-02-05 19:43:23 -06:00
Nataly Sheinin 998de32fc2 add instructions for adding a new k8s resource 2019-10-10 10:32:41 -04:00