Commit Graph

71 Commits

Author SHA1 Message Date
cedric lamoriniere 311c6821c1 update pod metrics docs after review
Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2020-02-05 21:40:43 +01:00
cedric lamoriniere 02844c3293 remove deprecated metrics after rebase
Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2020-02-05 19:10:13 +01:00
cedric lamoriniere aa320cf15e [doc] add useful pod.state metrics query
Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2020-02-05 19:05:24 +01:00
cedric lamoriniere 0650fd1271 update doc with new pod's metrics and fix benchmark
Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
2020-02-05 19:05:24 +01: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
Kubernetes Prow Robot 257e43bf8d
Merge pull request #1045 from tlereste/issue_975_with_author
Rename black-/whitelist to allow/deny-list
2020-02-05 02:17:56 -08:00
Thibault Le Reste eb01334f2d Rename hpa metrics to use full horizontalpodautoscaler nomenclature 2020-02-04 16:42:47 +01:00
Thibault Le Reste cb655340d6 Rename black-/whitelist to allow/deny-list 2020-02-03 17:05:11 +01:00
Kubernetes Prow Robot 0ff33c2137
Merge pull request #1005 from yeya24/same-port
v2: change metrics port to 8080, telemetry port to 8081
2020-01-31 01:54:20 -08:00
asidorovj f5729a5ccb add leases collector 2020-01-30 08:31:01 +03:00
Lili Cosic 1dc5555a27 docs: Update hpa docs 2020-01-21 16:57:41 +01:00
yeya24 53af563a6a change metrics port to 8080, telemetry port to 8081
Signed-off-by: yeya24 <yb532204897@gmail.com>
2019-12-13 12:47:07 -05:00
Lili Cosic 95df86989d docs/*: Update resource version metrics 2019-12-12 09:44:18 +01:00
Tariq Ibrahim ee11d817f2
fixing some issues missed during previous code reviews 2019-11-15 11:45:02 -08:00
Kubernetes Prow Robot 75a2d9d02f
Merge pull request #949 from wozniakjan/namespace_status_conditions
Namespace status conditions
2019-11-15 10:08:32 -08:00
Jan Zantinge a0c63d5920 Added a kube_hpa_target_metric metric that publishes all of a HPA's target metrics. 2019-11-14 10:32:58 -05:00
Kubernetes Prow Robot e51fc8faf0
Merge pull request #961 from lyft/hpa-metrics
add hpa stats for current utilization and average value
2019-11-04 14:12:12 -08:00
Ashley Kasim e7aaca6909 add hpa stats for current utilization and average value 2019-11-04 13:22:18 -08:00
Jacob Straszynski d7de75c5e5 document the new pod-cidr dimension 2019-11-01 14:17:13 -07:00
Jan Wozniak 97142aedb8 Add docs and tests for namespace conditions 2019-11-01 11:49:06 +01:00
Kubernetes Prow Robot 9d35328b38
Merge pull request #952 from ankitsinhaiiitg/aks-resizingStatusMetric
Add metric to show details of status condition of PVC resizing.
2019-10-28 07:47:26 -07:00
Ankit Kumar Sinha fe07c8cec3 -m ADD kube_persistentvolumeclaim_status_condition metric for information about status of different conditions of persistent volume claim. 2019-10-26 04:49:41 +05:30
Tariq Ibrahim ea4c2eb764
Merge branch 'master' into networkpolicy-collector 2019-10-17 10:10:45 -07:00
Miles Bryant e780fc34f3
store: export NetworkPolicy objects 2019-10-17 11:49:29 +01:00
Jens Erat 4e637854a2
add VolumeAttachment collector
Kubernetes has a new resource type: `VolumeAttachments`. They provide
helpful information on where a volume is attached and to alert on
unexpected attachment status (for example, differences between
information scraped from node-exporter and kube-state-metrics).

The collector adds a bunch of new metrics. Each VolumeAttachment (ie.,
each CSI-attached volume) will have one of each, so we do not overly
pollute the metrics space. Most metrics are rather unsurprising.

- `kube_volumeattachment_status_attachment_metadata`: provides a
  label-like export of the attachment metadata map. Generalizing the
  label-conversion function slightly helps at providing this metric.
- `kube_volumeattachment_created`: as VolumeAttachments are
  automatically created and we already suffered from duplicate
  `VolumeAttachments`, this can be invaluable for debugging
  misattachments.
- `kube_volumeattachment_spec_source_persistentvolume`: will only be
  generated when the volume source is of `PersistentVolume` type. The
  other type `inlineVolumeSpec` is still alpha-level and hard to map to
  metrics.

No end-to-end test manifest was added, as `VolumeAttachment`s are
automatically generated when mounting volumes.

Signed-off-by: Jens Erat <email@jenserat.de>
2019-10-13 21:36:50 +02:00
Kubernetes Prow Robot d8af0881dc
Merge pull request #940 from natalysheinin/add-setup-documentation
[documentation] Adding a new Kubernetes Resource
2019-10-10 11:01:21 -07:00
Nataly Sheinin 998de32fc2 add instructions for adding a new k8s resource 2019-10-10 10:32:41 -04:00
Simon Pasquier e3c8827521 Fix typo in the job metrics description 2019-10-08 10:16:25 +02:00
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