Commit Graph

43 Commits

Author SHA1 Message Date
Nataly Sheinin 99623defbe
add mutatingwebhookconfiguration, validatingwebhookconfiguration metrics 2019-10-03 14:23:18 -04:00
Kubernetes Prow Robot c9d5deb4fa
Merge pull request #890 from terinjokes/patches/hpa-conditions
correct hpa condition status
2019-09-19 17:26:59 -07:00
Terin Stock 6b09c5eb7d correct mapping of hpa condition status labels
The "condition" and "status" labels for the hpa status conditions were
mapped to the incorrect values. This resulted in the status being in the
condition label, and the condition in the status label.

This changelist corrects the mapping, so that condition and status map
to their respective values.

    kube_hpa_status_condition{condition="AbleToScale",hpa="hpa1",namespace="ns1",status="false"} 0
    kube_hpa_status_condition{condition="AbleToScale",hpa="hpa1",namespace="ns1",status="true"} 1
    kube_hpa_status_condition{condition="AbleToScale",hpa="hpa1",namespace="ns1",status="unknown"} 0

Fixes: f9658ca ("Add hpa conditions")
Signed-off-by: Terin Stock <terin@cloudflare.com>
2019-09-18 20:19:16 -07:00
Terin Stock 8c7cf669e0 deployment status conditions
Deployments, like Nodes, have status conditions observing the
current state. While the state of Available and Progressing conditions
can likely be inferred by other metrics, the state of ReplicaFailure can
not be inferred.

This changelist adds a new metric `kube_deployment_status_condition`
that observes all the conditions on a deployment for each condition
status. This is analogous to the status conditions observed by nodes and
horizontal pod autoscalers, and allows kube-state-metrics to observe
status conditions added by third-parties.

As an example, for a deployment that has stalled, the following new
metrics observed would allow an operator to detect the condition:

    kube_deployment_status_condition{deployment="example", namespace="default", condition="ReplicaFailure", status="true"} 1
    kube_deployment_status_condition{deployment="example", namespace="default", condition="ReplicaFailure", status="false"} 0
    kube_deployment_status_condition{deployment="example", namespace="default", condition="ReplicaFailure", status="unknown"} 0

Bug: #886
Signed-off-by: Terin Stock <terin@cloudflare.com>
2019-09-18 19:05:12 -07:00
Andy Bursavich 347ec0872e store: add kube_node_role metric 2019-09-05 08:38:09 -07:00
Frederic Branczyk f3d41de450
Add auto detecting of sharding
main_test.go: Add model based test for sharding

In order to ensure a sharded system behaves equal to an unsharded
system, a model based test has been introduced. It scrapes an unsharded
setup and compares its output with the union of a sharded setup
therefore ensuring semantic equality.
2019-08-30 22:45:35 +02:00
Frederic Branczyk 84d61f9a93
Introduce sharding 2019-08-30 13:51:30 +02:00
Tariq Ibrahim 96eefd08f6
chore: update dependencies and tool versions 2019-08-16 20:27:21 -07:00
Kubernetes Prow Robot beacbf9169
Merge pull request #835 from pigletfly/pod-unschedulable
feat: add kube_pod_status_unschedulable metric
2019-08-12 01:39:11 -07:00
pigletfly c37f9ae305 feat: add kube_pod_status_unschedulable metric 2019-08-09 23:31:42 +08:00
Tariq Ibrahim 9799ac0e61
Merge release-1.7 into upstream/master 2019-08-05 10:46:00 -07:00
Lili Cosic e34157533f docs,internal: Remove kube_pod_init_container_resource_requests
This metric is not longer being created.
2019-07-26 13:55:19 +02:00
Kubernetes Prow Robot f0e7e85b1e
Merge pull request #834 from smarterclayton/add_restart_always
pods: Add pod_restart_policy metric
2019-07-23 13:30:19 -07:00
Clayton Coleman a02f1bc874
pods: Add pod_restart_policy metric
Report pod_restart_policy{...,type="Always|OnFailure|Never"} 1 for the
pod.spec.restartPolicy which allows an admin to know how many batch vs
service workload pods are running on the cluster.
2019-07-23 16:10:07 -04:00
Ergin Babani 5149453fe2 Add metrics for tls host and secretname 2019-07-21 17:57:29 -04:00
Bryan Boreham 8106b267f8
Fix typo
Signed-off-by: Bryan Boreham <bryan@weave.works>
2019-07-01 11:43:42 +01:00
Kubernetes Prow Robot f24d831a47
Merge pull request #770 from qw1mb0/add-kube-deployment-revision
add kube_*_annotations metrics
2019-06-26 00:29:15 -07:00
Andrey Sidorov 5ae00bb93f add kube_*_annotations metrics for all objects 2019-06-25 22:29:27 +03:00
Tariq Ibrahim bdd3481c9a
update kubernetes versions to point to 1.15 2019-06-20 11:13:48 -07:00
Kubernetes Prow Robot 0ffcc30a0f
Merge pull request #791 from monzo/vertical-pod-autoscaler-metrics
store: add metrics for VerticalPodAutoscaler objects
2019-06-20 06:02:49 -07:00
Miles Bryant 67ef5ecc9c
store: add verticalpodautoscaler metrics 2019-06-20 12:24:37 +01:00
Tariq Ibrahim 2a3c696347
feat: implement black/white- listing of metrics by regex 2019-06-19 02:16:52 -07:00
Lili Cosic 23b7f268a6 CONTRIBUTING.md,docs/*: Run make generate
The docs were out of date.
2019-06-07 20:11:14 +02:00
xieyanker 7bae302e93 remove storageclass resource_version 2019-06-06 18:34:19 +08:00
xieyanker c18dfa26cf Add Metrics About StorageClass 2019-06-05 11:32:54 +08:00
Tariq Ibrahim 050ab046ed Add pod init container metrics
Co-Authored-By: Tariq Ibrahim <tariq181290@gmail.com>
Co-Authored-By: Sumit Vij <sumitvij11+github@gmail.com>
2019-05-19 23:18:06 -07:00
Joshua DeWald 25fbfa4bbf Add CreateContainerError and InvalidImageName waiting reasons 2019-05-17 15:10:52 -07:00
Johann Bich a4554a690c formatting 2019-05-15 10:44:57 +09:00
Johann Bich 37b37fc373 cli arguments and limited privileges doc 2019-05-15 10:42:55 +09:00
Daniel Pacrami b5234baf9c Add DeadlineExceeded pod termination reason
This adds DeadlineExceeded as a valid reason for
kube_pod_container_status_terminated_reason and
kube_pod_container_status_last_terminated_reason
2019-05-06 12:43:55 -04:00
Ergin Babani ed6c9d93b6 Add additional ingress metrics
Report the ingress host, path, service backend and port.
2019-05-04 20:22:54 -04:00
Federico Hernandez 0240fe5b01
Capital letters for ENDPOINT string
Update of documentation for consistency reasons (see e.g. kube_service_labels or kube_deployment_labels or kube_persistenvolume_labels): label_RESOURCESTRINGINCAPITALLETTERS_LABEL=<RESOURCESTRINGINCAPITALLETTERS_LABEL>
2019-05-03 13:20:55 +02:00
chenk008 d3d6fc46d5 Add unit test
Add “priority_class” in document
2019-04-05 01:56:05 +08:00
flouthoc 70229f79c9
kube_node_status_phase does not works.
https://github.com/kubernetes/kube-state-metrics/issues/472
2019-04-02 16:58:14 +05:30
Haoran Wang 6793b6881d Add collector for csr 2019-03-21 09:03:42 +08:00
Jesus Vazquez 93924a6c03 Accept suggestions 2019-03-08 20:45:17 +01:00
Jesus Vazquez f80b1d5c27 Add join metric example for running pods requesting memory 2019-03-05 21:53:23 +01:00
Jesus Vazquez 19859e2fcd Remove trailing spaces and format tables 2019-03-05 21:53:01 +01:00
Andrey Klimentyev 15f74a64da Export Job's owner
Signed-off-by: Andrey Klimentyev <andrey.klimentyev@flant.com>
2019-02-25 12:35:47 +03:00
Raphael Deem 58fd35234d rename pvc capacity 2019-02-21 15:58:47 -08:00
Raphael Deem 8d4984cc1a add persistent volume capacity metric 2019-02-21 15:58:47 -08:00
tariqibrahim 92fd49351a Merge branch 'master' into use_docs 2019-02-21 07:10:41 -08:00
tariqibrahim 3f22eff70d docs: rename the Documentation folder to docs 2019-02-19 21:06:44 -08:00