leiwingqueen
f94ef65cc7
fix overflow in other occasion
2024-11-04 10:09:18 +08:00
leiwingqueen
e5eb2ed132
fix lint error
2024-11-02 22:16:15 +08:00
leiwingqueen
2c346763cf
change convertValueToFloat64 function name
2024-11-02 09:55:35 +08:00
leiwingqueen
31f793129f
fix big memory overflow
2024-11-01 16:16:08 +08:00
Manuel Rüger
f7ec4da618
chore: Bump to kubernetes 1.31
...
Breaking change for node metrics, as kube-proxy field is deprecated and
contains invalid information.
See also
https://kubernetes.io/blog/2024/07/19/kubernetes-1-31-upcoming-changes/#deprecation-of-status-nodeinfo-kubeproxyversion-field-for-nodes-kep-4004-https-github-com-kubernetes-enhancements-issues-4004
2024-09-24 13:25:41 +02: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
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
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
Manuel Rüger
c3c552821a
chore: Fix lint
...
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2023-07-13 10:35:24 +02:00
Pranshu Srivastava
b382da615a
Adhere to OTel-Prometheus standard for labels
...
Adhere to OTel-Prometheus standard for generated labels in CRS.
Ref.: 8946dfc6a2/specification/compatibility/prometheus_and_openmetrics.md ?plain=1#L224-L229
Additional info.: OSM has a hardcoded approach for doing this right now: https://github.com/openshift/openshift-state-metrics/blob/master/pkg/collectors/utils.go#L29
Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2023-04-22 19:45:48 +05:30
Catherine Fang
4342ca7b97
Migrate all NewFamilyGenerator to NewFamilyGeneratorWithStability
2023-02-05 22:02:47 -05:00
Pranshu Srivastava
ed551af5b5
Add node deletionTimestamp metric
...
Adds deletionTimestamp metric, for nodes.
Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2022-11-16 11:49:10 +05:30
Catherine Fang
5995c1e2cf
Add all stable metrics
2022-10-14 08:25:39 -04:00
Catherine Fang
75bce1c552
Upgrade dependency component-base to v0.25.2 and add TODO
2022-10-14 08:25:39 -04:00
Catherine Fang
37423f462f
Import k8s metrics stability framework
2022-10-14 08:19:06 -04:00
Sherif Abdel-Naby
e205fee343
Extract mergeKeyValue logic into a central function
2022-02-10 04:12:35 +02:00
Sherif Abdel-Naby
3a600f56c7
Optimize Slice Allocations
2022-02-05 18:53:35 +02:00
Min Wang
1b2c05c6c9
Add fieldSelector in listWatchFunc
2021-10-04 18:54:51 -07:00
Sylvain Rabot
96d08df5d0
Merge remote-tracking branch 'origin/master' into annotations
2021-08-16 08:50:02 +02:00
Sylvain Rabot
0e045365f4
Factorize some code
...
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2021-07-13 11:51:39 +02:00
sumikum3
f46fb4ecc6
Added missing cronjob and node atrributes : https://github.com/kubernetes/kube-state-metrics/issues/1509
2021-07-06 00:28:14 -07:00
Sylvain Rabot
65bc62af5c
Add kube_*_annotations metrics
...
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2021-04-29 16:04:16 +02:00
Damien Grisonnet
8e6b214de2
internal/store: refactor pod and node generators
...
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-12-09 10:02:39 +01:00
Lili Cosic
0b76e7d4f4
internal/store: Rework label allow list for label metrics
2020-11-20 15:31:35 +01:00
Quentin Bisson
7250bc2b5c
Update go module path to k8s.io/kube-state-metrics/v2
...
Signed-off-by: Quentin Bisson <quentin@giantswarm.io>
2020-09-21 10:58:08 +02:00
Yuiko Mori
49197428ce
Add DeprecatedVersion to struct FamilyGenerator
2020-08-06 10:31:29 +00:00
Prabhakar Mishra
0ff5482079
update client-go, k/api, k/apimachinery to v1.18.6 and vertical-pod-autoscaler to commit b7922d74509c
...
use clientgofix library
add context parameter in verticalpodautoscaler
rename PodDisruptionsAllowed to DisruptionsAllowed because of PR 85863 in k8s repo
lint fixes and rename PodDisruptionsAllowed to DisruptionsAllowed in test file
run go mod tidy
2020-07-30 01:54:34 +02:00
Jimmy K Seto
e9f4552ecf
add internal_ip to node_info
2020-07-22 10:58:11 -04:00
yeya24
da2dadcd3e
remove deprecated metrics
...
Signed-off-by: yeya24 <yb532204897@gmail.com>
remove deprecated options
Signed-off-by: yeya24 <yb532204897@gmail.com>
2020-02-05 08:48:23 -05:00
cedric lamoriniere
72ad3cb412
Remove FamilyByteSlicer interface
...
- To allow other external Stores, remove the `FamilyByteSlicer` interface
and give access directly to `metric.Family`.
- Move functions present in `pkg/metric/generator.go` to a dedicated package
`generator` in `pkg/metric_generator/generator.go`.
Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2019-12-13 10:50:19 +01:00
Jacob Straszynski
a374b050b8
expose the PodCIDR in node info
...
It can be helpful to know the PodCIDR of nodes in order to predict IP
space utilization. In GKE for example, one typically uses a Secondary
Alias IP range that doles out PodCIDRs dynamically. When this is
exhausted, nodes will fail to boot with messages such as:
```
Instance 'gke-test-ingre-43fd70d6-9v77' creation failed: IP space of 'projects/network-project/regions/us-central1/subnetworks/pod-alias-b85f82b0bca36afa' is exhausted.
```
Although not comprehensive, on could use this label to construct a query
such as:
```
count(kube_node_info(pod_cidr~="/24")) * 256
```
2019-10-30 18:40:03 -07:00
Andy Bursavich
347ec0872e
store: add kube_node_role metric
2019-09-05 08:38:09 -07:00
Tariq Ibrahim
9799ac0e61
Merge release-1.7 into upstream/master
2019-08-05 10:46:00 -07:00
Tariq Ibrahim
5c5a8932ab
rename kubeAnnotationsToPrometheusAnnotations to kubeAnnotationsToPrometheusLabels
2019-06-28 00:15:57 -07:00
Andrey Sidorov
5ae00bb93f
add kube_*_annotations metrics for all objects
2019-06-25 22:29:27 +03:00
Lili Cosic
68aea02d26
Makefile,internal/collector: Rename collector -> store
...
Since the removal of collector, this introduces both the concept of the
store and the resources instead of collectors that the user passes in.
The user facing logs and flags were not changed as that would be a
regression.
2019-06-11 16:18:53 +02:00