Lili Cosic
b8cca61bae
internal/store/verticalpodautoscaler_test.go: Switch test to new API
2021-03-22 13:46:47 +01:00
Lili Cosic
6e81605114
internal/store/pod.go: Pre-allocate metric slices optimistically
2021-02-25 09:46:36 +01:00
Lili Cosic
fa5e260535
internal/store/pod.go: Only create last_terminated containers series if pods are
...
terminated. This reduces the cardinality of this metric greatly, as it was
one of the highest cardinality metrics pre 2.0.
2021-02-24 16:59:53 +01:00
Lili Cosic
99838a5762
Adjust unit tests
2021-02-09 15:50:38 +01:00
Lili Cosic
025ae126df
internal/store/pod.go: Only create terminated_reason series if pods are
...
terminated. This reduces the cardinality of this metric greatly, as it was
one of the highest cardinality metrics pre 2.0.
2021-02-09 15:50:38 +01:00
Lili Cosic
9d147ca2b6
Adjust unit tests
2021-02-08 13:55:52 +01:00
Lili Cosic
a1b71c0ef0
internal/store/pod.go: Only create waiting_reason series if pods are
...
waiting. This reduces the cardinality of this metric greatly, as it was
one of the highest cardinality metrics pre 2.0.
2021-02-08 13:45:03 +01:00
Lili Cosic
0f4c5128ec
internal/store: Rework label allow list for label metrics
2020-11-18 15:59:19 +01:00
Jimmy K Seto
9078a53265
fix container resource limits metrics, which got dropped btwn 2.0.0-alpha.1 and 2.0.0-alpha.2
2020-11-02 14:48:04 -05:00
Eric Ernst
0cb814f725
pod: add gauge for runtimeclass handler
...
Add a metric gauge to provide observability for the runtimeclass
used for running a pod.
Signed-off-by: Eric Ernst <eric_ernst@apple.com>
2020-10-26 08:03:31 -07:00
Lili Cosic
b92fd141c8
Adjust unit tests
2020-10-26 14:04:34 +01:00
Lili Cosic
df83631c0a
internal/store/pod.go: Revert "Rework resource metrics"
2020-10-26 14:04:34 +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
Kubernetes Prow Robot
35ef70bb74
Merge pull request #1260 from lilic/migrate-apis
...
Migrate ingress and certificates away from deprecated APIs
2020-10-15 08:44:25 -07:00
Kubernetes Prow Robot
d55f5aced2
Merge pull request #1214 from AdityaMisra/kube_metric_job_failed_reason
...
Added the job failure reason in kube_job_status_failed metric
2020-10-14 00:23:54 -07:00
Lili Cosic
9565e74e36
internal/store/certificatesigningrequest: Migrate to v1
2020-10-13 14:22:48 +02:00
Lili Cosic
9c1d4ace30
internal/store/ingress: Migrate to k8s.io/api/networking/v1 API
2020-10-13 10:19:11 +02:00
Aditya Misra
639b4994d1
Added the job failure reason in kube_job_status_failed metric
...
Fixed linting issues
Code review changes
Removed condition label from kube_job_status_failed metric
Removed condition label from Job Metrics
2020-10-12 18:49:18 +05:30
Kubernetes Prow Robot
a0a893da91
Merge pull request #1250 from lilic/fix-klog
...
Bump klog to v2 and client-go to 1.19
2020-10-05 09:34:33 -07:00
Lili Cosic
4093cb34de
Adjust klog to klog/v2
2020-10-05 15:29:12 +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
Ben Ye
4d8d85f467
use promauto to register metrics
...
Signed-off-by: Ben Ye <yb532204897@gmail.com>
2020-09-13 19:07:47 -04:00
Joel Whittaker-Smith
908f87b2cd
apply boundaries to metrics and allow via flag what labels to include
...
Signed-off-by: Joel Whittaker-Smith <jdws.dev@gmail.com>
2020-08-26 12:42:30 +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
root
1745b33e8e
fix typos
2020-07-31 02:13:18 +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
vikkyomkar
7d6cfc865f
increment expectedFamilies count to 57
2020-07-27 18:22:57 +05:30
vikkyomkar
b2fc4e1bab
added new metric kube_pod_container_state_started
2020-07-26 11:35:37 +05:30
Vishnu Lakshmanan
8031a70854
Update DaemonSet updated_number_scheduled metric name to be consistent
2020-07-24 19:47:35 -07:00
Vishnu Lakshmanan
9179f499f9
Add observedGeneration metric for DaemonSets
2020-07-23 23:40:56 -07:00
Kubernetes Prow Robot
4d81218b01
Merge pull request #1168 from brancz/rework-resource-metrics
...
Rework resource metrics
2020-07-23 10:05:40 -07:00
Jimmy K Seto
e9f4552ecf
add internal_ip to node_info
2020-07-22 10:58:11 -04:00
Frederic Branczyk
cd42164e42
internal/store: Add named resource pod overhead metrics
...
This patch turns the generic pod overhead metrics into one metric per
resource as per Prometheus best practices.
2020-07-16 10:34:52 +02:00
Frederic Branczyk
c59d728829
pod_test.go: Fix benchmark expectation
2020-07-15 17:10:22 +02:00
Frederic Branczyk
98572212e8
internal/store: Add named init container resource request/limit metrics
...
This patch returns named resource request and limit metrics for well
known resources for init containers, but keeps the generic metric as an
extension mechanism.
2020-07-15 15:38:13 +02:00
Frederic Branczyk
4129feb3cc
internal/store: Add named resource limit metrics
...
This patch returns named resource request metrics for well known
resources, but keeps the generic metric as an extension mechanism.
2020-07-15 15:09:31 +02:00
Frederic Branczyk
584f7de830
internal/store: Add named resource request metrics
...
This patch returns named resource request metrics for well known
resources, but keeps the generic metric as an extension mechanism.
2020-07-15 14:59:19 +02:00
Damien Grisonnet
2483d78a1b
internal/store: convert k8s labels to snake case
...
According to Prometheus best practices, labels should be written in
snake_case.
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-07-06 15:23:31 +02:00
George Miroshnykov
6c9b7ff8ca
Avoid conflicts when mapping Kubernetes labels to Prometheus labels
...
Prometheus 2.16.0 introduced a breaking change that prevents
_any_ metrics from being ingested from a target in case
_even a single_ metric has duplicate labels.
See https://github.com/prometheus/prometheus/pull/6664
This becomes a problem for ksm as Kubernetes label naming is less restrictive
than Prometheus label naming, so we have a "sanitization" process that replaces
unsupported characters with an underscore.
A side effect of this process is that it can produce duplicate labels, e.g.
Kubernetes labels "foo.bar", "foo-bar" and "foo_bar" are mapped to the same
Prometheus label "foo_bar".
Based on the discussion in #1141 , we've decided to sort and then automatically
rename conflicting labels, so "foo-bar" and "foo_bar" will become
"label_foo_bar_conflict1" and "label_foo_bar_conflict2" correspondingly.
If you'd like to have more control over how this conflict is resolved,
you should consider addressing this on a different level of the stack,
e.g. by standardizing Kubernetes labels using Admission Webhook that
ensures that there are no possible conflicts.
2020-06-12 00:04:54 +03:00
Kubernetes Prow Robot
cce1e3309a
Merge pull request #1146 from povilasv/add-volume-id
...
add aws/gce volume id to kube_persistentvolume_info
2020-05-25 06:27:12 -07:00
Kubernetes Prow Robot
0bfc2981f9
Merge pull request #1145 from qw1mb0/add-unexpected-admission-error-pod-reason
...
add UnexpectedAdmissionError to kube_pod_status_reason metric
2020-05-25 05:37:12 -07:00
Povilas Versockas
a78b0e7a06
add aws/gce volume id to kube_persistentvolume_info
2020-05-25 15:28:17 +03:00
qw1mb0
bdb2e9284e
add UnexpectedAdmissionError to kube_pod_status_reason metric
2020-05-16 21:19:25 +03:00
qw1mb0
59e0e0cf05
switch mutatingwebhookconfiguration to v1
2020-05-16 20:41:16 +03:00
Benjamin
a2743b63ea
Fix VolumeAttachment API version mismatch: expected v1 but watching v1beta1
...
Signed-off-by: Benjamin <benjamin@yunify.com>
2020-05-06 18:43:41 +08:00
Frederic Branczyk
1610b64df8
pod: Add init container requests
2020-04-15 22:03:27 +02:00