Commit Graph

380 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
Ricardo Lopes 9917008f7e docs: lint markdown
Signed-off-by: Ricardo Lopes <ricardoapl.dev@gmail.com>
2024-05-28 10:31:31 +01:00
Ricardo Lopes 8c75a8b589 docs: add policy for consuming and upgrading dependencies
Signed-off-by: Ricardo Lopes <ricardoapl.dev@gmail.com>
2024-05-27 11:52:06 +01:00
Ricardo Lopes 610918ea24 fixup! feat: add kube_persistentvolume_volume_mode metric
Signed-off-by: Ricardo Lopes <ricardoapl.dev@gmail.com>
2024-04-15 17:32:12 +01:00
Ricardo Lopes a40944b47b feat: add kube_persistentvolume_volume_mode metric
Signed-off-by: Ricardo Lopes <ricardoapl.dev@gmail.com>
2024-04-15 17:26:55 +01:00
Manuel Rüger 0c030421ca chore: Update prometheus to 2.51.1 2024-04-05 00:20:04 +02:00
Ovidiu Tirla 3fc953561f docs: reorganize documentation directory structure 2024-04-03 12:32:14 +00:00
Kubernetes Prow Robot a3489c0ace
Merge pull request #2052 from rexagod/prefixed-star-paths
feat: Allow prefixing wildcard `labelsFromPath`
2024-03-26 07:51:19 -07:00
Kubernetes Prow Robot 97c710b40d
Merge pull request #2291 from tetianakravchenko/add_metric_kube_pod_container_status_last_terminated_timestamp
feat: add kube_pod_container_status_last_terminated_timestamp metric
2024-03-25 07:12:39 -07:00
Tetiana Kravchenko 393430ed86 fix the description of the 'kube_pod_container_status_last_terminated_timestamp' metric
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
2024-03-04 11:40:34 +01:00
Shota Yoshimura 195d277259
Update docs/lease-metrics.md
Co-authored-by: Pranshu Srivastava <prasriva@redhat.com>
2024-02-29 17:36:54 +09:00
yosshi825 e74428eb1e fix broken markdown format 2024-02-29 16:08:45 +09:00
Justin Cichra 01507af984 feat: add kube_secret_owner metric
Add the kube_secret_owner metric for Secrets.

This metric already exists for several other Kubernetes primitives (Jobs, Pods, etc).

Cluster operators will often use external secret stores with a controller
to reconcile those secrets into Kubernetes Secrets.

Cluster operators may wish to discourage manually managed secrets.

Having the secret owner data in kube-state-metrics allows graphing and alerting on unmanaged secrets.
2024-02-05 10:55:58 -05:00
Tetiana Kravchenko 51ccb665c4 feat: add kube_pod_container_status_last_terminated_timestamp metric
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
2023-12-28 15:04:49 +01:00
Kubernetes Prow Robot fde27ece8a
Merge pull request #2240 from changhyuni/add_label_init_cotainter_metric
feat: add restartPolicy to `kube_pod_init_container_info` metric
2023-12-19 20:02:39 +01:00
Manuel Rüger 5834d64a65
fix: Update docs/pod-metrics.md 2023-12-19 19:47:02 +01:00
changhyuni f94716aa74 modify docs, restart policy 2023-12-20 01:18:19 +09:00
changhyuni 091ddf9d96 modify docs 2023-12-18 21:33:05 +09:00
changhyuni ed1a7f992c pods: update init_cotainer_info metric 2023-12-14 22:51:38 +09:00
Kubernetes Prow Robot 0bc4b19ac5
Merge pull request #2252 from stonith/add-externalip-node-info
feat: add kube_node_status_addresses metric
2023-12-14 10:28:33 +01:00
Darren Foo 069aeebaa3 add kube_node_status_addresses metric to docs 2023-12-13 23:58:47 -08:00
Manuel Rüger a017f90941 docs: Re-add embedmd command 2023-11-29 13:50:47 +01:00
Kubernetes Prow Robot 240cffd908
Merge pull request #2133 from machadovilaca/add-csi-volume-attributes-to-pv-info-metric
feat: create opt-in kube_persistentvolume_csi_attributes metric
2023-11-23 13:48:25 +01:00
João Vilaça e09df21d5d feat: create opt-in kube_persistentvolume_csi_attributes metric
Signed-off-by: João Vilaça <jvilaca@redhat.com>
2023-11-23 12:15:20 +00:00
Kubernetes Prow Robot 4e431f6d14
Merge pull request #2234 from xonvanetta/feature/add-wilcard-allowlist-annotations
feat: Support filtering annotations allowlist by "*"
2023-11-09 18:26:07 +01:00
adinhodovic e9c7e66748 fix: Rename kube_pod_scheduler_name to kube_pod_scheduler 2023-11-07 09:56:05 +01:00
Fabian Heib e4d2bd48c8 Support filtering annotations allowlist by "*"
Resolves: add-wilcard-allowlist-annotations
2023-11-02 17:22:02 +01:00
adinhodovic c5c6c9a3f8 feat: Add new metric kube_pod_scheduler_name
Signed-off-by: adinhodovic <hodovicadin@gmail.com>
2023-10-19 19:41:34 +02:00
Manuel Rüger d57919d14e chore: Fix markdown lint 2023-10-16 17:24:43 +02:00
rohitphatak 5c71459a61
feat(ingress): resource backend support added (#2109)
* feat(ingress): resource backend support added

* feat(ingress): updated test case

* Update internal/store/ingress.go

Co-authored-by: Damien Grisonnet <damien.grisonnet@epita.fr>

* feat(ingress): updated doc & test cases

---------

Co-authored-by: Damien Grisonnet <damien.grisonnet@epita.fr>
2023-10-11 16:25:07 +02:00
opeco17 81e825dfea feat: introduce Markdown formatter 2023-09-11 22:41:43 +09:00
Mark Robinson f3698288ff
feat: Add support for endpoint topology routing hints (#2090)
* Add support for endpoint topology routing hints

Fix goimports

Fix gocritic issue

* Update docs/endpointslice-metrics.md

Co-authored-by: Manuel Rüger <manuel@rueg.eu>

* Update internal/store/endpointslice.go

Co-authored-by: Manuel Rüger <manuel@rueg.eu>

* Update Dockerfile

* Update Dockerfile

* Update endpointslice_test.go

* Redesign metric

* Update endpointslice.go

Remove unneeded label

* Update endpointslice.go

* Update endpointslice-metrics.md

* Fix test

* Remove hostname

* Update docs/endpointslice-metrics.md

---------

Co-authored-by: Manuel Rüger <manuel@rueg.eu>
Co-authored-by: Damien Grisonnet <damien.grisonnet@epita.fr>
2023-08-31 16:33:20 +02:00
Kubernetes Prow Robot dbd456831b
Merge pull request #1988 from dfredell/main
docs: Add cli refrences to the docs around annotations and labels
2023-08-29 05:29:22 -07:00
Pranshu Srivastava a379639a52
feat: Allow prefixing * paths
Allow prefixing * paths, for instance, foo_*: [foo, bar, baz], will
result in foo_baz being the key for all object resolutions under baz.

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2023-08-29 16:44:01 +05:30
Pranshu Srivastava e52fbce7d5
Allow field KV general matching
Currently all matching support is limited to map-list representations;
this adds support for a more general "key:value" based matching
expression for any `interface{}` field (non-map-list-like).
2023-08-29 15:02:02 +05:30
dfredell dcb8cf5b12 Add Description to all doc markdown tables. Add controlled by cli note about labels and annotations to all markdown files. 2023-08-28 14:55:01 -05:00
dfredell 66a6caecc9 Merge remote-tracking branch 'upstream/main' 2023-08-28 14:21:56 -05:00
dfredell 6bf2df6ba9 Run all docs through a markdown table formatter so they are more easily read in their text form. Used Markdown All in One in VSCode. 2023-08-28 14:14:59 -05:00
Kubernetes Prow Robot 7324e7067c
Merge pull request #2175 from opeco17/feature/allow-annotations-and-labels-for-resource-quota
feat: enable metric-annotations-allowlist and metric-labels-allowlist for ResourceQuota
2023-08-28 07:13:43 -07:00
opeco17 634c04ef90 feat: enable metric-annotations-allowlist and metric-labels-allowlist for ResourceQuota 2023-08-28 13:59:14 +00:00
Damien Grisonnet 6f7269858d options: update labels/annotations allowlist doc
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2023-08-23 11:42:31 +02:00
Kubernetes Prow Robot 109413e35b
Merge pull request #2148 from opeco17/feature/implement-pod-initialized-time
feat: implement kube_pod_status_initialized_time
2023-08-22 06:12:55 -07:00
dfredell b1991d6d97 Merge remote-tracking branch 'upstream/main' 2023-08-21 12:51:46 -05:00
David Martin c1d57de772
Add example for non map Arrays 2023-08-17 14:11:48 +01:00
opeco17 3e4d91c4ba feat: implement kube_pod_status_initialized_time 2023-08-14 14:01:34 +00:00
João Vilaça 0d45f1adf2 Update docs
Signed-off-by: João Vilaça <jvilaca@redhat.com>
2023-08-14 11:09:34 +01:00
Kubernetes Prow Robot 56a3a0a64e
Merge pull request #2096 from swarup-stripe/add-SA-to-kube-pod-info
feat: Adds new metric `kube_pod_service_account`
2023-07-26 03:54:18 -07:00