Ricardo Lopes
b1b8d24cbf
refactor: remove unused var
...
Signed-off-by: Ricardo Lopes <ricardoapl.dev@gmail.com>
2024-04-17 09:52:05 +01:00
Ricardo Lopes
ef4fceac06
refactor: reduce cyclomatic complexity
...
Signed-off-by: Ricardo Lopes <ricardoapl.dev@gmail.com>
2024-04-17 09:51:05 +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
fd2a1f83f3
chore: Build with go 1.22
2024-04-05 00:20:04 +02:00
Kubernetes Prow Robot
fea5dfd26d
Merge pull request #2343 from mrueg/bump-1.29
...
chore: Bump kubernetes 1.29 deps
2024-03-26 07:55:20 -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
Manuel Rüger
9ba2547ca7
chore: Fix test
2024-03-18 16:39:06 +01: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
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
dbdb77c920
fix benchmark test; add missing kube_pod_container_status_last_terminated_timestamp in pod tests
...
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
2024-01-22 16:32:52 +01: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
changhyuni
b948807ba3
modify labels key
...
modify label key
2023-12-15 09:18:06 +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
Darren Foo
a403bb3ff5
add new kube_node_status_addresses metric that includes mutiple address/types
2023-12-13 16:51:49 -08:00
Manuel Rüger
ca569e1ffe
feat: Add namespace label to endpoinslice metrics
...
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2023-12-11 14:05:20 +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
changhyuni
fc1831d8b2
pods: update init_cotainer_info metric
2023-11-18 23:45:52 +09: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
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
Kubernetes Prow Robot
76f42c19af
Merge pull request #2190 from dgrisonnet/fix-regression
...
fix: Remove FieldSelector from non-namespaced resources
2023-09-12 02:04:12 -07:00
Damien Grisonnet
cf00170dd4
store: fix missing cluster-scoped resources
...
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2023-09-12 09:40:21 +02:00
Manuel Rüger
023f83dd03
Fix: Remove FieldSelector from non-namespaced resources
...
This should resolve the issue with namespace-denylist as discovered in https://github.com/kubernetes/kube-state-metrics/issues/2187
Regression introduced in c3c552821a
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2023-09-12 09:34:14 +02: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
535085e412
Merge pull request #2154 from chrischdi/pr-custom-metrics-missing-header
...
fix: custommetrics: always extract the headers but only write it when we have metrics
2023-08-28 09:43:42 -07:00
Kubernetes Prow Robot
801f8bb31c
Merge pull request #2168 from mrueg/bump-deps
...
build: Bump dependencies
2023-08-28 08:37:44 -07:00
opeco17
634c04ef90
feat: enable metric-annotations-allowlist and metric-labels-allowlist for ResourceQuota
2023-08-28 13:59:14 +00:00
Manuel Rüger
6071db7f49
build: Fix lint
2023-08-25 12:50:58 +02:00
Kubernetes Prow Robot
e8272ced47
Merge pull request #2145 from opeco17/feature/disable-labels-annotations-metrics-by-default
...
feat: disable labels and annotations metrics when metric-annotations-…
2023-08-22 06:34:54 -07: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
Christian Schlotter
e57a28af2f
feat(custommetrics) always extract the metric headers but only write them when we have metrics
2023-08-18 17:42:47 +02:00
opeco17
6de105ebbe
feat: disable labels and annotations metrics when metric-annotations-allowlist and metric-labels-allowlist are not provided
2023-08-14 14:38:23 +00:00
opeco17
3e4d91c4ba
feat: implement kube_pod_status_initialized_time
2023-08-14 14:01:34 +00:00
João Vilaça
92858f325e
feat: add volumemode to PVC info metric
...
Signed-off-by: João Vilaça <jvilaca@redhat.com>
2023-08-01 12:48:10 +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
Kubernetes Prow Robot
7189f3938f
Merge pull request #2075 from maxime1907/featpvdeletiontimestamp
...
feat(pv): support kube_persistentvolume_deletion_timestamp
2023-07-26 03:52:18 -07:00
Kubernetes Prow Robot
217acfcadc
Merge pull request #2074 from maxime1907/featpvcdeletiontimestamp
...
feat(pvc): support kube_persistentvolumeclaim_deletion_timestamp
2023-07-26 03:50:19 -07:00
Kubernetes Prow Robot
61c9de04cd
Merge pull request #2114 from dgrisonnet/webhook-services
...
feat: Add webhooks client config service metrics
2023-07-26 03:42:18 -07:00
ntoofu
dc79b3e927
Add filtering for Lease metrics
2023-07-21 04:18:10 +09:00
Manuel Rüger
c3c552821a
chore: Fix lint
...
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2023-07-13 10:35:24 +02:00
Damien Grisonnet
229befd41d
*: add webhooks client config service metrics
...
In order to better identify, prioritize, and debug webhook latency
issues it is important to have a metric that would point to the resource
it is responsible for. However, it is not possible to have that
dimension in the metrics exposed by Kubernetes because of the unbound
cardinality that such a label would have.
The name of the webhook could be an alternative since it usually
contains some information about the resource that the webhook targets,
however this is not very practical to use in multi-tenants
environments.
A solution for these kind of platform is to tie a specific webhook to a
namespace in order to be able to know which tenant manages it and take
actions depending on that. This is achieveable by leveraging the client
config information of webhooks configured via WebhookConfiguration
resources since Services are namespaced objects.
With these new metrics, users will be able to split the alerting
severity of webhook latency / rejection rate per namespace on top of
being able to do it based on the webhook name. This is key in
environment where administrators don't have control over the webhooks
installed by the various tenants.
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2023-07-04 18:20:34 +02:00
Maxime Leroy
c0eb61aeeb
feat(pvc): support kube_persistentvolumeclaim_deletion_timestamp
...
Signed-off-by: Maxime Leroy <19607336+maxime1907@users.noreply.github.com>
2023-06-16 10:46:34 +02:00
Maxime Leroy
2be0d9e34c
feat(pv): support kube_persistentvolume_deletion_timestamp
...
Signed-off-by: Maxime Leroy <19607336+maxime1907@users.noreply.github.com>
2023-06-16 10:42:52 +02:00