Commit Graph

380 Commits

Author SHA1 Message Date
Damien Grisonnet 3040c54b8b pod: rm reworked init container resource metrics
These metrics are superseded by the Pod resource metrics initiative in
Kubernetes. In 2.0.0, we removed the reworked container resource
metrics, but omitted the init container ones although they are also
covered by the Kubernetes effort.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-08-20 18:47:34 +02:00
Sylvain Rabot 0e45534441
Merge remote-tracking branch 'origin/master' into annotations 2021-08-19 16:31:20 +02:00
Lan Liang 78775b02eb rename use-api-server-cache to use-apiserver-cache in flags 2021-08-18 12:58:01 +08:00
Lan Liang 6f4fb874d2 Add doc for useAPIServerCache 2021-08-17 22:46:10 +08:00
Sylvain Rabot 81db7e0b78
Fix kube_horizontalpodautoscaler_annotations status
Co-authored-by: Damien Grisonnet <damien.grisonnet@epita.fr>
2021-08-16 13:45:51 +02:00
Sylvain Rabot 96d08df5d0
Merge remote-tracking branch 'origin/master' into annotations 2021-08-16 08:50:02 +02:00
Sylvain Rabot e3688234a3
Mark new annotations metrics as EXPERIMENTAL
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2021-08-15 18:11:36 +02:00
Kubernetes Prow Robot 17204a5f55
Merge pull request #1535 from sumitk23/master
Added additional attributes for Cronjob and Node entities : Fixes issue and #1509
2021-08-09 03:23:30 -07:00
Sumit e34921c653
Make new metrics experimental in docs 2021-08-09 10:20:59 +05:30
ravisantoshgudimetla a733640186 Introduce StatefulSet availableReplicas metric 2021-08-06 09:39:04 -04:00
Akshit Grover 405419106e
Update deployment ready replicas metric status
Change status for kube_deployment_status_replicas_ready to EXPERIMENTAL
2021-07-26 18:10:06 +05:30
Akshit Grover 8990d2e990 Add kube_deployment_status_replicas_ready in the docs
Signed-off-by: Akshit Grover <akshit.grover2016@gmail.com>
2021-07-22 23:33:36 +05:30
Sumit 571258f18a
Merge branch 'kubernetes:master' into master 2021-07-22 10:45:38 +05:30
Sylvain Rabot c23771170a
Merge branch 'master' of https://github.com/kubernetes/kube-state-metrics into annotations 2021-07-13 17:16:29 +02:00
Manuel Rüger 6b2cba2e74 docs: Fix typo
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2021-07-13 17:01:00 +02: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 b60508b2cf
Move option in the cli arguments list
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2021-07-13 11:28:27 +02:00
Sylvain Rabot 754aeb786b
Merge remote-tracking branch 'origin/master' into annotations 2021-07-07 09:31:49 +02:00
sumikum3 f46fb4ecc6 Added missing cronjob and node atrributes : https://github.com/kubernetes/kube-state-metrics/issues/1509 2021-07-06 00:28:14 -07:00
hbc 54fa7eddef doc: update certificatesigningrequest metrics doc 2021-07-05 13:57:52 +00:00
Sylvain Rabot c1d3c87589
Fix documentation and tests
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2021-06-25 15:45:00 +02:00
Sylvain Rabot adcf2b42c5
Regenerate docs/cli-arguments.md
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2021-06-07 15:59:06 +02:00
Sylvain Rabot c0cb4755e5
Merge remote-tracking branch 'origin/master' into annotations 2021-06-07 15:34:15 +02:00
Kubernetes Prow Robot cbfc906951
Merge pull request #1492 from mrueg/merge-release-back
Merge release v2.1.0-rc.0 back to master
2021-06-02 00:00:38 -07:00
Ahmed Mezghani 1b06da07f4
Fix typo ephermal_storage -> ephemeral_storage
Fix a typo in the node metrics documentation.
2021-05-27 10:21:50 +02:00
Manuel Rüger b0813309c3 Cut v2.1.0-rc.0 2021-05-18 14:38:24 +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
Pulak Kanti Bhowmick a85edd48ab Add resourceVersion to CronJob metrics
Signed-off-by: Pulak Kanti Bhowmick <pkbhowmick007@gmail.com>
2021-04-10 13:54:43 +06:00
Kubernetes Prow Robot ba36af0dae
Merge pull request #1403 from Mikulas/label-allow-list-any
Add wildcard option to metric-labels-allowlist
2021-04-09 01:40:47 -07:00
Elana Hashman 8fe4363806
Fix typo in pod-metrics docs 2021-04-08 17:14:00 -07:00
Mikulas (Mike) Dite 70d039b140 Add wildcard option to labels-metric-allow-list 2021-03-30 14:26:12 +01:00
Manuel Rüger de2bdebc67 Regenerate cli docs 2021-03-27 00:00:45 +01:00
Manuel Rüger 8160f327b0 Merge branch 'release-2.0' into merge-release-2.0 2021-03-26 23:54:14 +01:00
Manuel Rüger 2a7a96b659 Rename cli flag from label-metrics-allow-list to metric-labels-allowlist
This might be more clear on what the flag is doing. There were two ways
to spell allow-list / allowlist which it removes as well

Fixes: https://github.com/kubernetes/kube-state-metrics/issues/1421
2021-03-26 13:11:19 +01:00
Michael Dresser d352c37697 Fix docs README link to a nonexistent section
I assume deprecation information is supposed to be
contained in the relevant sub-documents for metric
categories.
2021-03-24 16:01:32 -04:00
Manuel Rüger 4ac23cc0f9 cli-arguments.md: Fix docs 2021-03-22 17:06:55 +01:00
Manuel Rüger cbce059ffc cli-arguments.md: Fix docs 2021-03-18 14:18:13 +01:00
DazWilkin d1acc1ae5c Document process for enabling Vertical Pod Autoscalers controller 2021-03-10 10:19:19 -08:00
Lili Cosic 81ca495c9e Merge remote-tracking branch 'upstream/release-2.0' into bring-release-2.0 2021-03-05 15:14:49 +01:00
Mikulas (Mike) Dite ffa4c7bf0e fix labels-metric-allow-list documentation
The parser defined in types.go does not expect quotes
https://github.com/kubernetes/kube-state-metrics/blob/master/pkg/options/types.go#L136-L140
https://github.com/kubernetes/kube-state-metrics/blob/master/pkg/options/types_test.go#L168
2021-03-03 11:07:09 +00:00
Lili Cosic c3121e74bf docs/pod-metrics.md: Adjust docs and stability 2021-02-24 17:00:27 +01:00
Lili Cosic 950a173907 docs/pod-metrics.md: Mark changed metrics as experimental 2021-02-09 15:51:55 +01:00
Lili Cosic 93aeadc048 docs/pod-metrics.md: Mark metrics as non stable
As with 2.0 we are breaking support for 1.x and previous stabilities.
In case we run into problems this gives us a chance to revert this.
2021-02-08 15:23:44 +01:00
Jeswin dc1e9186e0 docs: Added Description, Units for Services, Pods, Nodes as per 1356 2021-02-01 18:30:55 +05:30
Kubernetes Prow Robot b4fb3d474b
Merge pull request #1354 from mayankshah1607/mayank/native-tls
feat: Add support for native TLS
2021-01-24 23:48:53 -08:00
Mayank Shah ec2a3ff831 Add support for native TLS
- introduce new flag `tls-config` to pass the path to tls config file

Signed-off-by: Mayank Shah <mayankshah1614@gmail.com>
2021-01-25 13:03:05 +05:30
QuentinBisson 7c7175838e
feat(persistentvolume) Add Azure Disk Name to kube_persistentvolume_info 2021-01-19 14:37:27 +01:00
Frank Villaro-Dixon 4b7ce27e81 options: change default host from 0.0.0.0 to ::
This commit paves the way to plug-and-play IPv6-only or dual stack
clusters. Making the service listen on :: instead of 0.0.0.0 is a no-brainer
as it still supports v4-only clusters but makes it ready for v6 ones.

Signed-off-by: Frank Villaro-Dixon <frank.villaro@infomaniak.com>
2021-01-08 18:29:04 +01:00
Lili Cosic 18b81768d1 docs/cli-arguments.md: Update generated args 2020-12-17 14:10:50 +01:00
Illya Chekrygin 4090e8b7aa
Add "uid" label to every pod metric to differentiate between pod instances with the same name.
Signed-off-by: Illya Chekrygin <illya.chekrygin@gmail.com>
2020-11-20 12:26:18 -08:00
Lili Cosic ca6b177014 pkg/options/types.go: Adjust Set to parse new flag params 2020-11-20 15:31:35 +01:00
Lili Cosic 3b23d01afe pkg/options/types.go: Adjust Set to parse new flag params 2020-11-18 15:59:19 +01:00
Jimmy K Seto 122f2075c7 fix container resource limits metrics, which got dropped btwn 2.0.0-alpha.1 and 2.0.0-alpha.2 2020-11-03 11:42:57 -05: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
Kubernetes Prow Robot a92bec22f0
Merge pull request #1291 from kesor/fix-typo-in-node-doc
fix typo in node-metrics.md
2020-10-30 03:06:05 -07:00
Evgeny Zislis 9add721a00
typo in node-metrics.md 2020-10-30 11:12:26 +02:00
Jang Dong Min 0253dae293
fix pod-metrics.md 2020-10-28 11:29:50 +09: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 2c65e6f77a docs/pod-metrics.md: Adjust docs 2020-10-26 14:46:28 +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 ab61af760f
Merge pull request #1265 from jangdm/jangdm-fixtypo
fix html tag in service-metrics.md
2020-10-16 01:31:26 -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
jangdm a722914475
Update service-metrics.md 2020-10-13 17:30:33 +09: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 cb2c2a2263 docs/cli-arguments.md: Regenerate 2020-10-05 18:06:46 +02:00
Jimmy K Seto 2c8fe6e593 add iscsi initiator name to persistentvolume_info 2020-10-05 08:19:18 -04:00
Damien Grisonnet d7f786b77f docs/pod-metrics.md: add missing condition label
The condition label of the kube_job_complete and kube_job_failed were
forgotten in the documentation.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2020-09-18 09:56:41 +02:00
Kubernetes Prow Robot e6260bda1a
Merge pull request #1125 from jw-s/feature/apply-boundary-to-metrics
apply boundaries to metrics and allow via flag what labels to include
2020-09-02 11:19:06 -07:00
Vinay 5b7e336866
Label/Tags are shown in status tab
Label/Tags for the first few metrics are shown in the status tab and status is not shown on UI.

Removed a wrong demarkation.
2020-08-31 20:08:13 +05:30
Vinay c2aed4b093
Label/Tags are shown in status tab
Label/Tags for the first few metrics are shown in the status tab and status is not shown on UI.

Removed a wrong demarkation.
2020-08-31 19:29:48 +05:30
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 529a15afd3 add fc/iscsi/nfs identifier tags to persistentvolume_info 2020-08-17 17:56:32 -04:00
vikkyomkar 4c55d50e68 added new metric kube_pod_container_state_started 2020-07-26 11:34:40 +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 93022751e7
docs/pod-metrics.md: Mark all resource metrics experimental 2020-07-16 09:24:25 +02:00
Frederic Branczyk 418f7041b8
docs: Adapt pod metrics docs 2020-07-15 16:02:10 +02: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
tariqibrahim 81d5ae8949 add caveat for enabling verticalpodautoscalers 2020-05-23 22:44:50 -07:00
qw1mb0 bdb2e9284e add UnexpectedAdmissionError to kube_pod_status_reason metric 2020-05-16 21:19:25 +03:00
Frederic Branczyk 3df53e5164
docs: Add init container resource request docs 2020-04-15 22:03:28 +02:00
Frederic Branczyk 834a0c0d06
volumeattachment: Fix instrumentation guideline violation 2020-04-08 10:55:33 +02:00
jangdm e2c2d6498c Title does not match content 2020-03-31 08:17:05 +00:00
vikkyomkar 17a0fb3fba Renamed storage class labels 2020-03-27 11:32:51 +05:30
jangdm ee26caa090
fix typo in statefulset metrics documentation
&gt -> &gt;
2020-03-25 17:53:08 +09:00
jangdm 186fe03d3c
Fix typo
service port for hte
-> service port for the
2020-03-25 16:39:34 +09:00
Rustam Zagirov b61a3b320a add host_network to kube_pod_info 2020-03-18 21:23:37 +03:00
vikkyomkar 1be1b9d77b Renamed --namespace flag to --namespaces 2020-03-14 21:35:15 +05:30
Kubernetes Prow Robot 9230c40ff0
Merge pull request #1082 from olivierlemasle/fix-1078
[e2e] Check labels documentation
2020-03-09 16:25:36 -07:00
Olivier Lemasle 0387ebbb45 Fix metrics & labels documentation 2020-02-27 20:37:53 +01:00
Olivier Lemasle 6fac7a2ddd Rename kube_pod_deleted to kube_pod_deletion_timestamp 2020-02-24 11:32:59 +01:00
Kubernetes Prow Robot 7fea52cfda
Merge pull request #1074 from olivierlemasle/fix-doc
Remove deprecated (and removed) metric from doc
2020-02-21 08:48:33 -08:00
Olivier Lemasle 12ca1ce1c1 Remove deprecated (and removed) metric from doc 2020-02-21 14:45:22 +01:00
Olivier Lemasle 025d449da5 Fix example PromQL queries related to Pod status 2020-02-21 14:26:23 +01:00
Kubernetes Prow Robot 3573269a32
Merge pull request #1058 from olivierlemasle/fix-1055
Add kube_replicationcontroller_owner
2020-02-18 14:22:25 -08:00
Olivier Lemasle 325a332d71 Add kube_replicationcontroller_owner 2020-02-18 22:24:17 +01:00
Olivier Lemasle 3a2d895d49 Fix typos 2020-02-17 20:43:20 +01:00
Kubernetes Prow Robot a618eab33d
Merge pull request #1053 from egernst/overhead
pod: add gauges for pod overhead
2020-02-10 11:11:54 -08:00
Alexander-Carpenter d8ca14b6e6 Fix doc issue 2020-02-08 09:44:30 -06:00
Eric Ernst c1895cdec3 pod: add gauges for pod overhead
Add a metric guage to provide observability for the overhead associated
with running a pod.

Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2020-02-07 22:15:36 -08:00
Alexander-Carpenter 1eca877ce7 Change description 2020-02-05 21:39:26 -06:00
Alexander-Carpenter 36caf1ed83 Docs fix 2020-02-05 20:29:57 -06:00
Alexander-Carpenter 69fe7da267 Rename collector to resource 2020-02-05 19:43:23 -06:00
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
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