Commit Graph

32 Commits

Author SHA1 Message Date
SuperQ a775fe3458
feat: Add PersistentVolume Reclaim Policy metric
In order to monitor for PVs with different reclaim policies add a
`reclaim_policy` label to the `kube_persistentvolume_info` metric.

Signed-off-by: SuperQ <superq@gmail.com>
2025-02-20 10:37:13 +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
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
Manuel Rüger 6071db7f49 build: Fix lint 2023-08-25 12:50:58 +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
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
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 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 b4b8df7134 Fixing unit test for PV and PVC 2022-05-29 11:42:13 +01: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
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
Arunprasad Rajkumar b00b1994ce
test: Improve coverage for persistentvolume annotation/label related metrics
Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
2021-10-08 16:16:56 +05:30
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
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 1b42e7c450
lint: enforce goimports local prefixes 2019-08-20 10:33:05 -07:00
Tariq Ibrahim 9799ac0e61
Merge release-1.7 into upstream/master 2019-08-05 10:46:00 -07:00
Lili Cosic 684293930a internal/store/*: Enable metric headers in tests 2019-07-26 13:31:20 +02: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