Commit Graph

30 Commits

Author SHA1 Message Date
Catherine Fang 4342ca7b97 Migrate all NewFamilyGenerator to NewFamilyGeneratorWithStability 2023-02-05 22:02:47 -05:00
Catherine Fang 5995c1e2cf Add all stable metrics 2022-10-14 08:25:39 -04:00
m.nabokikh 9e639b2ff9 Add host path metrics, fix table formatting
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2022-08-24 11:17:08 +04:00
m.nabokikh 9939059be5 Make code inline with the other parts
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2022-08-23 17:03:40 +04:00
m.nabokikh a6984e00ef feat: Add local storage labels to kube_persistentvolume_info
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2022-08-23 15:45:07 +04:00
Aidan O'Gorman 1362519c92 Fix ups to unit tests 2022-05-24 09:50:21 +01:00
Aidan O'Gorman 859c8e903f Adding Unix creationTimestamp to PV/PVC metrics 2022-05-23 21:28:24 +01:00
Luke Chui a7a8043e1f add metric + docs + tests 2022-05-04 19:35:52 -07: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
Manuel Rüger 2e78af1ccd Fix findings to make lint pass
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2021-11-18 16:22:16 +01:00
Min Wang 1b2c05c6c9 Add fieldSelector in listWatchFunc 2021-10-04 18:54:51 -07:00
Sylvain Rabot 0e045365f4
Factorize some code
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2021-07-13 11:51:39 +02:00
Sylvain Rabot 65bc62af5c
Add kube_*_annotations metrics
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2021-04-29 16:04:16 +02:00
QuentinBisson 7c7175838e
feat(persistentvolume) Add Azure Disk Name to kube_persistentvolume_info 2021-01-19 14:37:27 +01:00
Lili Cosic 0b76e7d4f4 internal/store: Rework label allow list for label metrics 2020-11-20 15:31:35 +01:00
Duologic 96b01833f8 feat(persistentvolume): introduce kube_persistentvolume_claim_ref
Adds a new metrics to provide claimRef information to Prometheus. In
tracking down lingering PVs, it would be of interest to know where the
PV came from. With the claimRef information, it is easier to track down
the resource owners and inform that they have unclaimed PVs lingering
around.

Main motivation is that PVs cost money at cloud providers, if PVs stick
around for long, the costs might increase significantly.
2020-10-19 08:44:34 +02:00
Jimmy K Seto 2c8fe6e593 add iscsi initiator name to persistentvolume_info 2020-10-05 08:19:18 -04: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
Jimmy K Seto 4670207a75 move strconv under context; add test case to make sure labels do not interfere 2020-08-17 19:51:26 -04:00
Jimmy K Seto 2c88f8f2ed gofmt'ing fixes 2020-08-17 19:18:51 -04:00
Jimmy K Seto 529a15afd3 add fc/iscsi/nfs identifier tags to persistentvolume_info 2020-08-17 17:56:32 -04: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
Povilas Versockas a78b0e7a06
add aws/gce volume id to kube_persistentvolume_info 2020-05-25 15:28:17 +03: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
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