From a0a318f1d79230518f10e89ebbc4cbd7b7e3ed10 Mon Sep 17 00:00:00 2001 From: Pablo Mercado Date: Mon, 16 Sep 2019 12:38:19 +0200 Subject: [PATCH 01/11] add manual test manifests for resource quotas --- .../test/docs/02_objects/resourcequota.yaml | 97 +++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 metricbeat/module/kubernetes/_meta/test/docs/02_objects/resourcequota.yaml diff --git a/metricbeat/module/kubernetes/_meta/test/docs/02_objects/resourcequota.yaml b/metricbeat/module/kubernetes/_meta/test/docs/02_objects/resourcequota.yaml new file mode 100644 index 000000000000..a16f0f4663c5 --- /dev/null +++ b/metricbeat/module/kubernetes/_meta/test/docs/02_objects/resourcequota.yaml @@ -0,0 +1,97 @@ +# ResourceQuota tests + +# This example will create a namespace and apply some resource restrictions on it, then +# some of those restrictions will be challenged + +apiVersion: v1 +kind: Namespace +metadata: + name: rqtest + +--- + +apiVersion: v1 +kind: ResourceQuota +metadata: + namespace: rqtest + name: resources +spec: + hard: + requests.cpu: 1 + requests.memory: 1Gi + limits.cpu: 2 + limits.memory: 2Gi + +--- + +apiVersion: v1 +kind: ResourceQuota +metadata: + namespace: rqtest + name: objects +spec: + hard: + pods: 3 + configmaps: 1 + persistentvolumeclaims: 0 + replicationcontrollers: 1 + secrets: 1 + services: 2 + services.loadbalancers: 1 + +--- + +# See presistent volume claims above. They are not allowed (count 0), which means +# that this request will fail +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + namespace: rqtest + name: willfail +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + +--- + +# ResourceQuota/objects above allows only for one Service element type LoadBalancer +# this call should succeed, but subsequent creations will fail. +# +# It doesn't matter if the LoadBalancer is really created, what counts is the API +# object creation. You can try this at your local kubernetes environment. + +apiVersion: v1 +kind: Service +metadata: + name: willsucceed + namespace: rqtest +spec: + selector: + app: something + ports: + - protocol: TCP + port: 80 + targetPort: 8080 + type: LoadBalancer + +--- + +# As a continuation of the above case, this Service type LoadBalancer will exceed +# assigned quota for the namespace and will fail + +apiVersion: v1 +kind: Service +metadata: + name: willfail + namespace: rqtest +spec: + selector: + app: something + ports: + - protocol: TCP + port: 80 + targetPort: 8080 + type: LoadBalancer From ff11045551b7a7cc3cadc19fdae604c676836df7 Mon Sep 17 00:00:00 2001 From: Pablo Mercado Date: Mon, 16 Sep 2019 13:48:38 +0200 Subject: [PATCH 02/11] add metricset code. Pending tests --- metricbeat/docs/fields.asciidoc | 52 + metricbeat/docs/modules/kubernetes.asciidoc | 4 + .../kubernetes/state_resourcequota.asciidoc | 23 + metricbeat/docs/modules_list.asciidoc | 3 +- metricbeat/include/list_docker.go | 1 + metricbeat/module/kubernetes/fields.go | 2 +- .../kubernetes/state_resourcequota/README.md | 37 + .../state_resourcequota/_meta/data.json | 2 + .../state_resourcequota/_meta/docs.asciidoc | 2 + .../state_resourcequota/_meta/fields.yml | 26 + .../_meta/test/kube-state-metrics.1.7 | 1361 +++++++++++++++++ .../test/kube-state-metrics.1.7.expected | 0 .../_meta/testdata/config.yml | 3 + .../testdata/kube-state-metrics.1.7.plain | 1361 +++++++++++++++++ ...kube-state-metrics.1.7.plain-expected.json | 0 .../state_resourcequota.go | 103 ++ .../state_resourcequota_test.go | 39 + 17 files changed, 3017 insertions(+), 2 deletions(-) create mode 100644 metricbeat/docs/modules/kubernetes/state_resourcequota.asciidoc create mode 100644 metricbeat/module/kubernetes/state_resourcequota/README.md create mode 100644 metricbeat/module/kubernetes/state_resourcequota/_meta/data.json create mode 100644 metricbeat/module/kubernetes/state_resourcequota/_meta/docs.asciidoc create mode 100644 metricbeat/module/kubernetes/state_resourcequota/_meta/fields.yml create mode 100644 metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7 create mode 100644 metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7.expected create mode 100644 metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/config.yml create mode 100644 metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/kube-state-metrics.1.7.plain create mode 100644 metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/kube-state-metrics.1.7.plain-expected.json create mode 100644 metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go create mode 100644 metricbeat/module/kubernetes/state_resourcequota/state_resourcequota_test.go diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index b26d573ee0e5..57f8af71af43 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -17272,6 +17272,58 @@ type: long -- +[float] +=== resourcequota + +kubernetes resourcequota metrics + + + +*`kubernetes.resourcequota.created.sec`*:: ++ +-- +Epoch seconds since the ResourceQuota was created + +type: double + +-- + +*`kubernetes.resourcequota.resourcequota`*:: ++ +-- +Quota informed (hard or used) for the resource + +type: double + +-- + +*`kubernetes.resourcequota.name`*:: ++ +-- +ResourceQuota name + +type: keyword + +-- + +*`kubernetes.resourcequota.type`*:: ++ +-- +Quota information type, `hard` or `used` + +type: keyword + +-- + +*`kubernetes.resourcequota.resource`*:: ++ +-- +Resource name the quota applies to + +type: keyword + +-- + [float] === statefulset diff --git a/metricbeat/docs/modules/kubernetes.asciidoc b/metricbeat/docs/modules/kubernetes.asciidoc index d69251fe4aea..61dedf11734e 100644 --- a/metricbeat/docs/modules/kubernetes.asciidoc +++ b/metricbeat/docs/modules/kubernetes.asciidoc @@ -179,6 +179,8 @@ The following metricsets are available: * <> +* <> + * <> * <> @@ -213,6 +215,8 @@ include::kubernetes/state_pod.asciidoc[] include::kubernetes/state_replicaset.asciidoc[] +include::kubernetes/state_resourcequota.asciidoc[] + include::kubernetes/state_statefulset.asciidoc[] include::kubernetes/system.asciidoc[] diff --git a/metricbeat/docs/modules/kubernetes/state_resourcequota.asciidoc b/metricbeat/docs/modules/kubernetes/state_resourcequota.asciidoc new file mode 100644 index 000000000000..e3748774857e --- /dev/null +++ b/metricbeat/docs/modules/kubernetes/state_resourcequota.asciidoc @@ -0,0 +1,23 @@ +//// +This file is generated! See scripts/mage/docs_collector.go +//// + +[[metricbeat-metricset-kubernetes-state_resourcequota]] +=== Kubernetes state_resourcequota metricset + +beta[] + +include::../../../module/kubernetes/state_resourcequota/_meta/docs.asciidoc[] + + +==== Fields + +For a description of each field in the metricset, see the +<> section. + +Here is an example document generated by this metricset: + +[source,json] +---- +include::../../../module/kubernetes/state_resourcequota/_meta/data.json[] +---- diff --git a/metricbeat/docs/modules_list.asciidoc b/metricbeat/docs/modules_list.asciidoc index 285e0c8ddde5..28a93fd64258 100644 --- a/metricbeat/docs/modules_list.asciidoc +++ b/metricbeat/docs/modules_list.asciidoc @@ -91,7 +91,7 @@ This file is generated! See scripts/mage/docs_collector.go .2+| .2+| |<> |<> |<> |image:./images/icon-yes.png[Prebuilt dashboards are available] | -.17+| .17+| |<> +.18+| .18+| |<> |<> |<> beta[] |<> @@ -105,6 +105,7 @@ This file is generated! See scripts/mage/docs_collector.go |<> |<> |<> +|<> beta[] |<> |<> |<> diff --git a/metricbeat/include/list_docker.go b/metricbeat/include/list_docker.go index 26b42b9f52b0..1fb90c3219cc 100644 --- a/metricbeat/include/list_docker.go +++ b/metricbeat/include/list_docker.go @@ -53,6 +53,7 @@ import ( _ "github.com/elastic/beats/metricbeat/module/kubernetes/state_node" _ "github.com/elastic/beats/metricbeat/module/kubernetes/state_pod" _ "github.com/elastic/beats/metricbeat/module/kubernetes/state_replicaset" + _ "github.com/elastic/beats/metricbeat/module/kubernetes/state_resourcequota" _ "github.com/elastic/beats/metricbeat/module/kubernetes/state_statefulset" _ "github.com/elastic/beats/metricbeat/module/kubernetes/system" _ "github.com/elastic/beats/metricbeat/module/kubernetes/util" diff --git a/metricbeat/module/kubernetes/fields.go b/metricbeat/module/kubernetes/fields.go index 563ceae7951a..4c718155dd77 100644 --- a/metricbeat/module/kubernetes/fields.go +++ b/metricbeat/module/kubernetes/fields.go @@ -32,5 +32,5 @@ func init() { // AssetKubernetes returns asset data. // This is the base64 encoded gzipped contents of ../met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kubernetes/state_resourcequota/README.md b/metricbeat/module/kubernetes/state_resourcequota/README.md new file mode 100644 index 000000000000..34a5deb43100 --- /dev/null +++ b/metricbeat/module/kubernetes/state_resourcequota/README.md @@ -0,0 +1,37 @@ +# Kube-state-metrics/ResourceQuota + +## Version history + +- September 2019, `v1.7.0` + +## Resources + +Docs for 1.7 release of `kube-state-metrics` ResourceQuota can be found here: +https://github.com/kubernetes/kube-state-metrics/blob/release-1.7/docs/resourcequota-metrics.md + + +## Metrics insight + + - kube_resourcequota{namespace,resourcequota,resource,type} Gauge + + Info about existing `ResourceQuota` and current status + + - kube_resourcequota_created{namespace,resourcequota} Gauge + + Creation time for `ResourceQuota` + +## Setup environment for manual tests + +- TODO point to kubernetes tests setup +- TODO point to `ResourceQuota` objects creation +- TODO include here expected kube-state-metrics +- TODO include here expected elastic events + + + + + + + + + diff --git a/metricbeat/module/kubernetes/state_resourcequota/_meta/data.json b/metricbeat/module/kubernetes/state_resourcequota/_meta/data.json new file mode 100644 index 000000000000..2c63c0851048 --- /dev/null +++ b/metricbeat/module/kubernetes/state_resourcequota/_meta/data.json @@ -0,0 +1,2 @@ +{ +} diff --git a/metricbeat/module/kubernetes/state_resourcequota/_meta/docs.asciidoc b/metricbeat/module/kubernetes/state_resourcequota/_meta/docs.asciidoc new file mode 100644 index 000000000000..6ff6b97657ff --- /dev/null +++ b/metricbeat/module/kubernetes/state_resourcequota/_meta/docs.asciidoc @@ -0,0 +1,2 @@ +The `state_resourcequota` metricset for kubernetes reads from `kube-state-metrics`. + diff --git a/metricbeat/module/kubernetes/state_resourcequota/_meta/fields.yml b/metricbeat/module/kubernetes/state_resourcequota/_meta/fields.yml new file mode 100644 index 000000000000..1c58b6e96950 --- /dev/null +++ b/metricbeat/module/kubernetes/state_resourcequota/_meta/fields.yml @@ -0,0 +1,26 @@ +- name: resourcequota + type: group + description: > + kubernetes resourcequota metrics + release: beta + fields: + - name: created.sec + type: double + description: Epoch seconds since the ResourceQuota was created + - name: resourcequota + type: double + description: Quota informed (hard or used) for the resource + - name: name + type: keyword + description: ResourceQuota name + - name: type + type: keyword + description: Quota information type, `hard` or `used` + - name: resource + type: keyword + description: Resource name the quota applies to + + + + + diff --git a/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7 b/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7 new file mode 100644 index 000000000000..11e5614b7e28 --- /dev/null +++ b/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7 @@ -0,0 +1,1361 @@ +# HELP kube_certificatesigningrequest_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_certificatesigningrequest_labels gauge +# HELP kube_certificatesigningrequest_created Unix creation timestamp +# TYPE kube_certificatesigningrequest_created gauge +# HELP kube_certificatesigningrequest_condition The number of each certificatesigningrequest condition +# TYPE kube_certificatesigningrequest_condition gauge +# HELP kube_certificatesigningrequest_cert_length Length of the issued cert +# TYPE kube_certificatesigningrequest_cert_length gauge +# HELP kube_configmap_info Information about configmap. +# TYPE kube_configmap_info gauge +kube_configmap_info{namespace="kube-system",configmap="kubelet-config-1.12"} 1 +kube_configmap_info{namespace="default",configmap="elastic-operator-uuid"} 1 +kube_configmap_info{namespace="kube-public",configmap="cluster-info"} 1 +kube_configmap_info{namespace="kube-system",configmap="coredns"} 1 +kube_configmap_info{namespace="kube-system",configmap="extension-apiserver-authentication"} 1 +kube_configmap_info{namespace="kube-system",configmap="kube-proxy"} 1 +kube_configmap_info{namespace="kube-system",configmap="kubeadm-config"} 1 +# HELP kube_configmap_created Unix creation timestamp +# TYPE kube_configmap_created gauge +kube_configmap_created{namespace="kube-system",configmap="extension-apiserver-authentication"} 1.567009602e+09 +kube_configmap_created{namespace="kube-system",configmap="kube-proxy"} 1.567009606e+09 +kube_configmap_created{namespace="kube-system",configmap="kubeadm-config"} 1.567009605e+09 +kube_configmap_created{namespace="kube-system",configmap="kubelet-config-1.12"} 1.567009605e+09 +kube_configmap_created{namespace="default",configmap="elastic-operator-uuid"} 1.567060471e+09 +kube_configmap_created{namespace="kube-public",configmap="cluster-info"} 1.567009606e+09 +kube_configmap_created{namespace="kube-system",configmap="coredns"} 1.567009606e+09 +# HELP kube_configmap_metadata_resource_version Resource version representing a specific version of the configmap. +# TYPE kube_configmap_metadata_resource_version gauge +kube_configmap_metadata_resource_version{namespace="default",configmap="elastic-operator-uuid",resource_version="61228"} 1 +kube_configmap_metadata_resource_version{namespace="kube-public",configmap="cluster-info",resource_version="709401"} 1 +kube_configmap_metadata_resource_version{namespace="kube-system",configmap="coredns",resource_version="214"} 1 +kube_configmap_metadata_resource_version{namespace="kube-system",configmap="extension-apiserver-authentication",resource_version="53"} 1 +kube_configmap_metadata_resource_version{namespace="kube-system",configmap="kube-proxy",resource_version="709289"} 1 +kube_configmap_metadata_resource_version{namespace="kube-system",configmap="kubeadm-config",resource_version="171"} 1 +kube_configmap_metadata_resource_version{namespace="kube-system",configmap="kubelet-config-1.12",resource_version="174"} 1 +# HELP kube_cronjob_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_cronjob_labels gauge +# HELP kube_cronjob_info Info about cronjob. +# TYPE kube_cronjob_info gauge +# HELP kube_cronjob_created Unix creation timestamp +# TYPE kube_cronjob_created gauge +# HELP kube_cronjob_status_active Active holds pointers to currently running jobs. +# TYPE kube_cronjob_status_active gauge +# HELP kube_cronjob_status_last_schedule_time LastScheduleTime keeps information of when was the last time the job was successfully scheduled. +# TYPE kube_cronjob_status_last_schedule_time gauge +# HELP kube_cronjob_spec_suspend Suspend flag tells the controller to suspend subsequent executions. +# TYPE kube_cronjob_spec_suspend gauge +# HELP kube_cronjob_spec_starting_deadline_seconds Deadline in seconds for starting the job if it misses scheduled time for any reason. +# TYPE kube_cronjob_spec_starting_deadline_seconds gauge +# HELP kube_cronjob_next_schedule_time Next time the cronjob should be scheduled. The time after lastScheduleTime, or after the cron job's creation time if it's never been scheduled. Use this to determine if the job is delayed. +# TYPE kube_cronjob_next_schedule_time gauge +# HELP kube_daemonset_created Unix creation timestamp +# TYPE kube_daemonset_created gauge +kube_daemonset_created{namespace="kube-system",daemonset="kube-proxy"} 1.567009606e+09 +# HELP kube_daemonset_status_current_number_scheduled The number of nodes running at least one daemon pod and are supposed to. +# TYPE kube_daemonset_status_current_number_scheduled gauge +kube_daemonset_status_current_number_scheduled{namespace="kube-system",daemonset="kube-proxy"} 1 +# HELP kube_daemonset_status_desired_number_scheduled The number of nodes that should be running the daemon pod. +# TYPE kube_daemonset_status_desired_number_scheduled gauge +kube_daemonset_status_desired_number_scheduled{namespace="kube-system",daemonset="kube-proxy"} 1 +# HELP kube_daemonset_status_number_available The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available +# TYPE kube_daemonset_status_number_available gauge +kube_daemonset_status_number_available{namespace="kube-system",daemonset="kube-proxy"} 1 +# HELP kube_daemonset_status_number_misscheduled The number of nodes running a daemon pod but are not supposed to. +# TYPE kube_daemonset_status_number_misscheduled gauge +kube_daemonset_status_number_misscheduled{namespace="kube-system",daemonset="kube-proxy"} 0 +# HELP kube_daemonset_status_number_ready The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. +# TYPE kube_daemonset_status_number_ready gauge +kube_daemonset_status_number_ready{namespace="kube-system",daemonset="kube-proxy"} 1 +# HELP kube_daemonset_status_number_unavailable The number of nodes that should be running the daemon pod and have none of the daemon pod running and available +# TYPE kube_daemonset_status_number_unavailable gauge +kube_daemonset_status_number_unavailable{namespace="kube-system",daemonset="kube-proxy"} 0 +# HELP kube_daemonset_updated_number_scheduled The total number of nodes that are running updated daemon pod +# TYPE kube_daemonset_updated_number_scheduled gauge +kube_daemonset_updated_number_scheduled{namespace="kube-system",daemonset="kube-proxy"} 1 +# HELP kube_daemonset_metadata_generation Sequence number representing a specific generation of the desired state. +# TYPE kube_daemonset_metadata_generation gauge +kube_daemonset_metadata_generation{namespace="kube-system",daemonset="kube-proxy"} 2 +# HELP kube_daemonset_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_daemonset_labels gauge +kube_daemonset_labels{namespace="kube-system",daemonset="kube-proxy",label_k8s_app="kube-proxy"} 1 +# HELP kube_deployment_created Unix creation timestamp +# TYPE kube_deployment_created gauge +kube_deployment_created{namespace="kube-system",deployment="kube-state-metrics"} 1.568622119e+09 +kube_deployment_created{namespace="kube-system",deployment="coredns"} 1.567009606e+09 +# HELP kube_deployment_status_replicas The number of replicas per deployment. +# TYPE kube_deployment_status_replicas gauge +kube_deployment_status_replicas{namespace="kube-system",deployment="kube-state-metrics"} 1 +kube_deployment_status_replicas{namespace="kube-system",deployment="coredns"} 2 +# HELP kube_deployment_status_replicas_available The number of available replicas per deployment. +# TYPE kube_deployment_status_replicas_available gauge +kube_deployment_status_replicas_available{namespace="kube-system",deployment="kube-state-metrics"} 1 +kube_deployment_status_replicas_available{namespace="kube-system",deployment="coredns"} 2 +# HELP kube_deployment_status_replicas_unavailable The number of unavailable replicas per deployment. +# TYPE kube_deployment_status_replicas_unavailable gauge +kube_deployment_status_replicas_unavailable{namespace="kube-system",deployment="kube-state-metrics"} 0 +kube_deployment_status_replicas_unavailable{namespace="kube-system",deployment="coredns"} 0 +# HELP kube_deployment_status_replicas_updated The number of updated replicas per deployment. +# TYPE kube_deployment_status_replicas_updated gauge +kube_deployment_status_replicas_updated{namespace="kube-system",deployment="kube-state-metrics"} 1 +kube_deployment_status_replicas_updated{namespace="kube-system",deployment="coredns"} 2 +# HELP kube_deployment_status_observed_generation The generation observed by the deployment controller. +# TYPE kube_deployment_status_observed_generation gauge +kube_deployment_status_observed_generation{namespace="kube-system",deployment="kube-state-metrics"} 1 +kube_deployment_status_observed_generation{namespace="kube-system",deployment="coredns"} 4 +# HELP kube_deployment_spec_replicas Number of desired pods for a deployment. +# TYPE kube_deployment_spec_replicas gauge +kube_deployment_spec_replicas{namespace="kube-system",deployment="kube-state-metrics"} 1 +kube_deployment_spec_replicas{namespace="kube-system",deployment="coredns"} 2 +# HELP kube_deployment_spec_paused Whether the deployment is paused and will not be processed by the deployment controller. +# TYPE kube_deployment_spec_paused gauge +kube_deployment_spec_paused{namespace="kube-system",deployment="kube-state-metrics"} 0 +kube_deployment_spec_paused{namespace="kube-system",deployment="coredns"} 0 +# HELP kube_deployment_spec_strategy_rollingupdate_max_unavailable Maximum number of unavailable replicas during a rolling update of a deployment. +# TYPE kube_deployment_spec_strategy_rollingupdate_max_unavailable gauge +kube_deployment_spec_strategy_rollingupdate_max_unavailable{namespace="kube-system",deployment="kube-state-metrics"} 1 +kube_deployment_spec_strategy_rollingupdate_max_unavailable{namespace="kube-system",deployment="coredns"} 1 +# HELP kube_deployment_spec_strategy_rollingupdate_max_surge Maximum number of replicas that can be scheduled above the desired number of replicas during a rolling update of a deployment. +# TYPE kube_deployment_spec_strategy_rollingupdate_max_surge gauge +kube_deployment_spec_strategy_rollingupdate_max_surge{namespace="kube-system",deployment="coredns"} 1 +kube_deployment_spec_strategy_rollingupdate_max_surge{namespace="kube-system",deployment="kube-state-metrics"} 1 +# HELP kube_deployment_metadata_generation Sequence number representing a specific generation of the desired state. +# TYPE kube_deployment_metadata_generation gauge +kube_deployment_metadata_generation{namespace="kube-system",deployment="kube-state-metrics"} 1 +kube_deployment_metadata_generation{namespace="kube-system",deployment="coredns"} 4 +# HELP kube_deployment_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_deployment_labels gauge +kube_deployment_labels{namespace="kube-system",deployment="kube-state-metrics",label_k8s_app="kube-state-metrics"} 1 +kube_deployment_labels{namespace="kube-system",deployment="coredns",label_k8s_app="kube-dns"} 1 +# HELP kube_endpoint_info Information about endpoint. +# TYPE kube_endpoint_info gauge +kube_endpoint_info{namespace="kube-system",endpoint="kube-state-metrics"} 1 +kube_endpoint_info{namespace="kube-system",endpoint="kube-scheduler"} 1 +kube_endpoint_info{namespace="default",endpoint="willsucceed"} 1 +kube_endpoint_info{namespace="default",endpoint="willfail"} 1 +kube_endpoint_info{namespace="rqtest",endpoint="willsucceed"} 1 +kube_endpoint_info{namespace="default",endpoint="kubernetes"} 1 +kube_endpoint_info{namespace="kube-system",endpoint="kube-controller-manager"} 1 +kube_endpoint_info{namespace="kube-system",endpoint="kube-dns"} 1 +kube_endpoint_info{namespace="default",endpoint="my-nginx"} 1 +# HELP kube_endpoint_created Unix creation timestamp +# TYPE kube_endpoint_created gauge +kube_endpoint_created{namespace="default",endpoint="kubernetes"} 1.567009602e+09 +kube_endpoint_created{namespace="kube-system",endpoint="kube-controller-manager"} 1.567009603e+09 +kube_endpoint_created{namespace="kube-system",endpoint="kube-dns"} 1.567009612e+09 +kube_endpoint_created{namespace="default",endpoint="my-nginx"} 1.567783021e+09 +kube_endpoint_created{namespace="kube-system",endpoint="kube-state-metrics"} 1.568195118e+09 +kube_endpoint_created{namespace="kube-system",endpoint="kube-scheduler"} 1.567009604e+09 +kube_endpoint_created{namespace="default",endpoint="willsucceed"} 1.568629567e+09 +kube_endpoint_created{namespace="default",endpoint="willfail"} 1.568629567e+09 +kube_endpoint_created{namespace="rqtest",endpoint="willsucceed"} 1.568629886e+09 +# HELP kube_endpoint_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_endpoint_labels gauge +kube_endpoint_labels{namespace="kube-system",endpoint="kube-state-metrics",label_k8s_app="kube-state-metrics"} 1 +kube_endpoint_labels{namespace="kube-system",endpoint="kube-scheduler"} 1 +kube_endpoint_labels{namespace="default",endpoint="willsucceed"} 1 +kube_endpoint_labels{namespace="default",endpoint="willfail"} 1 +kube_endpoint_labels{namespace="rqtest",endpoint="willsucceed"} 1 +kube_endpoint_labels{namespace="default",endpoint="kubernetes"} 1 +kube_endpoint_labels{namespace="kube-system",endpoint="kube-controller-manager"} 1 +kube_endpoint_labels{namespace="kube-system",endpoint="kube-dns",label_k8s_app="kube-dns",label_kubernetes_io_cluster_service="true",label_kubernetes_io_name="KubeDNS"} 1 +kube_endpoint_labels{namespace="default",endpoint="my-nginx",label_app="my-nginx"} 1 +# HELP kube_endpoint_address_available Number of addresses available in endpoint. +# TYPE kube_endpoint_address_available gauge +kube_endpoint_address_available{namespace="kube-system",endpoint="kube-scheduler"} 0 +kube_endpoint_address_available{namespace="default",endpoint="willsucceed"} 0 +kube_endpoint_address_available{namespace="default",endpoint="willfail"} 0 +kube_endpoint_address_available{namespace="rqtest",endpoint="willsucceed"} 0 +kube_endpoint_address_available{namespace="kube-system",endpoint="kube-state-metrics"} 2 +kube_endpoint_address_available{namespace="kube-system",endpoint="kube-controller-manager"} 0 +kube_endpoint_address_available{namespace="kube-system",endpoint="kube-dns"} 6 +kube_endpoint_address_available{namespace="default",endpoint="my-nginx"} 0 +kube_endpoint_address_available{namespace="default",endpoint="kubernetes"} 1 +# HELP kube_endpoint_address_not_ready Number of addresses not ready in endpoint +# TYPE kube_endpoint_address_not_ready gauge +kube_endpoint_address_not_ready{namespace="default",endpoint="kubernetes"} 0 +kube_endpoint_address_not_ready{namespace="kube-system",endpoint="kube-controller-manager"} 0 +kube_endpoint_address_not_ready{namespace="kube-system",endpoint="kube-dns"} 0 +kube_endpoint_address_not_ready{namespace="default",endpoint="my-nginx"} 0 +kube_endpoint_address_not_ready{namespace="kube-system",endpoint="kube-state-metrics"} 0 +kube_endpoint_address_not_ready{namespace="kube-system",endpoint="kube-scheduler"} 0 +kube_endpoint_address_not_ready{namespace="default",endpoint="willsucceed"} 0 +kube_endpoint_address_not_ready{namespace="default",endpoint="willfail"} 0 +kube_endpoint_address_not_ready{namespace="rqtest",endpoint="willsucceed"} 0 +# HELP kube_hpa_metadata_generation The generation observed by the HorizontalPodAutoscaler controller. +# TYPE kube_hpa_metadata_generation gauge +# HELP kube_hpa_spec_max_replicas Upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. +# TYPE kube_hpa_spec_max_replicas gauge +# HELP kube_hpa_spec_min_replicas Lower limit for the number of pods that can be set by the autoscaler, default 1. +# TYPE kube_hpa_spec_min_replicas gauge +# HELP kube_hpa_status_current_replicas Current number of replicas of pods managed by this autoscaler. +# TYPE kube_hpa_status_current_replicas gauge +# HELP kube_hpa_status_desired_replicas Desired number of replicas of pods managed by this autoscaler. +# TYPE kube_hpa_status_desired_replicas gauge +# HELP kube_hpa_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_hpa_labels gauge +# HELP kube_hpa_status_condition The condition of this autoscaler. +# TYPE kube_hpa_status_condition gauge +# HELP kube_ingress_info Information about ingress. +# TYPE kube_ingress_info gauge +# HELP kube_ingress_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_ingress_labels gauge +# HELP kube_ingress_created Unix creation timestamp +# TYPE kube_ingress_created gauge +# HELP kube_ingress_metadata_resource_version Resource version representing a specific version of ingress. +# TYPE kube_ingress_metadata_resource_version gauge +# HELP kube_ingress_path Ingress host, paths and backend service information. +# TYPE kube_ingress_path gauge +# HELP kube_job_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_job_labels gauge +# HELP kube_job_info Information about job. +# TYPE kube_job_info gauge +# HELP kube_job_created Unix creation timestamp +# TYPE kube_job_created gauge +# HELP kube_job_spec_parallelism The maximum desired number of pods the job should run at any given time. +# TYPE kube_job_spec_parallelism gauge +# HELP kube_job_spec_completions The desired number of successfully finished pods the job should be run with. +# TYPE kube_job_spec_completions gauge +# HELP kube_job_spec_active_deadline_seconds The duration in seconds relative to the startTime that the job may be active before the system tries to terminate it. +# TYPE kube_job_spec_active_deadline_seconds gauge +# HELP kube_job_status_succeeded The number of pods which reached Phase Succeeded. +# TYPE kube_job_status_succeeded gauge +# HELP kube_job_status_failed The number of pods which reached Phase Failed. +# TYPE kube_job_status_failed gauge +# HELP kube_job_status_active The number of actively running pods. +# TYPE kube_job_status_active gauge +# HELP kube_job_complete The job has completed its execution. +# TYPE kube_job_complete gauge +# HELP kube_job_failed The job has failed its execution. +# TYPE kube_job_failed gauge +# HELP kube_job_status_start_time StartTime represents time when the job was acknowledged by the Job Manager. +# TYPE kube_job_status_start_time gauge +# HELP kube_job_status_completion_time CompletionTime represents time when the job was completed. +# TYPE kube_job_status_completion_time gauge +# HELP kube_job_owner Information about the Job's owner. +# TYPE kube_job_owner gauge +# HELP kube_limitrange Information about limit range. +# TYPE kube_limitrange gauge +kube_limitrange{namespace="default-mem-example",limitrange="mem-limit-range",resource="memory",type="Container",constraint="default"} 5.36870912e+08 +kube_limitrange{namespace="default-mem-example",limitrange="mem-limit-range",resource="memory",type="Container",constraint="defaultRequest"} 2.68435456e+08 +# HELP kube_limitrange_created Unix creation timestamp +# TYPE kube_limitrange_created gauge +kube_limitrange_created{namespace="default-mem-example",limitrange="mem-limit-range"} 1.567347894e+09 +# HELP kube_namespace_created Unix creation timestamp +# TYPE kube_namespace_created gauge +kube_namespace_created{namespace="kube-system"} 1.567009598e+09 +kube_namespace_created{namespace="pablo"} 1.567347599e+09 +kube_namespace_created{namespace="kube-node-lease"} 1.567689471e+09 +kube_namespace_created{namespace="rqtest"} 1.568629266e+09 +kube_namespace_created{namespace="default"} 1.567009597e+09 +kube_namespace_created{namespace="default-mem-example"} 1.567347623e+09 +kube_namespace_created{namespace="kube-public"} 1.567009602e+09 +# HELP kube_namespace_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_namespace_labels gauge +kube_namespace_labels{namespace="default"} 1 +kube_namespace_labels{namespace="default-mem-example"} 1 +kube_namespace_labels{namespace="kube-public"} 1 +kube_namespace_labels{namespace="kube-system"} 1 +kube_namespace_labels{namespace="pablo"} 1 +kube_namespace_labels{namespace="kube-node-lease"} 1 +kube_namespace_labels{namespace="rqtest"} 1 +# HELP kube_namespace_status_phase kubernetes namespace status phase. +# TYPE kube_namespace_status_phase gauge +kube_namespace_status_phase{namespace="default-mem-example",phase="Active"} 1 +kube_namespace_status_phase{namespace="default-mem-example",phase="Terminating"} 0 +kube_namespace_status_phase{namespace="kube-public",phase="Active"} 1 +kube_namespace_status_phase{namespace="kube-public",phase="Terminating"} 0 +kube_namespace_status_phase{namespace="kube-system",phase="Active"} 1 +kube_namespace_status_phase{namespace="kube-system",phase="Terminating"} 0 +kube_namespace_status_phase{namespace="pablo",phase="Active"} 1 +kube_namespace_status_phase{namespace="pablo",phase="Terminating"} 0 +kube_namespace_status_phase{namespace="kube-node-lease",phase="Active"} 1 +kube_namespace_status_phase{namespace="kube-node-lease",phase="Terminating"} 0 +kube_namespace_status_phase{namespace="rqtest",phase="Active"} 1 +kube_namespace_status_phase{namespace="rqtest",phase="Terminating"} 0 +kube_namespace_status_phase{namespace="default",phase="Active"} 1 +kube_namespace_status_phase{namespace="default",phase="Terminating"} 0 +# HELP kube_node_info Information about a cluster node. +# TYPE kube_node_info gauge +kube_node_info{node="minikube",kernel_version="4.15.0",os_image="Buildroot 2018.05.3",container_runtime_version="docker://18.9.8",kubelet_version="v1.15.2",kubeproxy_version="v1.15.2",provider_id=""} 1 +# HELP kube_node_created Unix creation timestamp +# TYPE kube_node_created gauge +kube_node_created{node="minikube"} 1.567009598e+09 +# HELP kube_node_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_node_labels gauge +kube_node_labels{node="minikube",label_beta_kubernetes_io_arch="amd64",label_beta_kubernetes_io_os="linux",label_kubernetes_io_arch="amd64",label_kubernetes_io_hostname="minikube",label_kubernetes_io_os="linux",label_node_role_kubernetes_io_master=""} 1 +# HELP kube_node_spec_unschedulable Whether a node can schedule new pods. +# TYPE kube_node_spec_unschedulable gauge +kube_node_spec_unschedulable{node="minikube"} 0 +# HELP kube_node_spec_taint The taint of a cluster node. +# TYPE kube_node_spec_taint gauge +# HELP kube_node_status_condition The condition of a cluster node. +# TYPE kube_node_status_condition gauge +kube_node_status_condition{node="minikube",condition="MemoryPressure",status="true"} 0 +kube_node_status_condition{node="minikube",condition="MemoryPressure",status="false"} 1 +kube_node_status_condition{node="minikube",condition="MemoryPressure",status="unknown"} 0 +kube_node_status_condition{node="minikube",condition="DiskPressure",status="true"} 0 +kube_node_status_condition{node="minikube",condition="DiskPressure",status="false"} 1 +kube_node_status_condition{node="minikube",condition="DiskPressure",status="unknown"} 0 +kube_node_status_condition{node="minikube",condition="PIDPressure",status="true"} 0 +kube_node_status_condition{node="minikube",condition="PIDPressure",status="false"} 1 +kube_node_status_condition{node="minikube",condition="PIDPressure",status="unknown"} 0 +kube_node_status_condition{node="minikube",condition="Ready",status="true"} 1 +kube_node_status_condition{node="minikube",condition="Ready",status="false"} 0 +kube_node_status_condition{node="minikube",condition="Ready",status="unknown"} 0 +# HELP kube_node_status_phase The phase the node is currently in. +# TYPE kube_node_status_phase gauge +# HELP kube_node_status_capacity The capacity for different resources of a node. +# TYPE kube_node_status_capacity gauge +kube_node_status_capacity{node="minikube",resource="cpu",unit="core"} 4 +kube_node_status_capacity{node="minikube",resource="ephemeral_storage",unit="byte"} 1.8211606528e+10 +kube_node_status_capacity{node="minikube",resource="hugepages_2Mi",unit="byte"} 0 +kube_node_status_capacity{node="minikube",resource="memory",unit="byte"} 8.361435136e+09 +kube_node_status_capacity{node="minikube",resource="pods",unit="integer"} 110 +# HELP kube_node_status_capacity_pods The total pod resources of the node. +# TYPE kube_node_status_capacity_pods gauge +kube_node_status_capacity_pods{node="minikube"} 110 +# HELP kube_node_status_capacity_cpu_cores The total CPU resources of the node. +# TYPE kube_node_status_capacity_cpu_cores gauge +kube_node_status_capacity_cpu_cores{node="minikube"} 4 +# HELP kube_node_status_capacity_memory_bytes The total memory resources of the node. +# TYPE kube_node_status_capacity_memory_bytes gauge +kube_node_status_capacity_memory_bytes{node="minikube"} 8.361435136e+09 +# HELP kube_node_status_allocatable The allocatable for different resources of a node that are available for scheduling. +# TYPE kube_node_status_allocatable gauge +kube_node_status_allocatable{node="minikube",resource="cpu",unit="core"} 4 +kube_node_status_allocatable{node="minikube",resource="ephemeral_storage",unit="byte"} 1.6390445849e+10 +kube_node_status_allocatable{node="minikube",resource="hugepages_2Mi",unit="byte"} 0 +kube_node_status_allocatable{node="minikube",resource="memory",unit="byte"} 8.256577536e+09 +kube_node_status_allocatable{node="minikube",resource="pods",unit="integer"} 110 +# HELP kube_node_status_allocatable_pods The pod resources of a node that are available for scheduling. +# TYPE kube_node_status_allocatable_pods gauge +kube_node_status_allocatable_pods{node="minikube"} 110 +# HELP kube_node_status_allocatable_cpu_cores The CPU resources of a node that are available for scheduling. +# TYPE kube_node_status_allocatable_cpu_cores gauge +kube_node_status_allocatable_cpu_cores{node="minikube"} 4 +# HELP kube_node_status_allocatable_memory_bytes The memory resources of a node that are available for scheduling. +# TYPE kube_node_status_allocatable_memory_bytes gauge +kube_node_status_allocatable_memory_bytes{node="minikube"} 8.256577536e+09 +# HELP kube_persistentvolumeclaim_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_persistentvolumeclaim_labels gauge +# HELP kube_persistentvolumeclaim_info Information about persistent volume claim. +# TYPE kube_persistentvolumeclaim_info gauge +# HELP kube_persistentvolumeclaim_status_phase The phase the persistent volume claim is currently in. +# TYPE kube_persistentvolumeclaim_status_phase gauge +# HELP kube_persistentvolumeclaim_resource_requests_storage_bytes The capacity of storage requested by the persistent volume claim. +# TYPE kube_persistentvolumeclaim_resource_requests_storage_bytes gauge +# HELP kube_persistentvolumeclaim_access_mode The access mode(s) specified by the persistent volume claim. +# TYPE kube_persistentvolumeclaim_access_mode gauge +# HELP kube_persistentvolume_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_persistentvolume_labels gauge +# HELP kube_persistentvolume_status_phase The phase indicates if a volume is available, bound to a claim, or released by a claim. +# TYPE kube_persistentvolume_status_phase gauge +# HELP kube_persistentvolume_info Information about persistentvolume. +# TYPE kube_persistentvolume_info gauge +# HELP kube_persistentvolume_capacity_bytes Persistentvolume capacity in bytes. +# TYPE kube_persistentvolume_capacity_bytes gauge +# HELP kube_poddisruptionbudget_created Unix creation timestamp +# TYPE kube_poddisruptionbudget_created gauge +# HELP kube_poddisruptionbudget_status_current_healthy Current number of healthy pods +# TYPE kube_poddisruptionbudget_status_current_healthy gauge +# HELP kube_poddisruptionbudget_status_desired_healthy Minimum desired number of healthy pods +# TYPE kube_poddisruptionbudget_status_desired_healthy gauge +# HELP kube_poddisruptionbudget_status_pod_disruptions_allowed Number of pod disruptions that are currently allowed +# TYPE kube_poddisruptionbudget_status_pod_disruptions_allowed gauge +# HELP kube_poddisruptionbudget_status_expected_pods Total number of pods counted by this disruption budget +# TYPE kube_poddisruptionbudget_status_expected_pods gauge +# HELP kube_poddisruptionbudget_status_observed_generation Most recent generation observed when updating this PDB status +# TYPE kube_poddisruptionbudget_status_observed_generation gauge +# HELP kube_pod_info Information about pod. +# TYPE kube_pod_info gauge +kube_pod_info{namespace="kube-system",pod="storage-provisioner",host_ip="10.0.2.15",pod_ip="10.0.2.15",uid="a55a886b-c9b0-11e9-8c8c-080027dc36ee",node="minikube",created_by_kind="",created_by_name="",priority_class=""} 1 +kube_pod_info{namespace="kube-system",pod="kube-addon-manager-minikube",host_ip="10.0.2.15",pod_ip="10.0.2.15",uid="804c0947-e160-4f6f-afa2-c87e97a43a84",node="minikube",created_by_kind="",created_by_name="",priority_class=""} 1 +kube_pod_info{namespace="kube-system",pod="kube-proxy-6dvtf",host_ip="10.0.2.15",pod_ip="10.0.2.15",uid="6efd0863-1af9-4d5e-b124-4600b5edb8db",node="minikube",created_by_kind="DaemonSet",created_by_name="kube-proxy",priority_class="system-node-critical"} 1 +kube_pod_info{namespace="default",pod="stdout-logger",host_ip="10.0.2.15",pod_ip="172.17.0.4",uid="49f54912-cf08-11e9-8c8c-080027dc36ee",node="minikube",created_by_kind="",created_by_name="",priority_class=""} 1 +kube_pod_info{namespace="default",pod="playground",host_ip="10.0.2.15",pod_ip="10.0.2.15",uid="1fe957cf-932f-4381-b847-cc7c173be7c4",node="minikube",created_by_kind="",created_by_name="",priority_class=""} 1 +kube_pod_info{namespace="kube-system",pod="kube-apiserver-minikube",host_ip="10.0.2.15",pod_ip="10.0.2.15",uid="64b87ae5-398f-452d-af8a-76f903944f4d",node="minikube",created_by_kind="",created_by_name="",priority_class="system-cluster-critical"} 1 +kube_pod_info{namespace="default-mem-example",pod="default-mem-demo",host_ip="10.0.2.15",pod_ip="172.17.0.5",uid="664f8f65-ccc4-11e9-8c8c-080027dc36ee",node="minikube",created_by_kind="",created_by_name="",priority_class=""} 1 +kube_pod_info{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",host_ip="10.0.2.15",pod_ip="172.17.0.9",uid="bb432770-52e1-4478-94df-57d12dbd0638",node="minikube",created_by_kind="ReplicaSet",created_by_name="coredns-5c98db65d4",priority_class="system-cluster-critical"} 1 +kube_pod_info{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",host_ip="10.0.2.15",pod_ip="172.17.0.2",uid="8f536064-840c-4dce-8bd2-8783d41e5ed6",node="minikube",created_by_kind="ReplicaSet",created_by_name="kube-state-metrics-6766c6d46b",priority_class=""} 1 +kube_pod_info{namespace="kube-system",pod="etcd-minikube",host_ip="10.0.2.15",pod_ip="10.0.2.15",uid="fd24e4fc-608e-4482-b1f2-bda1b968c6f3",node="minikube",created_by_kind="",created_by_name="",priority_class="system-cluster-critical"} 1 +kube_pod_info{namespace="kube-system",pod="coredns-5c98db65d4-df89f",host_ip="10.0.2.15",pod_ip="172.17.0.8",uid="fcf6c6a0-98a1-4ad5-80c4-990e95046c1c",node="minikube",created_by_kind="ReplicaSet",created_by_name="coredns-5c98db65d4",priority_class="system-cluster-critical"} 1 +kube_pod_info{namespace="kube-system",pod="kube-controller-manager-minikube",host_ip="10.0.2.15",pod_ip="10.0.2.15",uid="aa16fc25-2f4f-4c52-9838-82b6debf9df6",node="minikube",created_by_kind="",created_by_name="",priority_class="system-cluster-critical"} 1 +kube_pod_info{namespace="kube-system",pod="kube-scheduler-minikube",host_ip="10.0.2.15",pod_ip="10.0.2.15",uid="a1c26908-05bd-4eb5-8dc8-f5c9744e4a7b",node="minikube",created_by_kind="",created_by_name="",priority_class="system-cluster-critical"} 1 +# HELP kube_pod_start_time Start time in unix timestamp for a pod. +# TYPE kube_pod_start_time gauge +kube_pod_start_time{namespace="kube-system",pod="kube-scheduler-minikube"} 1.567009586e+09 +kube_pod_start_time{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7"} 1.567689495e+09 +kube_pod_start_time{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql"} 1.568622119e+09 +kube_pod_start_time{namespace="kube-system",pod="etcd-minikube"} 1.567689466e+09 +kube_pod_start_time{namespace="kube-system",pod="coredns-5c98db65d4-df89f"} 1.567689495e+09 +kube_pod_start_time{namespace="kube-system",pod="kube-controller-manager-minikube"} 1.567689466e+09 +kube_pod_start_time{namespace="default-mem-example",pod="default-mem-demo"} 1.567347951e+09 +kube_pod_start_time{namespace="kube-system",pod="storage-provisioner"} 1.567009613e+09 +kube_pod_start_time{namespace="kube-system",pod="kube-addon-manager-minikube"} 1.567689466e+09 +kube_pod_start_time{namespace="kube-system",pod="kube-proxy-6dvtf"} 1.567689506e+09 +kube_pod_start_time{namespace="default",pod="stdout-logger"} 1.567597011e+09 +kube_pod_start_time{namespace="default",pod="playground"} 1.567693987e+09 +kube_pod_start_time{namespace="kube-system",pod="kube-apiserver-minikube"} 1.567689466e+09 +# HELP kube_pod_completion_time Completion time in unix timestamp for a pod. +# TYPE kube_pod_completion_time gauge +# HELP kube_pod_owner Information about the Pod's owner. +# TYPE kube_pod_owner gauge +kube_pod_owner{namespace="default-mem-example",pod="default-mem-demo",owner_kind="",owner_name="",owner_is_controller=""} 1 +kube_pod_owner{namespace="kube-system",pod="storage-provisioner",owner_kind="",owner_name="",owner_is_controller=""} 1 +kube_pod_owner{namespace="kube-system",pod="kube-addon-manager-minikube",owner_kind="",owner_name="",owner_is_controller=""} 1 +kube_pod_owner{namespace="kube-system",pod="kube-proxy-6dvtf",owner_kind="DaemonSet",owner_name="kube-proxy",owner_is_controller="true"} 1 +kube_pod_owner{namespace="default",pod="stdout-logger",owner_kind="",owner_name="",owner_is_controller=""} 1 +kube_pod_owner{namespace="default",pod="playground",owner_kind="",owner_name="",owner_is_controller=""} 1 +kube_pod_owner{namespace="kube-system",pod="kube-apiserver-minikube",owner_kind="",owner_name="",owner_is_controller=""} 1 +kube_pod_owner{namespace="kube-system",pod="kube-scheduler-minikube",owner_kind="",owner_name="",owner_is_controller=""} 1 +kube_pod_owner{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",owner_kind="ReplicaSet",owner_name="coredns-5c98db65d4",owner_is_controller="true"} 1 +kube_pod_owner{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",owner_kind="ReplicaSet",owner_name="kube-state-metrics-6766c6d46b",owner_is_controller="true"} 1 +kube_pod_owner{namespace="kube-system",pod="etcd-minikube",owner_kind="",owner_name="",owner_is_controller=""} 1 +kube_pod_owner{namespace="kube-system",pod="coredns-5c98db65d4-df89f",owner_kind="ReplicaSet",owner_name="coredns-5c98db65d4",owner_is_controller="true"} 1 +kube_pod_owner{namespace="kube-system",pod="kube-controller-manager-minikube",owner_kind="",owner_name="",owner_is_controller=""} 1 +# HELP kube_pod_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_pod_labels gauge +kube_pod_labels{namespace="default-mem-example",pod="default-mem-demo"} 1 +kube_pod_labels{namespace="kube-system",pod="storage-provisioner",label_addonmanager_kubernetes_io_mode="Reconcile",label_integration_test="storage-provisioner"} 1 +kube_pod_labels{namespace="kube-system",pod="kube-addon-manager-minikube",label_component="kube-addon-manager",label_kubernetes_io_minikube_addons="addon-manager",label_version="v9.0"} 1 +kube_pod_labels{namespace="kube-system",pod="kube-proxy-6dvtf",label_controller_revision_hash="84c6b844cd",label_k8s_app="kube-proxy",label_pod_template_generation="2"} 1 +kube_pod_labels{namespace="default",pod="stdout-logger",label_my_label_uses_underscores="ha.ha.ha"} 1 +kube_pod_labels{namespace="default",pod="playground"} 1 +kube_pod_labels{namespace="kube-system",pod="kube-apiserver-minikube",label_component="kube-apiserver",label_tier="control-plane"} 1 +kube_pod_labels{namespace="kube-system",pod="kube-scheduler-minikube",label_component="kube-scheduler",label_tier="control-plane"} 1 +kube_pod_labels{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",label_k8s_app="kube-dns",label_pod_template_hash="5c98db65d4"} 1 +kube_pod_labels{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",label_k8s_app="kube-state-metrics",label_pod_template_hash="6766c6d46b"} 1 +kube_pod_labels{namespace="kube-system",pod="etcd-minikube",label_component="etcd",label_tier="control-plane"} 1 +kube_pod_labels{namespace="kube-system",pod="coredns-5c98db65d4-df89f",label_k8s_app="kube-dns",label_pod_template_hash="5c98db65d4"} 1 +kube_pod_labels{namespace="kube-system",pod="kube-controller-manager-minikube",label_component="kube-controller-manager",label_tier="control-plane"} 1 +# HELP kube_pod_created Unix creation timestamp +# TYPE kube_pod_created gauge +kube_pod_created{namespace="default",pod="stdout-logger"} 1.567597011e+09 +kube_pod_created{namespace="default",pod="playground"} 1.567693987e+09 +kube_pod_created{namespace="kube-system",pod="kube-apiserver-minikube"} 1.567689473e+09 +kube_pod_created{namespace="default-mem-example",pod="default-mem-demo"} 1.567347951e+09 +kube_pod_created{namespace="kube-system",pod="storage-provisioner"} 1.567009613e+09 +kube_pod_created{namespace="kube-system",pod="kube-addon-manager-minikube"} 1.567689472e+09 +kube_pod_created{namespace="kube-system",pod="kube-proxy-6dvtf"} 1.567689506e+09 +kube_pod_created{namespace="kube-system",pod="coredns-5c98db65d4-df89f"} 1.567689495e+09 +kube_pod_created{namespace="kube-system",pod="kube-controller-manager-minikube"} 1.568621217e+09 +kube_pod_created{namespace="kube-system",pod="kube-scheduler-minikube"} 1.567689472e+09 +kube_pod_created{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7"} 1.567689495e+09 +kube_pod_created{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql"} 1.568622119e+09 +kube_pod_created{namespace="kube-system",pod="etcd-minikube"} 1.567689472e+09 +# HELP kube_pod_status_scheduled_time Unix timestamp when pod moved into scheduled status +# TYPE kube_pod_status_scheduled_time gauge +kube_pod_status_scheduled_time{namespace="kube-system",pod="kube-addon-manager-minikube"} 1.567689466e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="kube-proxy-6dvtf"} 1.567689506e+09 +kube_pod_status_scheduled_time{namespace="default",pod="stdout-logger"} 1.567597011e+09 +kube_pod_status_scheduled_time{namespace="default",pod="playground"} 1.567693987e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="kube-apiserver-minikube"} 1.567689466e+09 +kube_pod_status_scheduled_time{namespace="default-mem-example",pod="default-mem-demo"} 1.567347951e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="storage-provisioner"} 1.567009613e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql"} 1.568622119e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="etcd-minikube"} 1.567689466e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="coredns-5c98db65d4-df89f"} 1.567689495e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="kube-controller-manager-minikube"} 1.567689466e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="kube-scheduler-minikube"} 1.567009586e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7"} 1.567689495e+09 +# HELP kube_pod_status_phase The pods current phase. +# TYPE kube_pod_status_phase gauge +kube_pod_status_phase{namespace="kube-system",pod="etcd-minikube",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="etcd-minikube",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="etcd-minikube",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="etcd-minikube",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="etcd-minikube",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-df89f",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-df89f",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-df89f",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-df89f",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-df89f",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-controller-manager-minikube",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-controller-manager-minikube",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-controller-manager-minikube",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-controller-manager-minikube",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="kube-controller-manager-minikube",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-scheduler-minikube",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-scheduler-minikube",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-scheduler-minikube",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-scheduler-minikube",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="kube-scheduler-minikube",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-proxy-6dvtf",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-proxy-6dvtf",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-proxy-6dvtf",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-proxy-6dvtf",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="kube-proxy-6dvtf",phase="Unknown"} 0 +kube_pod_status_phase{namespace="default",pod="stdout-logger",phase="Pending"} 0 +kube_pod_status_phase{namespace="default",pod="stdout-logger",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="default",pod="stdout-logger",phase="Failed"} 0 +kube_pod_status_phase{namespace="default",pod="stdout-logger",phase="Running"} 1 +kube_pod_status_phase{namespace="default",pod="stdout-logger",phase="Unknown"} 0 +kube_pod_status_phase{namespace="default",pod="playground",phase="Pending"} 0 +kube_pod_status_phase{namespace="default",pod="playground",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="default",pod="playground",phase="Failed"} 0 +kube_pod_status_phase{namespace="default",pod="playground",phase="Running"} 1 +kube_pod_status_phase{namespace="default",pod="playground",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-apiserver-minikube",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-apiserver-minikube",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-apiserver-minikube",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-apiserver-minikube",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="kube-apiserver-minikube",phase="Unknown"} 0 +kube_pod_status_phase{namespace="default-mem-example",pod="default-mem-demo",phase="Pending"} 0 +kube_pod_status_phase{namespace="default-mem-example",pod="default-mem-demo",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="default-mem-example",pod="default-mem-demo",phase="Failed"} 0 +kube_pod_status_phase{namespace="default-mem-example",pod="default-mem-demo",phase="Running"} 1 +kube_pod_status_phase{namespace="default-mem-example",pod="default-mem-demo",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="storage-provisioner",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="storage-provisioner",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="storage-provisioner",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="storage-provisioner",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="storage-provisioner",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-addon-manager-minikube",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-addon-manager-minikube",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-addon-manager-minikube",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-addon-manager-minikube",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="kube-addon-manager-minikube",phase="Unknown"} 0 +# HELP kube_pod_status_ready Describes whether the pod is ready to serve requests. +# TYPE kube_pod_status_ready gauge +kube_pod_status_ready{namespace="default-mem-example",pod="default-mem-demo",condition="true"} 1 +kube_pod_status_ready{namespace="default-mem-example",pod="default-mem-demo",condition="false"} 0 +kube_pod_status_ready{namespace="default-mem-example",pod="default-mem-demo",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="storage-provisioner",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="storage-provisioner",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="storage-provisioner",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-addon-manager-minikube",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="kube-addon-manager-minikube",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-addon-manager-minikube",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-proxy-6dvtf",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="kube-proxy-6dvtf",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-proxy-6dvtf",condition="unknown"} 0 +kube_pod_status_ready{namespace="default",pod="stdout-logger",condition="true"} 1 +kube_pod_status_ready{namespace="default",pod="stdout-logger",condition="false"} 0 +kube_pod_status_ready{namespace="default",pod="stdout-logger",condition="unknown"} 0 +kube_pod_status_ready{namespace="default",pod="playground",condition="true"} 1 +kube_pod_status_ready{namespace="default",pod="playground",condition="false"} 0 +kube_pod_status_ready{namespace="default",pod="playground",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-apiserver-minikube",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="kube-apiserver-minikube",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-apiserver-minikube",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-scheduler-minikube",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="kube-scheduler-minikube",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-scheduler-minikube",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="etcd-minikube",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="etcd-minikube",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="etcd-minikube",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="coredns-5c98db65d4-df89f",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="coredns-5c98db65d4-df89f",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="coredns-5c98db65d4-df89f",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-controller-manager-minikube",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="kube-controller-manager-minikube",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-controller-manager-minikube",condition="unknown"} 0 +# HELP kube_pod_status_scheduled Describes the status of the scheduling process for the pod. +# TYPE kube_pod_status_scheduled gauge +kube_pod_status_scheduled{namespace="default-mem-example",pod="default-mem-demo",condition="true"} 1 +kube_pod_status_scheduled{namespace="default-mem-example",pod="default-mem-demo",condition="false"} 0 +kube_pod_status_scheduled{namespace="default-mem-example",pod="default-mem-demo",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="storage-provisioner",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="storage-provisioner",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="storage-provisioner",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-addon-manager-minikube",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-addon-manager-minikube",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-addon-manager-minikube",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-proxy-6dvtf",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-proxy-6dvtf",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-proxy-6dvtf",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="default",pod="stdout-logger",condition="true"} 1 +kube_pod_status_scheduled{namespace="default",pod="stdout-logger",condition="false"} 0 +kube_pod_status_scheduled{namespace="default",pod="stdout-logger",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="default",pod="playground",condition="true"} 1 +kube_pod_status_scheduled{namespace="default",pod="playground",condition="false"} 0 +kube_pod_status_scheduled{namespace="default",pod="playground",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-apiserver-minikube",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-apiserver-minikube",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-apiserver-minikube",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-scheduler-minikube",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-scheduler-minikube",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-scheduler-minikube",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="etcd-minikube",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="etcd-minikube",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="etcd-minikube",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="coredns-5c98db65d4-df89f",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="coredns-5c98db65d4-df89f",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="coredns-5c98db65d4-df89f",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-controller-manager-minikube",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-controller-manager-minikube",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-controller-manager-minikube",condition="unknown"} 0 +# HELP kube_pod_container_info Information about a container in a pod. +# TYPE kube_pod_container_info gauge +kube_pod_container_info{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",image="k8s.gcr.io/kube-addon-manager:v9.0",image_id="docker://sha256:119701e77cbc4c6cb32c05d9c39050127eb865c1a9f21f830685379b6b65d6ae",container_id="docker://ae44f6171c1a602d5a034049cc98ed90d30b7013f4ec7a865404bfd6f821e3d6"} 1 +kube_pod_container_info{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",image="k8s.gcr.io/kube-proxy:v1.15.2",image_id="docker-pullable://k8s.gcr.io/kube-proxy@sha256:626f983f25f8b7799ca7ab001fd0985a72c2643c0acb877d2888c0aa4fcbdf56",container_id="docker://03d9bd9ed242a1b31c273a201aa6701d991cbd6ae5d7ff180d9d7e326efb48a9"} 1 +kube_pod_container_info{namespace="default",pod="stdout-logger",container="alpine",image="alpine:3.2",image_id="docker-pullable://alpine@sha256:e9a2035f9d0d7cee1cdd445f5bfa0c5c646455ee26f14565dce23cf2d2de7570",container_id="docker://be919c5f2a474dc6bbeca0835ffacd639937a060a0904846dc9f52e90c742d0a"} 1 +kube_pod_container_info{namespace="default",pod="playground",container="ubuntu",image="ubuntu:latest",image_id="docker-pullable://ubuntu@sha256:d1d454df0f579c6be4d8161d227462d69e163a8ff9d20a847533989cf0c94d90",container_id="docker://b17b21e347f9448c8b0c2edc1ed8d959bd9079e7befb3281c7a41fedcaecf38f"} 1 +kube_pod_container_info{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",image="k8s.gcr.io/kube-apiserver:v1.15.2",image_id="docker-pullable://k8s.gcr.io/kube-apiserver@sha256:5fae387bacf1def6c3915b4a3035cf8c8a4d06158b2e676721776d3d4afc05a2",container_id="docker://da080618e76a3dbb812b35c92517096fa12999fdc9ac47c8585380a27acc559f"} 1 +kube_pod_container_info{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",image="nginx:latest",image_id="docker-pullable://nginx@sha256:53ddb41e46de3d63376579acf46f9a41a8d7de33645db47a486de9769201fec9",container_id="docker://3c72f4f311796c758011a04d05b3fb899644ec085850dbcbe885b5144328478f"} 1 +kube_pod_container_info{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",image="gcr.io/k8s-minikube/storage-provisioner:v1.8.1",image_id="docker://sha256:4689081edb103a9e8174bf23a255bfbe0b2d9ed82edc907abab6989d1c60f02c",container_id="docker://0e4b04eaf652840ac51e584dd385c10fbcc137d1a5eee6329967f922b82b5a5a"} 1 +kube_pod_container_info{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",image="quay.io/coreos/kube-state-metrics:v1.7.2",image_id="docker-pullable://quay.io/coreos/kube-state-metrics@sha256:99a3e3297e281fec09fe850d6d4bccf4d9fd58ff62a5b37764d8a8bd1e79bd14",container_id="docker://fa1137e3a4047845b6bcdce50eb5934373b52200805be55a076407c96a9f5c2a"} 1 +kube_pod_container_info{namespace="kube-system",pod="etcd-minikube",container="etcd",image="k8s.gcr.io/etcd:3.3.10",image_id="docker-pullable://k8s.gcr.io/etcd@sha256:17da501f5d2a675be46040422a27b7cc21b8a43895ac998b171db1c346f361f7",container_id="docker://27c011eefe928f7ceb19808c699dc27770ddfd64397e0f9e7f2b850366e52b85"} 1 +kube_pod_container_info{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",image="k8s.gcr.io/coredns:1.3.1",image_id="docker-pullable://k8s.gcr.io/coredns@sha256:02382353821b12c21b062c59184e227e001079bb13ebd01f9d3270ba0fcbf1e4",container_id="docker://9c66d133e5a614edfe9f71997247346110b4488096f34e4963a68e2d36c06c67"} 1 +kube_pod_container_info{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",image="k8s.gcr.io/kube-controller-manager:v1.15.2",image_id="docker-pullable://k8s.gcr.io/kube-controller-manager@sha256:7d3fc48cf83aa0a7b8f129fa4255bb5530908e1a5b194be269ea8329b48e9598",container_id="docker://f90216c30dc12b460eef9e099d043f5c8c30b31677cc23cfb4870242086acecd"} 1 +kube_pod_container_info{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",image="k8s.gcr.io/kube-scheduler:v1.15.2",image_id="docker-pullable://k8s.gcr.io/kube-scheduler@sha256:8fd3c3251f07234a234469e201900e4274726f1fe0d5dc6fb7da911f1c851a1a",container_id="docker://4f3d2d395e04b6d8ff9aa74bc5bb558857780861b17dd888310a4bb27c383b4b"} 1 +kube_pod_container_info{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",image="k8s.gcr.io/coredns:1.3.1",image_id="docker-pullable://k8s.gcr.io/coredns@sha256:02382353821b12c21b062c59184e227e001079bb13ebd01f9d3270ba0fcbf1e4",container_id="docker://839b2b253ab43db87019fbaa0f8e836d31c757d40f44ce5e8678b3bb1573c719"} 1 +# HELP kube_pod_init_container_info Information about an init container in a pod. +# TYPE kube_pod_init_container_info gauge +# HELP kube_pod_container_status_waiting Describes whether the container is currently in waiting state. +# TYPE kube_pod_container_status_waiting gauge +kube_pod_container_status_waiting{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="etcd-minikube",container="etcd"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns"} 0 +kube_pod_container_status_waiting{namespace="default",pod="playground",container="ubuntu"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver"} 0 +kube_pod_container_status_waiting{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy"} 0 +kube_pod_container_status_waiting{namespace="default",pod="stdout-logger",container="alpine"} 0 +# HELP kube_pod_init_container_status_waiting Describes whether the init container is currently in waiting state. +# TYPE kube_pod_init_container_status_waiting gauge +# HELP kube_pod_container_status_waiting_reason Describes the reason the container is currently in waiting state. +# TYPE kube_pod_container_status_waiting_reason gauge +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="stdout-logger",container="alpine",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="stdout-logger",container="alpine",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="stdout-logger",container="alpine",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="stdout-logger",container="alpine",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="stdout-logger",container="alpine",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="stdout-logger",container="alpine",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="stdout-logger",container="alpine",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="playground",container="ubuntu",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="playground",container="ubuntu",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="playground",container="ubuntu",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="playground",container="ubuntu",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="playground",container="ubuntu",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="playground",container="ubuntu",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="playground",container="ubuntu",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="InvalidImageName"} 0 +# HELP kube_pod_init_container_status_waiting_reason Describes the reason the init container is currently in waiting state. +# TYPE kube_pod_init_container_status_waiting_reason gauge +# HELP kube_pod_container_status_running Describes whether the container is currently in running state. +# TYPE kube_pod_container_status_running gauge +kube_pod_container_status_running{namespace="kube-system",pod="etcd-minikube",container="etcd"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy"} 1 +kube_pod_container_status_running{namespace="default",pod="stdout-logger",container="alpine"} 1 +kube_pod_container_status_running{namespace="default",pod="playground",container="ubuntu"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver"} 1 +kube_pod_container_status_running{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager"} 1 +# HELP kube_pod_init_container_status_running Describes whether the init container is currently in running state. +# TYPE kube_pod_init_container_status_running gauge +# HELP kube_pod_container_status_terminated Describes whether the container is currently in terminated state. +# TYPE kube_pod_container_status_terminated gauge +kube_pod_container_status_terminated{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy"} 0 +kube_pod_container_status_terminated{namespace="default",pod="stdout-logger",container="alpine"} 0 +kube_pod_container_status_terminated{namespace="default",pod="playground",container="ubuntu"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver"} 0 +kube_pod_container_status_terminated{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="etcd-minikube",container="etcd"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics"} 0 +# HELP kube_pod_init_container_status_terminated Describes whether the init container is currently in terminated state. +# TYPE kube_pod_init_container_status_terminated gauge +# HELP kube_pod_container_status_terminated_reason Describes the reason the container is currently in terminated state. +# TYPE kube_pod_container_status_terminated_reason gauge +kube_pod_container_status_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="DeadlineExceeded"} 0 +# HELP kube_pod_init_container_status_terminated_reason Describes the reason the init container is currently in terminated state. +# TYPE kube_pod_init_container_status_terminated_reason gauge +# HELP kube_pod_container_status_last_terminated_reason Describes the last reason the container was in terminated state. +# TYPE kube_pod_container_status_last_terminated_reason gauge +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="Error"} 1 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="Error"} 1 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="Error"} 1 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="Completed"} 1 +kube_pod_container_status_last_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="Error"} 1 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="DeadlineExceeded"} 0 +# HELP kube_pod_init_container_status_last_terminated_reason Describes the last reason the init container was in terminated state. +# TYPE kube_pod_init_container_status_last_terminated_reason gauge +# HELP kube_pod_container_status_ready Describes whether the containers readiness check succeeded. +# TYPE kube_pod_container_status_ready gauge +kube_pod_container_status_ready{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="etcd-minikube",container="etcd"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager"} 1 +kube_pod_container_status_ready{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy"} 1 +kube_pod_container_status_ready{namespace="default",pod="stdout-logger",container="alpine"} 1 +kube_pod_container_status_ready{namespace="default",pod="playground",container="ubuntu"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver"} 1 +# HELP kube_pod_init_container_status_ready Describes whether the init containers readiness check succeeded. +# TYPE kube_pod_init_container_status_ready gauge +# HELP kube_pod_container_status_restarts_total The number of container restarts per container. +# TYPE kube_pod_container_status_restarts_total counter +kube_pod_container_status_restarts_total{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns"} 0 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager"} 0 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler"} 2 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns"} 0 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics"} 0 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="etcd-minikube",container="etcd"} 0 +kube_pod_container_status_restarts_total{namespace="default",pod="stdout-logger",container="alpine"} 1 +kube_pod_container_status_restarts_total{namespace="default",pod="playground",container="ubuntu"} 0 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver"} 0 +kube_pod_container_status_restarts_total{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr"} 1 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner"} 2 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager"} 1 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy"} 0 +# HELP kube_pod_init_container_status_restarts_total The number of restarts for the init container. +# TYPE kube_pod_init_container_status_restarts_total counter +# HELP kube_pod_container_resource_requests The number of requested request resource by a container. +# TYPE kube_pod_container_resource_requests gauge +kube_pod_container_resource_requests{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",node="minikube",resource="memory",unit="byte"} 2.68435456e+08 +kube_pod_container_resource_requests{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",node="minikube",resource="cpu",unit="core"} 0.005 +kube_pod_container_resource_requests{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",node="minikube",resource="memory",unit="byte"} 5.24288e+07 +kube_pod_container_resource_requests{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",node="minikube",resource="cpu",unit="core"} 0.25 +kube_pod_container_resource_requests{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",node="minikube",resource="cpu",unit="core"} 0.1 +kube_pod_container_resource_requests{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",node="minikube",resource="cpu",unit="core"} 0.1 +kube_pod_container_resource_requests{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",node="minikube",resource="memory",unit="byte"} 7.340032e+07 +kube_pod_container_resource_requests{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",node="minikube",resource="cpu",unit="core"} 0.1 +kube_pod_container_resource_requests{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",node="minikube",resource="memory",unit="byte"} 7.340032e+07 +kube_pod_container_resource_requests{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",node="minikube",resource="cpu",unit="core"} 0.2 +# HELP kube_pod_container_resource_limits The number of requested limit resource by a container. +# TYPE kube_pod_container_resource_limits gauge +kube_pod_container_resource_limits{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",node="minikube",resource="memory",unit="byte"} 5.36870912e+08 +kube_pod_container_resource_limits{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",node="minikube",resource="memory",unit="byte"} 1.7825792e+08 +kube_pod_container_resource_limits{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",node="minikube",resource="memory",unit="byte"} 1.7825792e+08 +# HELP kube_pod_init_container_resource_limits The number of requested limit resource by the init container. +# TYPE kube_pod_init_container_resource_limits gauge +# HELP kube_pod_container_resource_requests_cpu_cores The number of requested cpu cores by a container. +# TYPE kube_pod_container_resource_requests_cpu_cores gauge +kube_pod_container_resource_requests_cpu_cores{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",node="minikube"} 0.1 +kube_pod_container_resource_requests_cpu_cores{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",node="minikube"} 0.2 +kube_pod_container_resource_requests_cpu_cores{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",node="minikube"} 0.1 +kube_pod_container_resource_requests_cpu_cores{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",node="minikube"} 0.1 +kube_pod_container_resource_requests_cpu_cores{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",node="minikube"} 0.005 +kube_pod_container_resource_requests_cpu_cores{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",node="minikube"} 0.25 +# HELP kube_init_pod_container_resource_requests_cpu_cores The number of requested cpu cores by an init container. +# TYPE kube_init_pod_container_resource_requests_cpu_cores gauge +# HELP kube_pod_container_resource_requests_memory_bytes The number of requested memory bytes by a container. +# TYPE kube_pod_container_resource_requests_memory_bytes gauge +kube_pod_container_resource_requests_memory_bytes{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",node="minikube"} 7.340032e+07 +kube_pod_container_resource_requests_memory_bytes{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",node="minikube"} 7.340032e+07 +kube_pod_container_resource_requests_memory_bytes{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",node="minikube"} 2.68435456e+08 +kube_pod_container_resource_requests_memory_bytes{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",node="minikube"} 5.24288e+07 +# HELP kube_pod_container_resource_limits_cpu_cores The limit on cpu cores to be used by a container. +# TYPE kube_pod_container_resource_limits_cpu_cores gauge +# HELP kube_pod_container_resource_limits_memory_bytes The limit on memory to be used by a container in bytes. +# TYPE kube_pod_container_resource_limits_memory_bytes gauge +kube_pod_container_resource_limits_memory_bytes{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",node="minikube"} 5.36870912e+08 +kube_pod_container_resource_limits_memory_bytes{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",node="minikube"} 1.7825792e+08 +kube_pod_container_resource_limits_memory_bytes{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",node="minikube"} 1.7825792e+08 +# HELP kube_pod_spec_volumes_persistentvolumeclaims_info Information about persistentvolumeclaim volumes in a pod. +# TYPE kube_pod_spec_volumes_persistentvolumeclaims_info gauge +# HELP kube_pod_spec_volumes_persistentvolumeclaims_readonly Describes whether a persistentvolumeclaim is mounted read only. +# TYPE kube_pod_spec_volumes_persistentvolumeclaims_readonly gauge +# HELP kube_replicaset_created Unix creation timestamp +# TYPE kube_replicaset_created gauge +kube_replicaset_created{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b"} 1.568622119e+09 +kube_replicaset_created{namespace="kube-system",replicaset="coredns-576cbf47c7"} 1.567009611e+09 +kube_replicaset_created{namespace="kube-system",replicaset="coredns-5c98db65d4"} 1.567689495e+09 +# HELP kube_replicaset_status_replicas The number of replicas per ReplicaSet. +# TYPE kube_replicaset_status_replicas gauge +kube_replicaset_status_replicas{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b"} 1 +kube_replicaset_status_replicas{namespace="kube-system",replicaset="coredns-576cbf47c7"} 0 +kube_replicaset_status_replicas{namespace="kube-system",replicaset="coredns-5c98db65d4"} 2 +# HELP kube_replicaset_status_fully_labeled_replicas The number of fully labeled replicas per ReplicaSet. +# TYPE kube_replicaset_status_fully_labeled_replicas gauge +kube_replicaset_status_fully_labeled_replicas{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b"} 1 +kube_replicaset_status_fully_labeled_replicas{namespace="kube-system",replicaset="coredns-576cbf47c7"} 0 +kube_replicaset_status_fully_labeled_replicas{namespace="kube-system",replicaset="coredns-5c98db65d4"} 2 +# HELP kube_replicaset_status_ready_replicas The number of ready replicas per ReplicaSet. +# TYPE kube_replicaset_status_ready_replicas gauge +kube_replicaset_status_ready_replicas{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b"} 1 +kube_replicaset_status_ready_replicas{namespace="kube-system",replicaset="coredns-576cbf47c7"} 0 +kube_replicaset_status_ready_replicas{namespace="kube-system",replicaset="coredns-5c98db65d4"} 2 +# HELP kube_replicaset_status_observed_generation The generation observed by the ReplicaSet controller. +# TYPE kube_replicaset_status_observed_generation gauge +kube_replicaset_status_observed_generation{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b"} 1 +kube_replicaset_status_observed_generation{namespace="kube-system",replicaset="coredns-576cbf47c7"} 3 +kube_replicaset_status_observed_generation{namespace="kube-system",replicaset="coredns-5c98db65d4"} 2 +# HELP kube_replicaset_spec_replicas Number of desired pods for a ReplicaSet. +# TYPE kube_replicaset_spec_replicas gauge +kube_replicaset_spec_replicas{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b"} 1 +kube_replicaset_spec_replicas{namespace="kube-system",replicaset="coredns-576cbf47c7"} 0 +kube_replicaset_spec_replicas{namespace="kube-system",replicaset="coredns-5c98db65d4"} 2 +# HELP kube_replicaset_metadata_generation Sequence number representing a specific generation of the desired state. +# TYPE kube_replicaset_metadata_generation gauge +kube_replicaset_metadata_generation{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b"} 1 +kube_replicaset_metadata_generation{namespace="kube-system",replicaset="coredns-576cbf47c7"} 3 +kube_replicaset_metadata_generation{namespace="kube-system",replicaset="coredns-5c98db65d4"} 2 +# HELP kube_replicaset_owner Information about the ReplicaSet's owner. +# TYPE kube_replicaset_owner gauge +kube_replicaset_owner{namespace="kube-system",replicaset="coredns-576cbf47c7",owner_kind="Deployment",owner_name="coredns",owner_is_controller="true"} 1 +kube_replicaset_owner{namespace="kube-system",replicaset="coredns-5c98db65d4",owner_kind="Deployment",owner_name="coredns",owner_is_controller="true"} 1 +kube_replicaset_owner{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b",owner_kind="Deployment",owner_name="kube-state-metrics",owner_is_controller="true"} 1 +# HELP kube_replicaset_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_replicaset_labels gauge +kube_replicaset_labels{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b",label_pod_template_hash="6766c6d46b",label_k8s_app="kube-state-metrics"} 1 +kube_replicaset_labels{namespace="kube-system",replicaset="coredns-576cbf47c7",label_pod_template_hash="576cbf47c7",label_k8s_app="kube-dns"} 1 +kube_replicaset_labels{namespace="kube-system",replicaset="coredns-5c98db65d4",label_k8s_app="kube-dns",label_pod_template_hash="5c98db65d4"} 1 +# HELP kube_replicationcontroller_created Unix creation timestamp +# TYPE kube_replicationcontroller_created gauge +# HELP kube_replicationcontroller_status_replicas The number of replicas per ReplicationController. +# TYPE kube_replicationcontroller_status_replicas gauge +# HELP kube_replicationcontroller_status_fully_labeled_replicas The number of fully labeled replicas per ReplicationController. +# TYPE kube_replicationcontroller_status_fully_labeled_replicas gauge +# HELP kube_replicationcontroller_status_ready_replicas The number of ready replicas per ReplicationController. +# TYPE kube_replicationcontroller_status_ready_replicas gauge +# HELP kube_replicationcontroller_status_available_replicas The number of available replicas per ReplicationController. +# TYPE kube_replicationcontroller_status_available_replicas gauge +# HELP kube_replicationcontroller_status_observed_generation The generation observed by the ReplicationController controller. +# TYPE kube_replicationcontroller_status_observed_generation gauge +# HELP kube_replicationcontroller_spec_replicas Number of desired pods for a ReplicationController. +# TYPE kube_replicationcontroller_spec_replicas gauge +# HELP kube_replicationcontroller_metadata_generation Sequence number representing a specific generation of the desired state. +# TYPE kube_replicationcontroller_metadata_generation gauge +# HELP kube_resourcequota_created Unix creation timestamp +# TYPE kube_resourcequota_created gauge +kube_resourcequota_created{namespace="rqtest",resourcequota="resources"} 1.568629266e+09 +kube_resourcequota_created{namespace="rqtest",resourcequota="objects"} 1.568629266e+09 +# HELP kube_resourcequota Information about resource quota. +# TYPE kube_resourcequota gauge +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="pods",type="hard"} 3 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="replicationcontrollers",type="hard"} 1 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="secrets",type="hard"} 1 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="services",type="hard"} 2 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="services.loadbalancers",type="hard"} 1 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="configmaps",type="hard"} 1 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="persistentvolumeclaims",type="hard"} 0 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="configmaps",type="used"} 0 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="persistentvolumeclaims",type="used"} 0 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="pods",type="used"} 0 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="replicationcontrollers",type="used"} 0 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="secrets",type="used"} 1 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="services",type="used"} 1 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="services.loadbalancers",type="used"} 1 +kube_resourcequota{namespace="rqtest",resourcequota="resources",resource="limits.cpu",type="hard"} 2 +kube_resourcequota{namespace="rqtest",resourcequota="resources",resource="limits.memory",type="hard"} 2.147483648e+09 +kube_resourcequota{namespace="rqtest",resourcequota="resources",resource="requests.cpu",type="hard"} 1 +kube_resourcequota{namespace="rqtest",resourcequota="resources",resource="requests.memory",type="hard"} 1.073741824e+09 +kube_resourcequota{namespace="rqtest",resourcequota="resources",resource="limits.cpu",type="used"} 0 +kube_resourcequota{namespace="rqtest",resourcequota="resources",resource="limits.memory",type="used"} 0 +kube_resourcequota{namespace="rqtest",resourcequota="resources",resource="requests.cpu",type="used"} 0 +kube_resourcequota{namespace="rqtest",resourcequota="resources",resource="requests.memory",type="used"} 0 +# HELP kube_secret_info Information about secret. +# TYPE kube_secret_info gauge +kube_secret_info{namespace="kube-system",secret="token-cleaner-token-hvmvg"} 1 +kube_secret_info{namespace="kube-system",secret="coredns-token-sck4w"} 1 +kube_secret_info{namespace="kube-system",secret="pvc-protection-controller-token-l7sng"} 1 +kube_secret_info{namespace="kube-system",secret="replicaset-controller-token-w7cbh"} 1 +kube_secret_info{namespace="default",secret="default-token-t7g88"} 1 +kube_secret_info{namespace="kube-system",secret="disruption-controller-token-p746l"} 1 +kube_secret_info{namespace="pablo",secret="default-token-bcdzp"} 1 +kube_secret_info{namespace="kube-system",secret="storage-provisioner-token-77qbj"} 1 +kube_secret_info{namespace="default-mem-example",secret="default-token-ck879"} 1 +kube_secret_info{namespace="kube-system",secret="cronjob-controller-token-5pdpx"} 1 +kube_secret_info{namespace="kube-system",secret="namespace-controller-token-cz6nm"} 1 +kube_secret_info{namespace="kube-system",secret="pod-garbage-collector-token-r5p7w"} 1 +kube_secret_info{namespace="kube-system",secret="attachdetach-controller-token-ww2k9"} 1 +kube_secret_info{namespace="kube-system",secret="pv-protection-controller-token-wgqk6"} 1 +kube_secret_info{namespace="kube-system",secret="service-account-controller-token-trs9v"} 1 +kube_secret_info{namespace="kube-system",secret="deployment-controller-token-8jz6f"} 1 +kube_secret_info{namespace="kube-system",secret="default-token-wlxnx"} 1 +kube_secret_info{namespace="kube-system",secret="horizontal-pod-autoscaler-token-jk9wc"} 1 +kube_secret_info{namespace="kube-system",secret="bootstrap-signer-token-5rthh"} 1 +kube_secret_info{namespace="kube-system",secret="resourcequota-controller-token-ftfbv"} 1 +kube_secret_info{namespace="kube-system",secret="ttl-controller-token-cjgd4"} 1 +kube_secret_info{namespace="kube-system",secret="expand-controller-token-bqc2l"} 1 +kube_secret_info{namespace="kube-system",secret="persistent-volume-binder-token-5vnhp"} 1 +kube_secret_info{namespace="kube-system",secret="kube-state-metrics-token-q84xw"} 1 +kube_secret_info{namespace="kube-system",secret="clusterrole-aggregation-controller-token-p48ps"} 1 +kube_secret_info{namespace="kube-public",secret="default-token-fgbfg"} 1 +kube_secret_info{namespace="kube-system",secret="endpoint-controller-token-xhchl"} 1 +kube_secret_info{namespace="kube-system",secret="kube-proxy-token-xb2xk"} 1 +kube_secret_info{namespace="rqtest",secret="default-token-bx4mb"} 1 +kube_secret_info{namespace="kube-system",secret="metricbeat-kube-token-p7lz2"} 1 +kube_secret_info{namespace="kube-system",secret="certificate-controller-token-4tpf5"} 1 +kube_secret_info{namespace="kube-system",secret="replication-controller-token-4bbg4"} 1 +kube_secret_info{namespace="kube-node-lease",secret="default-token-4bnbt"} 1 +kube_secret_info{namespace="kube-system",secret="node-controller-token-vlp7g"} 1 +kube_secret_info{namespace="kube-system",secret="service-controller-token-n6q5z"} 1 +kube_secret_info{namespace="kube-system",secret="generic-garbage-collector-token-bwzxm"} 1 +kube_secret_info{namespace="kube-system",secret="job-controller-token-jzdhc"} 1 +kube_secret_info{namespace="kube-system",secret="statefulset-controller-token-c6ln8"} 1 +kube_secret_info{namespace="kube-system",secret="daemon-set-controller-token-hlmp4"} 1 +kube_secret_info{namespace="default",secret="metricbeat-kube-token-8bswn"} 1 +# HELP kube_secret_type Type about secret. +# TYPE kube_secret_type gauge +kube_secret_type{namespace="kube-system",secret="node-controller-token-vlp7g",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="service-controller-token-n6q5z",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="generic-garbage-collector-token-bwzxm",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="rqtest",secret="default-token-bx4mb",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="metricbeat-kube-token-p7lz2",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="certificate-controller-token-4tpf5",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="replication-controller-token-4bbg4",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-node-lease",secret="default-token-4bnbt",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="job-controller-token-jzdhc",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="statefulset-controller-token-c6ln8",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="daemon-set-controller-token-hlmp4",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="default",secret="metricbeat-kube-token-8bswn",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="disruption-controller-token-p746l",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="pablo",secret="default-token-bcdzp",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="storage-provisioner-token-77qbj",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="token-cleaner-token-hvmvg",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="coredns-token-sck4w",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="pvc-protection-controller-token-l7sng",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="replicaset-controller-token-w7cbh",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="default",secret="default-token-t7g88",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="default-mem-example",secret="default-token-ck879",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="cronjob-controller-token-5pdpx",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="namespace-controller-token-cz6nm",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="pod-garbage-collector-token-r5p7w",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="default-token-wlxnx",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="attachdetach-controller-token-ww2k9",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="pv-protection-controller-token-wgqk6",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="service-account-controller-token-trs9v",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="deployment-controller-token-8jz6f",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="horizontal-pod-autoscaler-token-jk9wc",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="bootstrap-signer-token-5rthh",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="kube-state-metrics-token-q84xw",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="resourcequota-controller-token-ftfbv",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="ttl-controller-token-cjgd4",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="expand-controller-token-bqc2l",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="persistent-volume-binder-token-5vnhp",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="clusterrole-aggregation-controller-token-p48ps",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-public",secret="default-token-fgbfg",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="endpoint-controller-token-xhchl",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="kube-proxy-token-xb2xk",type="kubernetes.io/service-account-token"} 1 +# HELP kube_secret_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_secret_labels gauge +kube_secret_labels{namespace="kube-system",secret="horizontal-pod-autoscaler-token-jk9wc"} 1 +kube_secret_labels{namespace="kube-system",secret="bootstrap-signer-token-5rthh"} 1 +kube_secret_labels{namespace="kube-system",secret="resourcequota-controller-token-ftfbv"} 1 +kube_secret_labels{namespace="kube-system",secret="ttl-controller-token-cjgd4"} 1 +kube_secret_labels{namespace="kube-system",secret="expand-controller-token-bqc2l"} 1 +kube_secret_labels{namespace="kube-system",secret="persistent-volume-binder-token-5vnhp"} 1 +kube_secret_labels{namespace="kube-system",secret="kube-state-metrics-token-q84xw"} 1 +kube_secret_labels{namespace="kube-system",secret="clusterrole-aggregation-controller-token-p48ps"} 1 +kube_secret_labels{namespace="kube-public",secret="default-token-fgbfg"} 1 +kube_secret_labels{namespace="kube-system",secret="endpoint-controller-token-xhchl"} 1 +kube_secret_labels{namespace="kube-system",secret="kube-proxy-token-xb2xk"} 1 +kube_secret_labels{namespace="rqtest",secret="default-token-bx4mb"} 1 +kube_secret_labels{namespace="kube-system",secret="metricbeat-kube-token-p7lz2"} 1 +kube_secret_labels{namespace="kube-system",secret="certificate-controller-token-4tpf5"} 1 +kube_secret_labels{namespace="kube-system",secret="replication-controller-token-4bbg4"} 1 +kube_secret_labels{namespace="kube-node-lease",secret="default-token-4bnbt"} 1 +kube_secret_labels{namespace="kube-system",secret="node-controller-token-vlp7g"} 1 +kube_secret_labels{namespace="kube-system",secret="service-controller-token-n6q5z"} 1 +kube_secret_labels{namespace="kube-system",secret="generic-garbage-collector-token-bwzxm"} 1 +kube_secret_labels{namespace="kube-system",secret="job-controller-token-jzdhc"} 1 +kube_secret_labels{namespace="kube-system",secret="statefulset-controller-token-c6ln8"} 1 +kube_secret_labels{namespace="kube-system",secret="daemon-set-controller-token-hlmp4"} 1 +kube_secret_labels{namespace="default",secret="metricbeat-kube-token-8bswn"} 1 +kube_secret_labels{namespace="kube-system",secret="token-cleaner-token-hvmvg"} 1 +kube_secret_labels{namespace="kube-system",secret="coredns-token-sck4w"} 1 +kube_secret_labels{namespace="kube-system",secret="pvc-protection-controller-token-l7sng"} 1 +kube_secret_labels{namespace="kube-system",secret="replicaset-controller-token-w7cbh"} 1 +kube_secret_labels{namespace="default",secret="default-token-t7g88"} 1 +kube_secret_labels{namespace="kube-system",secret="disruption-controller-token-p746l"} 1 +kube_secret_labels{namespace="pablo",secret="default-token-bcdzp"} 1 +kube_secret_labels{namespace="kube-system",secret="storage-provisioner-token-77qbj"} 1 +kube_secret_labels{namespace="default-mem-example",secret="default-token-ck879"} 1 +kube_secret_labels{namespace="kube-system",secret="cronjob-controller-token-5pdpx"} 1 +kube_secret_labels{namespace="kube-system",secret="namespace-controller-token-cz6nm"} 1 +kube_secret_labels{namespace="kube-system",secret="pod-garbage-collector-token-r5p7w"} 1 +kube_secret_labels{namespace="kube-system",secret="attachdetach-controller-token-ww2k9"} 1 +kube_secret_labels{namespace="kube-system",secret="pv-protection-controller-token-wgqk6"} 1 +kube_secret_labels{namespace="kube-system",secret="service-account-controller-token-trs9v"} 1 +kube_secret_labels{namespace="kube-system",secret="deployment-controller-token-8jz6f"} 1 +kube_secret_labels{namespace="kube-system",secret="default-token-wlxnx"} 1 +# HELP kube_secret_created Unix creation timestamp +# TYPE kube_secret_created gauge +kube_secret_created{namespace="kube-system",secret="statefulset-controller-token-c6ln8"} 1.567009608e+09 +kube_secret_created{namespace="kube-system",secret="daemon-set-controller-token-hlmp4"} 1.567009608e+09 +kube_secret_created{namespace="default",secret="metricbeat-kube-token-8bswn"} 1.567693987e+09 +kube_secret_created{namespace="kube-system",secret="job-controller-token-jzdhc"} 1.567009606e+09 +kube_secret_created{namespace="kube-system",secret="pvc-protection-controller-token-l7sng"} 1.567009609e+09 +kube_secret_created{namespace="kube-system",secret="replicaset-controller-token-w7cbh"} 1.567009605e+09 +kube_secret_created{namespace="default",secret="default-token-t7g88"} 1.567009611e+09 +kube_secret_created{namespace="kube-system",secret="disruption-controller-token-p746l"} 1.567009611e+09 +kube_secret_created{namespace="pablo",secret="default-token-bcdzp"} 1.567347599e+09 +kube_secret_created{namespace="kube-system",secret="storage-provisioner-token-77qbj"} 1.567009612e+09 +kube_secret_created{namespace="kube-system",secret="token-cleaner-token-hvmvg"} 1.567009611e+09 +kube_secret_created{namespace="kube-system",secret="coredns-token-sck4w"} 1.567009606e+09 +kube_secret_created{namespace="kube-system",secret="cronjob-controller-token-5pdpx"} 1.567009607e+09 +kube_secret_created{namespace="kube-system",secret="namespace-controller-token-cz6nm"} 1.567009609e+09 +kube_secret_created{namespace="kube-system",secret="pod-garbage-collector-token-r5p7w"} 1.567009607e+09 +kube_secret_created{namespace="default-mem-example",secret="default-token-ck879"} 1.567347623e+09 +kube_secret_created{namespace="kube-system",secret="pv-protection-controller-token-wgqk6"} 1.56700961e+09 +kube_secret_created{namespace="kube-system",secret="service-account-controller-token-trs9v"} 1.567009605e+09 +kube_secret_created{namespace="kube-system",secret="deployment-controller-token-8jz6f"} 1.567009605e+09 +kube_secret_created{namespace="kube-system",secret="default-token-wlxnx"} 1.567009611e+09 +kube_secret_created{namespace="kube-system",secret="attachdetach-controller-token-ww2k9"} 1.567009608e+09 +kube_secret_created{namespace="kube-system",secret="bootstrap-signer-token-5rthh"} 1.567009605e+09 +kube_secret_created{namespace="kube-system",secret="horizontal-pod-autoscaler-token-jk9wc"} 1.56700961e+09 +kube_secret_created{namespace="kube-system",secret="ttl-controller-token-cjgd4"} 1.567009605e+09 +kube_secret_created{namespace="kube-system",secret="expand-controller-token-bqc2l"} 1.567009606e+09 +kube_secret_created{namespace="kube-system",secret="persistent-volume-binder-token-5vnhp"} 1.567009607e+09 +kube_secret_created{namespace="kube-system",secret="kube-state-metrics-token-q84xw"} 1.568195118e+09 +kube_secret_created{namespace="kube-system",secret="resourcequota-controller-token-ftfbv"} 1.567009606e+09 +kube_secret_created{namespace="kube-public",secret="default-token-fgbfg"} 1.567009611e+09 +kube_secret_created{namespace="kube-system",secret="endpoint-controller-token-xhchl"} 1.567009609e+09 +kube_secret_created{namespace="kube-system",secret="kube-proxy-token-xb2xk"} 1.567009606e+09 +kube_secret_created{namespace="kube-system",secret="clusterrole-aggregation-controller-token-p48ps"} 1.567009605e+09 +kube_secret_created{namespace="kube-system",secret="certificate-controller-token-4tpf5"} 1.567009605e+09 +kube_secret_created{namespace="kube-system",secret="replication-controller-token-4bbg4"} 1.567009606e+09 +kube_secret_created{namespace="kube-node-lease",secret="default-token-4bnbt"} 1.567689495e+09 +kube_secret_created{namespace="kube-system",secret="node-controller-token-vlp7g"} 1.567009605e+09 +kube_secret_created{namespace="kube-system",secret="service-controller-token-n6q5z"} 1.567009609e+09 +kube_secret_created{namespace="kube-system",secret="generic-garbage-collector-token-bwzxm"} 1.56700961e+09 +kube_secret_created{namespace="rqtest",secret="default-token-bx4mb"} 1.568629266e+09 +kube_secret_created{namespace="kube-system",secret="metricbeat-kube-token-p7lz2"} 1.567585201e+09 +# HELP kube_secret_metadata_resource_version Resource version representing a specific version of secret. +# TYPE kube_secret_metadata_resource_version gauge +kube_secret_metadata_resource_version{namespace="kube-system",secret="ttl-controller-token-cjgd4",resource_version="201"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="expand-controller-token-bqc2l",resource_version="204"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="persistent-volume-binder-token-5vnhp",resource_version="247"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="kube-state-metrics-token-q84xw",resource_version="1322401"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="resourcequota-controller-token-ftfbv",resource_version="230"} 1 +kube_secret_metadata_resource_version{namespace="kube-public",secret="default-token-fgbfg",resource_version="307"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="endpoint-controller-token-xhchl",resource_version="264"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="kube-proxy-token-xb2xk",resource_version="227"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="clusterrole-aggregation-controller-token-p48ps",resource_version="185"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="certificate-controller-token-4tpf5",resource_version="191"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="replication-controller-token-4bbg4",resource_version="224"} 1 +kube_secret_metadata_resource_version{namespace="kube-node-lease",secret="default-token-4bnbt",resource_version="709402"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="node-controller-token-vlp7g",resource_version="182"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="service-controller-token-n6q5z",resource_version="270"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="generic-garbage-collector-token-bwzxm",resource_version="280"} 1 +kube_secret_metadata_resource_version{namespace="rqtest",secret="default-token-bx4mb",resource_version="1848837"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="metricbeat-kube-token-p7lz2",resource_version="688578"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="statefulset-controller-token-c6ln8",resource_version="257"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="daemon-set-controller-token-hlmp4",resource_version="254"} 1 +kube_secret_metadata_resource_version{namespace="default",secret="metricbeat-kube-token-8bswn",resource_version="715037"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="job-controller-token-jzdhc",resource_version="240"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="pvc-protection-controller-token-l7sng",resource_version="274"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="replicaset-controller-token-w7cbh",resource_version="188"} 1 +kube_secret_metadata_resource_version{namespace="default",secret="default-token-t7g88",resource_version="302"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="disruption-controller-token-p746l",resource_version="288"} 1 +kube_secret_metadata_resource_version{namespace="pablo",secret="default-token-bcdzp",resource_version="404521"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="storage-provisioner-token-77qbj",resource_version="345"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="token-cleaner-token-hvmvg",resource_version="292"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="coredns-token-sck4w",resource_version="219"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="cronjob-controller-token-5pdpx",resource_version="243"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="namespace-controller-token-cz6nm",resource_version="267"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="pod-garbage-collector-token-r5p7w",resource_version="250"} 1 +kube_secret_metadata_resource_version{namespace="default-mem-example",secret="default-token-ck879",resource_version="404555"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="pv-protection-controller-token-wgqk6",resource_version="277"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="service-account-controller-token-trs9v",resource_version="197"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="deployment-controller-token-8jz6f",resource_version="179"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="default-token-wlxnx",resource_version="304"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="attachdetach-controller-token-ww2k9",resource_version="260"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="bootstrap-signer-token-5rthh",resource_version="194"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="horizontal-pod-autoscaler-token-jk9wc",resource_version="283"} 1 +# HELP kube_service_info Information about service. +# TYPE kube_service_info gauge +kube_service_info{namespace="kube-system",service="kube-dns",cluster_ip="10.96.0.10",external_name="",load_balancer_ip=""} 1 +kube_service_info{namespace="default",service="my-nginx",cluster_ip="10.111.59.54",external_name="",load_balancer_ip=""} 1 +kube_service_info{namespace="kube-system",service="kube-state-metrics",cluster_ip="10.111.114.13",external_name="",load_balancer_ip=""} 1 +kube_service_info{namespace="default",service="willsucceed",cluster_ip="10.104.70.53",external_name="",load_balancer_ip=""} 1 +kube_service_info{namespace="default",service="willfail",cluster_ip="10.99.32.65",external_name="",load_balancer_ip=""} 1 +kube_service_info{namespace="rqtest",service="willsucceed",cluster_ip="10.97.184.107",external_name="",load_balancer_ip=""} 1 +kube_service_info{namespace="default",service="kubernetes",cluster_ip="10.96.0.1",external_name="",load_balancer_ip=""} 1 +# HELP kube_service_created Unix creation timestamp +# TYPE kube_service_created gauge +kube_service_created{namespace="default",service="kubernetes"} 1.567009602e+09 +kube_service_created{namespace="kube-system",service="kube-dns"} 1.567009606e+09 +kube_service_created{namespace="default",service="my-nginx"} 1.567783021e+09 +kube_service_created{namespace="kube-system",service="kube-state-metrics"} 1.568195118e+09 +kube_service_created{namespace="default",service="willsucceed"} 1.568629567e+09 +kube_service_created{namespace="default",service="willfail"} 1.568629567e+09 +kube_service_created{namespace="rqtest",service="willsucceed"} 1.568629886e+09 +# HELP kube_service_spec_type Type about service. +# TYPE kube_service_spec_type gauge +kube_service_spec_type{namespace="rqtest",service="willsucceed",type="LoadBalancer"} 1 +kube_service_spec_type{namespace="default",service="kubernetes",type="ClusterIP"} 1 +kube_service_spec_type{namespace="kube-system",service="kube-dns",type="ClusterIP"} 1 +kube_service_spec_type{namespace="default",service="my-nginx",type="LoadBalancer"} 1 +kube_service_spec_type{namespace="kube-system",service="kube-state-metrics",type="ClusterIP"} 1 +kube_service_spec_type{namespace="default",service="willsucceed",type="LoadBalancer"} 1 +kube_service_spec_type{namespace="default",service="willfail",type="LoadBalancer"} 1 +# HELP kube_service_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_service_labels gauge +kube_service_labels{namespace="default",service="kubernetes",label_component="apiserver",label_provider="kubernetes"} 1 +kube_service_labels{namespace="kube-system",service="kube-dns",label_kubernetes_io_name="KubeDNS",label_k8s_app="kube-dns",label_kubernetes_io_cluster_service="true"} 1 +kube_service_labels{namespace="default",service="my-nginx",label_app="my-nginx"} 1 +kube_service_labels{namespace="kube-system",service="kube-state-metrics",label_k8s_app="kube-state-metrics"} 1 +kube_service_labels{namespace="default",service="willsucceed"} 1 +kube_service_labels{namespace="default",service="willfail"} 1 +kube_service_labels{namespace="rqtest",service="willsucceed"} 1 +# HELP kube_service_spec_external_ip Service external ips. One series for each ip +# TYPE kube_service_spec_external_ip gauge +# HELP kube_service_status_load_balancer_ingress Service load balancer ingress status +# TYPE kube_service_status_load_balancer_ingress gauge +# HELP kube_statefulset_created Unix creation timestamp +# TYPE kube_statefulset_created gauge +# HELP kube_statefulset_status_replicas The number of replicas per StatefulSet. +# TYPE kube_statefulset_status_replicas gauge +# HELP kube_statefulset_status_replicas_current The number of current replicas per StatefulSet. +# TYPE kube_statefulset_status_replicas_current gauge +# HELP kube_statefulset_status_replicas_ready The number of ready replicas per StatefulSet. +# TYPE kube_statefulset_status_replicas_ready gauge +# HELP kube_statefulset_status_replicas_updated The number of updated replicas per StatefulSet. +# TYPE kube_statefulset_status_replicas_updated gauge +# HELP kube_statefulset_status_observed_generation The generation observed by the StatefulSet controller. +# TYPE kube_statefulset_status_observed_generation gauge +# HELP kube_statefulset_replicas Number of desired pods for a StatefulSet. +# TYPE kube_statefulset_replicas gauge +# HELP kube_statefulset_metadata_generation Sequence number representing a specific generation of the desired state for the StatefulSet. +# TYPE kube_statefulset_metadata_generation gauge +# HELP kube_statefulset_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_statefulset_labels gauge +# HELP kube_statefulset_status_current_revision Indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). +# TYPE kube_statefulset_status_current_revision gauge +# HELP kube_statefulset_status_update_revision Indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) +# TYPE kube_statefulset_status_update_revision gauge +# HELP kube_storageclass_info Information about storageclass. +# TYPE kube_storageclass_info gauge +kube_storageclass_info{storageclass="standard",provisioner="k8s.io/minikube-hostpath",reclaimPolicy="Delete",volumeBindingMode="Immediate"} 1 +# HELP kube_storageclass_created Unix creation timestamp +# TYPE kube_storageclass_created gauge +kube_storageclass_created{storageclass="standard"} 1.567009612e+09 +# HELP kube_storageclass_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_storageclass_labels gauge +kube_storageclass_labels{storageclass="standard",label_addonmanager_kubernetes_io_mode="EnsureExists"} 1 diff --git a/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7.expected b/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7.expected new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/config.yml b/metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/config.yml new file mode 100644 index 000000000000..ab6bf2416543 --- /dev/null +++ b/metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/config.yml @@ -0,0 +1,3 @@ +type: http +url: "/metrics" +suffix: plain diff --git a/metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/kube-state-metrics.1.7.plain b/metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/kube-state-metrics.1.7.plain new file mode 100644 index 000000000000..11e5614b7e28 --- /dev/null +++ b/metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/kube-state-metrics.1.7.plain @@ -0,0 +1,1361 @@ +# HELP kube_certificatesigningrequest_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_certificatesigningrequest_labels gauge +# HELP kube_certificatesigningrequest_created Unix creation timestamp +# TYPE kube_certificatesigningrequest_created gauge +# HELP kube_certificatesigningrequest_condition The number of each certificatesigningrequest condition +# TYPE kube_certificatesigningrequest_condition gauge +# HELP kube_certificatesigningrequest_cert_length Length of the issued cert +# TYPE kube_certificatesigningrequest_cert_length gauge +# HELP kube_configmap_info Information about configmap. +# TYPE kube_configmap_info gauge +kube_configmap_info{namespace="kube-system",configmap="kubelet-config-1.12"} 1 +kube_configmap_info{namespace="default",configmap="elastic-operator-uuid"} 1 +kube_configmap_info{namespace="kube-public",configmap="cluster-info"} 1 +kube_configmap_info{namespace="kube-system",configmap="coredns"} 1 +kube_configmap_info{namespace="kube-system",configmap="extension-apiserver-authentication"} 1 +kube_configmap_info{namespace="kube-system",configmap="kube-proxy"} 1 +kube_configmap_info{namespace="kube-system",configmap="kubeadm-config"} 1 +# HELP kube_configmap_created Unix creation timestamp +# TYPE kube_configmap_created gauge +kube_configmap_created{namespace="kube-system",configmap="extension-apiserver-authentication"} 1.567009602e+09 +kube_configmap_created{namespace="kube-system",configmap="kube-proxy"} 1.567009606e+09 +kube_configmap_created{namespace="kube-system",configmap="kubeadm-config"} 1.567009605e+09 +kube_configmap_created{namespace="kube-system",configmap="kubelet-config-1.12"} 1.567009605e+09 +kube_configmap_created{namespace="default",configmap="elastic-operator-uuid"} 1.567060471e+09 +kube_configmap_created{namespace="kube-public",configmap="cluster-info"} 1.567009606e+09 +kube_configmap_created{namespace="kube-system",configmap="coredns"} 1.567009606e+09 +# HELP kube_configmap_metadata_resource_version Resource version representing a specific version of the configmap. +# TYPE kube_configmap_metadata_resource_version gauge +kube_configmap_metadata_resource_version{namespace="default",configmap="elastic-operator-uuid",resource_version="61228"} 1 +kube_configmap_metadata_resource_version{namespace="kube-public",configmap="cluster-info",resource_version="709401"} 1 +kube_configmap_metadata_resource_version{namespace="kube-system",configmap="coredns",resource_version="214"} 1 +kube_configmap_metadata_resource_version{namespace="kube-system",configmap="extension-apiserver-authentication",resource_version="53"} 1 +kube_configmap_metadata_resource_version{namespace="kube-system",configmap="kube-proxy",resource_version="709289"} 1 +kube_configmap_metadata_resource_version{namespace="kube-system",configmap="kubeadm-config",resource_version="171"} 1 +kube_configmap_metadata_resource_version{namespace="kube-system",configmap="kubelet-config-1.12",resource_version="174"} 1 +# HELP kube_cronjob_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_cronjob_labels gauge +# HELP kube_cronjob_info Info about cronjob. +# TYPE kube_cronjob_info gauge +# HELP kube_cronjob_created Unix creation timestamp +# TYPE kube_cronjob_created gauge +# HELP kube_cronjob_status_active Active holds pointers to currently running jobs. +# TYPE kube_cronjob_status_active gauge +# HELP kube_cronjob_status_last_schedule_time LastScheduleTime keeps information of when was the last time the job was successfully scheduled. +# TYPE kube_cronjob_status_last_schedule_time gauge +# HELP kube_cronjob_spec_suspend Suspend flag tells the controller to suspend subsequent executions. +# TYPE kube_cronjob_spec_suspend gauge +# HELP kube_cronjob_spec_starting_deadline_seconds Deadline in seconds for starting the job if it misses scheduled time for any reason. +# TYPE kube_cronjob_spec_starting_deadline_seconds gauge +# HELP kube_cronjob_next_schedule_time Next time the cronjob should be scheduled. The time after lastScheduleTime, or after the cron job's creation time if it's never been scheduled. Use this to determine if the job is delayed. +# TYPE kube_cronjob_next_schedule_time gauge +# HELP kube_daemonset_created Unix creation timestamp +# TYPE kube_daemonset_created gauge +kube_daemonset_created{namespace="kube-system",daemonset="kube-proxy"} 1.567009606e+09 +# HELP kube_daemonset_status_current_number_scheduled The number of nodes running at least one daemon pod and are supposed to. +# TYPE kube_daemonset_status_current_number_scheduled gauge +kube_daemonset_status_current_number_scheduled{namespace="kube-system",daemonset="kube-proxy"} 1 +# HELP kube_daemonset_status_desired_number_scheduled The number of nodes that should be running the daemon pod. +# TYPE kube_daemonset_status_desired_number_scheduled gauge +kube_daemonset_status_desired_number_scheduled{namespace="kube-system",daemonset="kube-proxy"} 1 +# HELP kube_daemonset_status_number_available The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available +# TYPE kube_daemonset_status_number_available gauge +kube_daemonset_status_number_available{namespace="kube-system",daemonset="kube-proxy"} 1 +# HELP kube_daemonset_status_number_misscheduled The number of nodes running a daemon pod but are not supposed to. +# TYPE kube_daemonset_status_number_misscheduled gauge +kube_daemonset_status_number_misscheduled{namespace="kube-system",daemonset="kube-proxy"} 0 +# HELP kube_daemonset_status_number_ready The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready. +# TYPE kube_daemonset_status_number_ready gauge +kube_daemonset_status_number_ready{namespace="kube-system",daemonset="kube-proxy"} 1 +# HELP kube_daemonset_status_number_unavailable The number of nodes that should be running the daemon pod and have none of the daemon pod running and available +# TYPE kube_daemonset_status_number_unavailable gauge +kube_daemonset_status_number_unavailable{namespace="kube-system",daemonset="kube-proxy"} 0 +# HELP kube_daemonset_updated_number_scheduled The total number of nodes that are running updated daemon pod +# TYPE kube_daemonset_updated_number_scheduled gauge +kube_daemonset_updated_number_scheduled{namespace="kube-system",daemonset="kube-proxy"} 1 +# HELP kube_daemonset_metadata_generation Sequence number representing a specific generation of the desired state. +# TYPE kube_daemonset_metadata_generation gauge +kube_daemonset_metadata_generation{namespace="kube-system",daemonset="kube-proxy"} 2 +# HELP kube_daemonset_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_daemonset_labels gauge +kube_daemonset_labels{namespace="kube-system",daemonset="kube-proxy",label_k8s_app="kube-proxy"} 1 +# HELP kube_deployment_created Unix creation timestamp +# TYPE kube_deployment_created gauge +kube_deployment_created{namespace="kube-system",deployment="kube-state-metrics"} 1.568622119e+09 +kube_deployment_created{namespace="kube-system",deployment="coredns"} 1.567009606e+09 +# HELP kube_deployment_status_replicas The number of replicas per deployment. +# TYPE kube_deployment_status_replicas gauge +kube_deployment_status_replicas{namespace="kube-system",deployment="kube-state-metrics"} 1 +kube_deployment_status_replicas{namespace="kube-system",deployment="coredns"} 2 +# HELP kube_deployment_status_replicas_available The number of available replicas per deployment. +# TYPE kube_deployment_status_replicas_available gauge +kube_deployment_status_replicas_available{namespace="kube-system",deployment="kube-state-metrics"} 1 +kube_deployment_status_replicas_available{namespace="kube-system",deployment="coredns"} 2 +# HELP kube_deployment_status_replicas_unavailable The number of unavailable replicas per deployment. +# TYPE kube_deployment_status_replicas_unavailable gauge +kube_deployment_status_replicas_unavailable{namespace="kube-system",deployment="kube-state-metrics"} 0 +kube_deployment_status_replicas_unavailable{namespace="kube-system",deployment="coredns"} 0 +# HELP kube_deployment_status_replicas_updated The number of updated replicas per deployment. +# TYPE kube_deployment_status_replicas_updated gauge +kube_deployment_status_replicas_updated{namespace="kube-system",deployment="kube-state-metrics"} 1 +kube_deployment_status_replicas_updated{namespace="kube-system",deployment="coredns"} 2 +# HELP kube_deployment_status_observed_generation The generation observed by the deployment controller. +# TYPE kube_deployment_status_observed_generation gauge +kube_deployment_status_observed_generation{namespace="kube-system",deployment="kube-state-metrics"} 1 +kube_deployment_status_observed_generation{namespace="kube-system",deployment="coredns"} 4 +# HELP kube_deployment_spec_replicas Number of desired pods for a deployment. +# TYPE kube_deployment_spec_replicas gauge +kube_deployment_spec_replicas{namespace="kube-system",deployment="kube-state-metrics"} 1 +kube_deployment_spec_replicas{namespace="kube-system",deployment="coredns"} 2 +# HELP kube_deployment_spec_paused Whether the deployment is paused and will not be processed by the deployment controller. +# TYPE kube_deployment_spec_paused gauge +kube_deployment_spec_paused{namespace="kube-system",deployment="kube-state-metrics"} 0 +kube_deployment_spec_paused{namespace="kube-system",deployment="coredns"} 0 +# HELP kube_deployment_spec_strategy_rollingupdate_max_unavailable Maximum number of unavailable replicas during a rolling update of a deployment. +# TYPE kube_deployment_spec_strategy_rollingupdate_max_unavailable gauge +kube_deployment_spec_strategy_rollingupdate_max_unavailable{namespace="kube-system",deployment="kube-state-metrics"} 1 +kube_deployment_spec_strategy_rollingupdate_max_unavailable{namespace="kube-system",deployment="coredns"} 1 +# HELP kube_deployment_spec_strategy_rollingupdate_max_surge Maximum number of replicas that can be scheduled above the desired number of replicas during a rolling update of a deployment. +# TYPE kube_deployment_spec_strategy_rollingupdate_max_surge gauge +kube_deployment_spec_strategy_rollingupdate_max_surge{namespace="kube-system",deployment="coredns"} 1 +kube_deployment_spec_strategy_rollingupdate_max_surge{namespace="kube-system",deployment="kube-state-metrics"} 1 +# HELP kube_deployment_metadata_generation Sequence number representing a specific generation of the desired state. +# TYPE kube_deployment_metadata_generation gauge +kube_deployment_metadata_generation{namespace="kube-system",deployment="kube-state-metrics"} 1 +kube_deployment_metadata_generation{namespace="kube-system",deployment="coredns"} 4 +# HELP kube_deployment_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_deployment_labels gauge +kube_deployment_labels{namespace="kube-system",deployment="kube-state-metrics",label_k8s_app="kube-state-metrics"} 1 +kube_deployment_labels{namespace="kube-system",deployment="coredns",label_k8s_app="kube-dns"} 1 +# HELP kube_endpoint_info Information about endpoint. +# TYPE kube_endpoint_info gauge +kube_endpoint_info{namespace="kube-system",endpoint="kube-state-metrics"} 1 +kube_endpoint_info{namespace="kube-system",endpoint="kube-scheduler"} 1 +kube_endpoint_info{namespace="default",endpoint="willsucceed"} 1 +kube_endpoint_info{namespace="default",endpoint="willfail"} 1 +kube_endpoint_info{namespace="rqtest",endpoint="willsucceed"} 1 +kube_endpoint_info{namespace="default",endpoint="kubernetes"} 1 +kube_endpoint_info{namespace="kube-system",endpoint="kube-controller-manager"} 1 +kube_endpoint_info{namespace="kube-system",endpoint="kube-dns"} 1 +kube_endpoint_info{namespace="default",endpoint="my-nginx"} 1 +# HELP kube_endpoint_created Unix creation timestamp +# TYPE kube_endpoint_created gauge +kube_endpoint_created{namespace="default",endpoint="kubernetes"} 1.567009602e+09 +kube_endpoint_created{namespace="kube-system",endpoint="kube-controller-manager"} 1.567009603e+09 +kube_endpoint_created{namespace="kube-system",endpoint="kube-dns"} 1.567009612e+09 +kube_endpoint_created{namespace="default",endpoint="my-nginx"} 1.567783021e+09 +kube_endpoint_created{namespace="kube-system",endpoint="kube-state-metrics"} 1.568195118e+09 +kube_endpoint_created{namespace="kube-system",endpoint="kube-scheduler"} 1.567009604e+09 +kube_endpoint_created{namespace="default",endpoint="willsucceed"} 1.568629567e+09 +kube_endpoint_created{namespace="default",endpoint="willfail"} 1.568629567e+09 +kube_endpoint_created{namespace="rqtest",endpoint="willsucceed"} 1.568629886e+09 +# HELP kube_endpoint_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_endpoint_labels gauge +kube_endpoint_labels{namespace="kube-system",endpoint="kube-state-metrics",label_k8s_app="kube-state-metrics"} 1 +kube_endpoint_labels{namespace="kube-system",endpoint="kube-scheduler"} 1 +kube_endpoint_labels{namespace="default",endpoint="willsucceed"} 1 +kube_endpoint_labels{namespace="default",endpoint="willfail"} 1 +kube_endpoint_labels{namespace="rqtest",endpoint="willsucceed"} 1 +kube_endpoint_labels{namespace="default",endpoint="kubernetes"} 1 +kube_endpoint_labels{namespace="kube-system",endpoint="kube-controller-manager"} 1 +kube_endpoint_labels{namespace="kube-system",endpoint="kube-dns",label_k8s_app="kube-dns",label_kubernetes_io_cluster_service="true",label_kubernetes_io_name="KubeDNS"} 1 +kube_endpoint_labels{namespace="default",endpoint="my-nginx",label_app="my-nginx"} 1 +# HELP kube_endpoint_address_available Number of addresses available in endpoint. +# TYPE kube_endpoint_address_available gauge +kube_endpoint_address_available{namespace="kube-system",endpoint="kube-scheduler"} 0 +kube_endpoint_address_available{namespace="default",endpoint="willsucceed"} 0 +kube_endpoint_address_available{namespace="default",endpoint="willfail"} 0 +kube_endpoint_address_available{namespace="rqtest",endpoint="willsucceed"} 0 +kube_endpoint_address_available{namespace="kube-system",endpoint="kube-state-metrics"} 2 +kube_endpoint_address_available{namespace="kube-system",endpoint="kube-controller-manager"} 0 +kube_endpoint_address_available{namespace="kube-system",endpoint="kube-dns"} 6 +kube_endpoint_address_available{namespace="default",endpoint="my-nginx"} 0 +kube_endpoint_address_available{namespace="default",endpoint="kubernetes"} 1 +# HELP kube_endpoint_address_not_ready Number of addresses not ready in endpoint +# TYPE kube_endpoint_address_not_ready gauge +kube_endpoint_address_not_ready{namespace="default",endpoint="kubernetes"} 0 +kube_endpoint_address_not_ready{namespace="kube-system",endpoint="kube-controller-manager"} 0 +kube_endpoint_address_not_ready{namespace="kube-system",endpoint="kube-dns"} 0 +kube_endpoint_address_not_ready{namespace="default",endpoint="my-nginx"} 0 +kube_endpoint_address_not_ready{namespace="kube-system",endpoint="kube-state-metrics"} 0 +kube_endpoint_address_not_ready{namespace="kube-system",endpoint="kube-scheduler"} 0 +kube_endpoint_address_not_ready{namespace="default",endpoint="willsucceed"} 0 +kube_endpoint_address_not_ready{namespace="default",endpoint="willfail"} 0 +kube_endpoint_address_not_ready{namespace="rqtest",endpoint="willsucceed"} 0 +# HELP kube_hpa_metadata_generation The generation observed by the HorizontalPodAutoscaler controller. +# TYPE kube_hpa_metadata_generation gauge +# HELP kube_hpa_spec_max_replicas Upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. +# TYPE kube_hpa_spec_max_replicas gauge +# HELP kube_hpa_spec_min_replicas Lower limit for the number of pods that can be set by the autoscaler, default 1. +# TYPE kube_hpa_spec_min_replicas gauge +# HELP kube_hpa_status_current_replicas Current number of replicas of pods managed by this autoscaler. +# TYPE kube_hpa_status_current_replicas gauge +# HELP kube_hpa_status_desired_replicas Desired number of replicas of pods managed by this autoscaler. +# TYPE kube_hpa_status_desired_replicas gauge +# HELP kube_hpa_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_hpa_labels gauge +# HELP kube_hpa_status_condition The condition of this autoscaler. +# TYPE kube_hpa_status_condition gauge +# HELP kube_ingress_info Information about ingress. +# TYPE kube_ingress_info gauge +# HELP kube_ingress_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_ingress_labels gauge +# HELP kube_ingress_created Unix creation timestamp +# TYPE kube_ingress_created gauge +# HELP kube_ingress_metadata_resource_version Resource version representing a specific version of ingress. +# TYPE kube_ingress_metadata_resource_version gauge +# HELP kube_ingress_path Ingress host, paths and backend service information. +# TYPE kube_ingress_path gauge +# HELP kube_job_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_job_labels gauge +# HELP kube_job_info Information about job. +# TYPE kube_job_info gauge +# HELP kube_job_created Unix creation timestamp +# TYPE kube_job_created gauge +# HELP kube_job_spec_parallelism The maximum desired number of pods the job should run at any given time. +# TYPE kube_job_spec_parallelism gauge +# HELP kube_job_spec_completions The desired number of successfully finished pods the job should be run with. +# TYPE kube_job_spec_completions gauge +# HELP kube_job_spec_active_deadline_seconds The duration in seconds relative to the startTime that the job may be active before the system tries to terminate it. +# TYPE kube_job_spec_active_deadline_seconds gauge +# HELP kube_job_status_succeeded The number of pods which reached Phase Succeeded. +# TYPE kube_job_status_succeeded gauge +# HELP kube_job_status_failed The number of pods which reached Phase Failed. +# TYPE kube_job_status_failed gauge +# HELP kube_job_status_active The number of actively running pods. +# TYPE kube_job_status_active gauge +# HELP kube_job_complete The job has completed its execution. +# TYPE kube_job_complete gauge +# HELP kube_job_failed The job has failed its execution. +# TYPE kube_job_failed gauge +# HELP kube_job_status_start_time StartTime represents time when the job was acknowledged by the Job Manager. +# TYPE kube_job_status_start_time gauge +# HELP kube_job_status_completion_time CompletionTime represents time when the job was completed. +# TYPE kube_job_status_completion_time gauge +# HELP kube_job_owner Information about the Job's owner. +# TYPE kube_job_owner gauge +# HELP kube_limitrange Information about limit range. +# TYPE kube_limitrange gauge +kube_limitrange{namespace="default-mem-example",limitrange="mem-limit-range",resource="memory",type="Container",constraint="default"} 5.36870912e+08 +kube_limitrange{namespace="default-mem-example",limitrange="mem-limit-range",resource="memory",type="Container",constraint="defaultRequest"} 2.68435456e+08 +# HELP kube_limitrange_created Unix creation timestamp +# TYPE kube_limitrange_created gauge +kube_limitrange_created{namespace="default-mem-example",limitrange="mem-limit-range"} 1.567347894e+09 +# HELP kube_namespace_created Unix creation timestamp +# TYPE kube_namespace_created gauge +kube_namespace_created{namespace="kube-system"} 1.567009598e+09 +kube_namespace_created{namespace="pablo"} 1.567347599e+09 +kube_namespace_created{namespace="kube-node-lease"} 1.567689471e+09 +kube_namespace_created{namespace="rqtest"} 1.568629266e+09 +kube_namespace_created{namespace="default"} 1.567009597e+09 +kube_namespace_created{namespace="default-mem-example"} 1.567347623e+09 +kube_namespace_created{namespace="kube-public"} 1.567009602e+09 +# HELP kube_namespace_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_namespace_labels gauge +kube_namespace_labels{namespace="default"} 1 +kube_namespace_labels{namespace="default-mem-example"} 1 +kube_namespace_labels{namespace="kube-public"} 1 +kube_namespace_labels{namespace="kube-system"} 1 +kube_namespace_labels{namespace="pablo"} 1 +kube_namespace_labels{namespace="kube-node-lease"} 1 +kube_namespace_labels{namespace="rqtest"} 1 +# HELP kube_namespace_status_phase kubernetes namespace status phase. +# TYPE kube_namespace_status_phase gauge +kube_namespace_status_phase{namespace="default-mem-example",phase="Active"} 1 +kube_namespace_status_phase{namespace="default-mem-example",phase="Terminating"} 0 +kube_namespace_status_phase{namespace="kube-public",phase="Active"} 1 +kube_namespace_status_phase{namespace="kube-public",phase="Terminating"} 0 +kube_namespace_status_phase{namespace="kube-system",phase="Active"} 1 +kube_namespace_status_phase{namespace="kube-system",phase="Terminating"} 0 +kube_namespace_status_phase{namespace="pablo",phase="Active"} 1 +kube_namespace_status_phase{namespace="pablo",phase="Terminating"} 0 +kube_namespace_status_phase{namespace="kube-node-lease",phase="Active"} 1 +kube_namespace_status_phase{namespace="kube-node-lease",phase="Terminating"} 0 +kube_namespace_status_phase{namespace="rqtest",phase="Active"} 1 +kube_namespace_status_phase{namespace="rqtest",phase="Terminating"} 0 +kube_namespace_status_phase{namespace="default",phase="Active"} 1 +kube_namespace_status_phase{namespace="default",phase="Terminating"} 0 +# HELP kube_node_info Information about a cluster node. +# TYPE kube_node_info gauge +kube_node_info{node="minikube",kernel_version="4.15.0",os_image="Buildroot 2018.05.3",container_runtime_version="docker://18.9.8",kubelet_version="v1.15.2",kubeproxy_version="v1.15.2",provider_id=""} 1 +# HELP kube_node_created Unix creation timestamp +# TYPE kube_node_created gauge +kube_node_created{node="minikube"} 1.567009598e+09 +# HELP kube_node_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_node_labels gauge +kube_node_labels{node="minikube",label_beta_kubernetes_io_arch="amd64",label_beta_kubernetes_io_os="linux",label_kubernetes_io_arch="amd64",label_kubernetes_io_hostname="minikube",label_kubernetes_io_os="linux",label_node_role_kubernetes_io_master=""} 1 +# HELP kube_node_spec_unschedulable Whether a node can schedule new pods. +# TYPE kube_node_spec_unschedulable gauge +kube_node_spec_unschedulable{node="minikube"} 0 +# HELP kube_node_spec_taint The taint of a cluster node. +# TYPE kube_node_spec_taint gauge +# HELP kube_node_status_condition The condition of a cluster node. +# TYPE kube_node_status_condition gauge +kube_node_status_condition{node="minikube",condition="MemoryPressure",status="true"} 0 +kube_node_status_condition{node="minikube",condition="MemoryPressure",status="false"} 1 +kube_node_status_condition{node="minikube",condition="MemoryPressure",status="unknown"} 0 +kube_node_status_condition{node="minikube",condition="DiskPressure",status="true"} 0 +kube_node_status_condition{node="minikube",condition="DiskPressure",status="false"} 1 +kube_node_status_condition{node="minikube",condition="DiskPressure",status="unknown"} 0 +kube_node_status_condition{node="minikube",condition="PIDPressure",status="true"} 0 +kube_node_status_condition{node="minikube",condition="PIDPressure",status="false"} 1 +kube_node_status_condition{node="minikube",condition="PIDPressure",status="unknown"} 0 +kube_node_status_condition{node="minikube",condition="Ready",status="true"} 1 +kube_node_status_condition{node="minikube",condition="Ready",status="false"} 0 +kube_node_status_condition{node="minikube",condition="Ready",status="unknown"} 0 +# HELP kube_node_status_phase The phase the node is currently in. +# TYPE kube_node_status_phase gauge +# HELP kube_node_status_capacity The capacity for different resources of a node. +# TYPE kube_node_status_capacity gauge +kube_node_status_capacity{node="minikube",resource="cpu",unit="core"} 4 +kube_node_status_capacity{node="minikube",resource="ephemeral_storage",unit="byte"} 1.8211606528e+10 +kube_node_status_capacity{node="minikube",resource="hugepages_2Mi",unit="byte"} 0 +kube_node_status_capacity{node="minikube",resource="memory",unit="byte"} 8.361435136e+09 +kube_node_status_capacity{node="minikube",resource="pods",unit="integer"} 110 +# HELP kube_node_status_capacity_pods The total pod resources of the node. +# TYPE kube_node_status_capacity_pods gauge +kube_node_status_capacity_pods{node="minikube"} 110 +# HELP kube_node_status_capacity_cpu_cores The total CPU resources of the node. +# TYPE kube_node_status_capacity_cpu_cores gauge +kube_node_status_capacity_cpu_cores{node="minikube"} 4 +# HELP kube_node_status_capacity_memory_bytes The total memory resources of the node. +# TYPE kube_node_status_capacity_memory_bytes gauge +kube_node_status_capacity_memory_bytes{node="minikube"} 8.361435136e+09 +# HELP kube_node_status_allocatable The allocatable for different resources of a node that are available for scheduling. +# TYPE kube_node_status_allocatable gauge +kube_node_status_allocatable{node="minikube",resource="cpu",unit="core"} 4 +kube_node_status_allocatable{node="minikube",resource="ephemeral_storage",unit="byte"} 1.6390445849e+10 +kube_node_status_allocatable{node="minikube",resource="hugepages_2Mi",unit="byte"} 0 +kube_node_status_allocatable{node="minikube",resource="memory",unit="byte"} 8.256577536e+09 +kube_node_status_allocatable{node="minikube",resource="pods",unit="integer"} 110 +# HELP kube_node_status_allocatable_pods The pod resources of a node that are available for scheduling. +# TYPE kube_node_status_allocatable_pods gauge +kube_node_status_allocatable_pods{node="minikube"} 110 +# HELP kube_node_status_allocatable_cpu_cores The CPU resources of a node that are available for scheduling. +# TYPE kube_node_status_allocatable_cpu_cores gauge +kube_node_status_allocatable_cpu_cores{node="minikube"} 4 +# HELP kube_node_status_allocatable_memory_bytes The memory resources of a node that are available for scheduling. +# TYPE kube_node_status_allocatable_memory_bytes gauge +kube_node_status_allocatable_memory_bytes{node="minikube"} 8.256577536e+09 +# HELP kube_persistentvolumeclaim_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_persistentvolumeclaim_labels gauge +# HELP kube_persistentvolumeclaim_info Information about persistent volume claim. +# TYPE kube_persistentvolumeclaim_info gauge +# HELP kube_persistentvolumeclaim_status_phase The phase the persistent volume claim is currently in. +# TYPE kube_persistentvolumeclaim_status_phase gauge +# HELP kube_persistentvolumeclaim_resource_requests_storage_bytes The capacity of storage requested by the persistent volume claim. +# TYPE kube_persistentvolumeclaim_resource_requests_storage_bytes gauge +# HELP kube_persistentvolumeclaim_access_mode The access mode(s) specified by the persistent volume claim. +# TYPE kube_persistentvolumeclaim_access_mode gauge +# HELP kube_persistentvolume_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_persistentvolume_labels gauge +# HELP kube_persistentvolume_status_phase The phase indicates if a volume is available, bound to a claim, or released by a claim. +# TYPE kube_persistentvolume_status_phase gauge +# HELP kube_persistentvolume_info Information about persistentvolume. +# TYPE kube_persistentvolume_info gauge +# HELP kube_persistentvolume_capacity_bytes Persistentvolume capacity in bytes. +# TYPE kube_persistentvolume_capacity_bytes gauge +# HELP kube_poddisruptionbudget_created Unix creation timestamp +# TYPE kube_poddisruptionbudget_created gauge +# HELP kube_poddisruptionbudget_status_current_healthy Current number of healthy pods +# TYPE kube_poddisruptionbudget_status_current_healthy gauge +# HELP kube_poddisruptionbudget_status_desired_healthy Minimum desired number of healthy pods +# TYPE kube_poddisruptionbudget_status_desired_healthy gauge +# HELP kube_poddisruptionbudget_status_pod_disruptions_allowed Number of pod disruptions that are currently allowed +# TYPE kube_poddisruptionbudget_status_pod_disruptions_allowed gauge +# HELP kube_poddisruptionbudget_status_expected_pods Total number of pods counted by this disruption budget +# TYPE kube_poddisruptionbudget_status_expected_pods gauge +# HELP kube_poddisruptionbudget_status_observed_generation Most recent generation observed when updating this PDB status +# TYPE kube_poddisruptionbudget_status_observed_generation gauge +# HELP kube_pod_info Information about pod. +# TYPE kube_pod_info gauge +kube_pod_info{namespace="kube-system",pod="storage-provisioner",host_ip="10.0.2.15",pod_ip="10.0.2.15",uid="a55a886b-c9b0-11e9-8c8c-080027dc36ee",node="minikube",created_by_kind="",created_by_name="",priority_class=""} 1 +kube_pod_info{namespace="kube-system",pod="kube-addon-manager-minikube",host_ip="10.0.2.15",pod_ip="10.0.2.15",uid="804c0947-e160-4f6f-afa2-c87e97a43a84",node="minikube",created_by_kind="",created_by_name="",priority_class=""} 1 +kube_pod_info{namespace="kube-system",pod="kube-proxy-6dvtf",host_ip="10.0.2.15",pod_ip="10.0.2.15",uid="6efd0863-1af9-4d5e-b124-4600b5edb8db",node="minikube",created_by_kind="DaemonSet",created_by_name="kube-proxy",priority_class="system-node-critical"} 1 +kube_pod_info{namespace="default",pod="stdout-logger",host_ip="10.0.2.15",pod_ip="172.17.0.4",uid="49f54912-cf08-11e9-8c8c-080027dc36ee",node="minikube",created_by_kind="",created_by_name="",priority_class=""} 1 +kube_pod_info{namespace="default",pod="playground",host_ip="10.0.2.15",pod_ip="10.0.2.15",uid="1fe957cf-932f-4381-b847-cc7c173be7c4",node="minikube",created_by_kind="",created_by_name="",priority_class=""} 1 +kube_pod_info{namespace="kube-system",pod="kube-apiserver-minikube",host_ip="10.0.2.15",pod_ip="10.0.2.15",uid="64b87ae5-398f-452d-af8a-76f903944f4d",node="minikube",created_by_kind="",created_by_name="",priority_class="system-cluster-critical"} 1 +kube_pod_info{namespace="default-mem-example",pod="default-mem-demo",host_ip="10.0.2.15",pod_ip="172.17.0.5",uid="664f8f65-ccc4-11e9-8c8c-080027dc36ee",node="minikube",created_by_kind="",created_by_name="",priority_class=""} 1 +kube_pod_info{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",host_ip="10.0.2.15",pod_ip="172.17.0.9",uid="bb432770-52e1-4478-94df-57d12dbd0638",node="minikube",created_by_kind="ReplicaSet",created_by_name="coredns-5c98db65d4",priority_class="system-cluster-critical"} 1 +kube_pod_info{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",host_ip="10.0.2.15",pod_ip="172.17.0.2",uid="8f536064-840c-4dce-8bd2-8783d41e5ed6",node="minikube",created_by_kind="ReplicaSet",created_by_name="kube-state-metrics-6766c6d46b",priority_class=""} 1 +kube_pod_info{namespace="kube-system",pod="etcd-minikube",host_ip="10.0.2.15",pod_ip="10.0.2.15",uid="fd24e4fc-608e-4482-b1f2-bda1b968c6f3",node="minikube",created_by_kind="",created_by_name="",priority_class="system-cluster-critical"} 1 +kube_pod_info{namespace="kube-system",pod="coredns-5c98db65d4-df89f",host_ip="10.0.2.15",pod_ip="172.17.0.8",uid="fcf6c6a0-98a1-4ad5-80c4-990e95046c1c",node="minikube",created_by_kind="ReplicaSet",created_by_name="coredns-5c98db65d4",priority_class="system-cluster-critical"} 1 +kube_pod_info{namespace="kube-system",pod="kube-controller-manager-minikube",host_ip="10.0.2.15",pod_ip="10.0.2.15",uid="aa16fc25-2f4f-4c52-9838-82b6debf9df6",node="minikube",created_by_kind="",created_by_name="",priority_class="system-cluster-critical"} 1 +kube_pod_info{namespace="kube-system",pod="kube-scheduler-minikube",host_ip="10.0.2.15",pod_ip="10.0.2.15",uid="a1c26908-05bd-4eb5-8dc8-f5c9744e4a7b",node="minikube",created_by_kind="",created_by_name="",priority_class="system-cluster-critical"} 1 +# HELP kube_pod_start_time Start time in unix timestamp for a pod. +# TYPE kube_pod_start_time gauge +kube_pod_start_time{namespace="kube-system",pod="kube-scheduler-minikube"} 1.567009586e+09 +kube_pod_start_time{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7"} 1.567689495e+09 +kube_pod_start_time{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql"} 1.568622119e+09 +kube_pod_start_time{namespace="kube-system",pod="etcd-minikube"} 1.567689466e+09 +kube_pod_start_time{namespace="kube-system",pod="coredns-5c98db65d4-df89f"} 1.567689495e+09 +kube_pod_start_time{namespace="kube-system",pod="kube-controller-manager-minikube"} 1.567689466e+09 +kube_pod_start_time{namespace="default-mem-example",pod="default-mem-demo"} 1.567347951e+09 +kube_pod_start_time{namespace="kube-system",pod="storage-provisioner"} 1.567009613e+09 +kube_pod_start_time{namespace="kube-system",pod="kube-addon-manager-minikube"} 1.567689466e+09 +kube_pod_start_time{namespace="kube-system",pod="kube-proxy-6dvtf"} 1.567689506e+09 +kube_pod_start_time{namespace="default",pod="stdout-logger"} 1.567597011e+09 +kube_pod_start_time{namespace="default",pod="playground"} 1.567693987e+09 +kube_pod_start_time{namespace="kube-system",pod="kube-apiserver-minikube"} 1.567689466e+09 +# HELP kube_pod_completion_time Completion time in unix timestamp for a pod. +# TYPE kube_pod_completion_time gauge +# HELP kube_pod_owner Information about the Pod's owner. +# TYPE kube_pod_owner gauge +kube_pod_owner{namespace="default-mem-example",pod="default-mem-demo",owner_kind="",owner_name="",owner_is_controller=""} 1 +kube_pod_owner{namespace="kube-system",pod="storage-provisioner",owner_kind="",owner_name="",owner_is_controller=""} 1 +kube_pod_owner{namespace="kube-system",pod="kube-addon-manager-minikube",owner_kind="",owner_name="",owner_is_controller=""} 1 +kube_pod_owner{namespace="kube-system",pod="kube-proxy-6dvtf",owner_kind="DaemonSet",owner_name="kube-proxy",owner_is_controller="true"} 1 +kube_pod_owner{namespace="default",pod="stdout-logger",owner_kind="",owner_name="",owner_is_controller=""} 1 +kube_pod_owner{namespace="default",pod="playground",owner_kind="",owner_name="",owner_is_controller=""} 1 +kube_pod_owner{namespace="kube-system",pod="kube-apiserver-minikube",owner_kind="",owner_name="",owner_is_controller=""} 1 +kube_pod_owner{namespace="kube-system",pod="kube-scheduler-minikube",owner_kind="",owner_name="",owner_is_controller=""} 1 +kube_pod_owner{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",owner_kind="ReplicaSet",owner_name="coredns-5c98db65d4",owner_is_controller="true"} 1 +kube_pod_owner{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",owner_kind="ReplicaSet",owner_name="kube-state-metrics-6766c6d46b",owner_is_controller="true"} 1 +kube_pod_owner{namespace="kube-system",pod="etcd-minikube",owner_kind="",owner_name="",owner_is_controller=""} 1 +kube_pod_owner{namespace="kube-system",pod="coredns-5c98db65d4-df89f",owner_kind="ReplicaSet",owner_name="coredns-5c98db65d4",owner_is_controller="true"} 1 +kube_pod_owner{namespace="kube-system",pod="kube-controller-manager-minikube",owner_kind="",owner_name="",owner_is_controller=""} 1 +# HELP kube_pod_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_pod_labels gauge +kube_pod_labels{namespace="default-mem-example",pod="default-mem-demo"} 1 +kube_pod_labels{namespace="kube-system",pod="storage-provisioner",label_addonmanager_kubernetes_io_mode="Reconcile",label_integration_test="storage-provisioner"} 1 +kube_pod_labels{namespace="kube-system",pod="kube-addon-manager-minikube",label_component="kube-addon-manager",label_kubernetes_io_minikube_addons="addon-manager",label_version="v9.0"} 1 +kube_pod_labels{namespace="kube-system",pod="kube-proxy-6dvtf",label_controller_revision_hash="84c6b844cd",label_k8s_app="kube-proxy",label_pod_template_generation="2"} 1 +kube_pod_labels{namespace="default",pod="stdout-logger",label_my_label_uses_underscores="ha.ha.ha"} 1 +kube_pod_labels{namespace="default",pod="playground"} 1 +kube_pod_labels{namespace="kube-system",pod="kube-apiserver-minikube",label_component="kube-apiserver",label_tier="control-plane"} 1 +kube_pod_labels{namespace="kube-system",pod="kube-scheduler-minikube",label_component="kube-scheduler",label_tier="control-plane"} 1 +kube_pod_labels{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",label_k8s_app="kube-dns",label_pod_template_hash="5c98db65d4"} 1 +kube_pod_labels{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",label_k8s_app="kube-state-metrics",label_pod_template_hash="6766c6d46b"} 1 +kube_pod_labels{namespace="kube-system",pod="etcd-minikube",label_component="etcd",label_tier="control-plane"} 1 +kube_pod_labels{namespace="kube-system",pod="coredns-5c98db65d4-df89f",label_k8s_app="kube-dns",label_pod_template_hash="5c98db65d4"} 1 +kube_pod_labels{namespace="kube-system",pod="kube-controller-manager-minikube",label_component="kube-controller-manager",label_tier="control-plane"} 1 +# HELP kube_pod_created Unix creation timestamp +# TYPE kube_pod_created gauge +kube_pod_created{namespace="default",pod="stdout-logger"} 1.567597011e+09 +kube_pod_created{namespace="default",pod="playground"} 1.567693987e+09 +kube_pod_created{namespace="kube-system",pod="kube-apiserver-minikube"} 1.567689473e+09 +kube_pod_created{namespace="default-mem-example",pod="default-mem-demo"} 1.567347951e+09 +kube_pod_created{namespace="kube-system",pod="storage-provisioner"} 1.567009613e+09 +kube_pod_created{namespace="kube-system",pod="kube-addon-manager-minikube"} 1.567689472e+09 +kube_pod_created{namespace="kube-system",pod="kube-proxy-6dvtf"} 1.567689506e+09 +kube_pod_created{namespace="kube-system",pod="coredns-5c98db65d4-df89f"} 1.567689495e+09 +kube_pod_created{namespace="kube-system",pod="kube-controller-manager-minikube"} 1.568621217e+09 +kube_pod_created{namespace="kube-system",pod="kube-scheduler-minikube"} 1.567689472e+09 +kube_pod_created{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7"} 1.567689495e+09 +kube_pod_created{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql"} 1.568622119e+09 +kube_pod_created{namespace="kube-system",pod="etcd-minikube"} 1.567689472e+09 +# HELP kube_pod_status_scheduled_time Unix timestamp when pod moved into scheduled status +# TYPE kube_pod_status_scheduled_time gauge +kube_pod_status_scheduled_time{namespace="kube-system",pod="kube-addon-manager-minikube"} 1.567689466e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="kube-proxy-6dvtf"} 1.567689506e+09 +kube_pod_status_scheduled_time{namespace="default",pod="stdout-logger"} 1.567597011e+09 +kube_pod_status_scheduled_time{namespace="default",pod="playground"} 1.567693987e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="kube-apiserver-minikube"} 1.567689466e+09 +kube_pod_status_scheduled_time{namespace="default-mem-example",pod="default-mem-demo"} 1.567347951e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="storage-provisioner"} 1.567009613e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql"} 1.568622119e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="etcd-minikube"} 1.567689466e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="coredns-5c98db65d4-df89f"} 1.567689495e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="kube-controller-manager-minikube"} 1.567689466e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="kube-scheduler-minikube"} 1.567009586e+09 +kube_pod_status_scheduled_time{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7"} 1.567689495e+09 +# HELP kube_pod_status_phase The pods current phase. +# TYPE kube_pod_status_phase gauge +kube_pod_status_phase{namespace="kube-system",pod="etcd-minikube",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="etcd-minikube",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="etcd-minikube",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="etcd-minikube",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="etcd-minikube",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-df89f",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-df89f",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-df89f",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-df89f",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-df89f",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-controller-manager-minikube",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-controller-manager-minikube",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-controller-manager-minikube",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-controller-manager-minikube",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="kube-controller-manager-minikube",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-scheduler-minikube",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-scheduler-minikube",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-scheduler-minikube",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-scheduler-minikube",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="kube-scheduler-minikube",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-proxy-6dvtf",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-proxy-6dvtf",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-proxy-6dvtf",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-proxy-6dvtf",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="kube-proxy-6dvtf",phase="Unknown"} 0 +kube_pod_status_phase{namespace="default",pod="stdout-logger",phase="Pending"} 0 +kube_pod_status_phase{namespace="default",pod="stdout-logger",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="default",pod="stdout-logger",phase="Failed"} 0 +kube_pod_status_phase{namespace="default",pod="stdout-logger",phase="Running"} 1 +kube_pod_status_phase{namespace="default",pod="stdout-logger",phase="Unknown"} 0 +kube_pod_status_phase{namespace="default",pod="playground",phase="Pending"} 0 +kube_pod_status_phase{namespace="default",pod="playground",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="default",pod="playground",phase="Failed"} 0 +kube_pod_status_phase{namespace="default",pod="playground",phase="Running"} 1 +kube_pod_status_phase{namespace="default",pod="playground",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-apiserver-minikube",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-apiserver-minikube",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-apiserver-minikube",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-apiserver-minikube",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="kube-apiserver-minikube",phase="Unknown"} 0 +kube_pod_status_phase{namespace="default-mem-example",pod="default-mem-demo",phase="Pending"} 0 +kube_pod_status_phase{namespace="default-mem-example",pod="default-mem-demo",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="default-mem-example",pod="default-mem-demo",phase="Failed"} 0 +kube_pod_status_phase{namespace="default-mem-example",pod="default-mem-demo",phase="Running"} 1 +kube_pod_status_phase{namespace="default-mem-example",pod="default-mem-demo",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="storage-provisioner",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="storage-provisioner",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="storage-provisioner",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="storage-provisioner",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="storage-provisioner",phase="Unknown"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-addon-manager-minikube",phase="Pending"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-addon-manager-minikube",phase="Succeeded"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-addon-manager-minikube",phase="Failed"} 0 +kube_pod_status_phase{namespace="kube-system",pod="kube-addon-manager-minikube",phase="Running"} 1 +kube_pod_status_phase{namespace="kube-system",pod="kube-addon-manager-minikube",phase="Unknown"} 0 +# HELP kube_pod_status_ready Describes whether the pod is ready to serve requests. +# TYPE kube_pod_status_ready gauge +kube_pod_status_ready{namespace="default-mem-example",pod="default-mem-demo",condition="true"} 1 +kube_pod_status_ready{namespace="default-mem-example",pod="default-mem-demo",condition="false"} 0 +kube_pod_status_ready{namespace="default-mem-example",pod="default-mem-demo",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="storage-provisioner",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="storage-provisioner",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="storage-provisioner",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-addon-manager-minikube",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="kube-addon-manager-minikube",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-addon-manager-minikube",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-proxy-6dvtf",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="kube-proxy-6dvtf",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-proxy-6dvtf",condition="unknown"} 0 +kube_pod_status_ready{namespace="default",pod="stdout-logger",condition="true"} 1 +kube_pod_status_ready{namespace="default",pod="stdout-logger",condition="false"} 0 +kube_pod_status_ready{namespace="default",pod="stdout-logger",condition="unknown"} 0 +kube_pod_status_ready{namespace="default",pod="playground",condition="true"} 1 +kube_pod_status_ready{namespace="default",pod="playground",condition="false"} 0 +kube_pod_status_ready{namespace="default",pod="playground",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-apiserver-minikube",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="kube-apiserver-minikube",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-apiserver-minikube",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-scheduler-minikube",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="kube-scheduler-minikube",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-scheduler-minikube",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="etcd-minikube",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="etcd-minikube",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="etcd-minikube",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="coredns-5c98db65d4-df89f",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="coredns-5c98db65d4-df89f",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="coredns-5c98db65d4-df89f",condition="unknown"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-controller-manager-minikube",condition="true"} 1 +kube_pod_status_ready{namespace="kube-system",pod="kube-controller-manager-minikube",condition="false"} 0 +kube_pod_status_ready{namespace="kube-system",pod="kube-controller-manager-minikube",condition="unknown"} 0 +# HELP kube_pod_status_scheduled Describes the status of the scheduling process for the pod. +# TYPE kube_pod_status_scheduled gauge +kube_pod_status_scheduled{namespace="default-mem-example",pod="default-mem-demo",condition="true"} 1 +kube_pod_status_scheduled{namespace="default-mem-example",pod="default-mem-demo",condition="false"} 0 +kube_pod_status_scheduled{namespace="default-mem-example",pod="default-mem-demo",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="storage-provisioner",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="storage-provisioner",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="storage-provisioner",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-addon-manager-minikube",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-addon-manager-minikube",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-addon-manager-minikube",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-proxy-6dvtf",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-proxy-6dvtf",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-proxy-6dvtf",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="default",pod="stdout-logger",condition="true"} 1 +kube_pod_status_scheduled{namespace="default",pod="stdout-logger",condition="false"} 0 +kube_pod_status_scheduled{namespace="default",pod="stdout-logger",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="default",pod="playground",condition="true"} 1 +kube_pod_status_scheduled{namespace="default",pod="playground",condition="false"} 0 +kube_pod_status_scheduled{namespace="default",pod="playground",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-apiserver-minikube",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-apiserver-minikube",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-apiserver-minikube",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-scheduler-minikube",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-scheduler-minikube",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-scheduler-minikube",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="etcd-minikube",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="etcd-minikube",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="etcd-minikube",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="coredns-5c98db65d4-df89f",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="coredns-5c98db65d4-df89f",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="coredns-5c98db65d4-df89f",condition="unknown"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-controller-manager-minikube",condition="true"} 1 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-controller-manager-minikube",condition="false"} 0 +kube_pod_status_scheduled{namespace="kube-system",pod="kube-controller-manager-minikube",condition="unknown"} 0 +# HELP kube_pod_container_info Information about a container in a pod. +# TYPE kube_pod_container_info gauge +kube_pod_container_info{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",image="k8s.gcr.io/kube-addon-manager:v9.0",image_id="docker://sha256:119701e77cbc4c6cb32c05d9c39050127eb865c1a9f21f830685379b6b65d6ae",container_id="docker://ae44f6171c1a602d5a034049cc98ed90d30b7013f4ec7a865404bfd6f821e3d6"} 1 +kube_pod_container_info{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",image="k8s.gcr.io/kube-proxy:v1.15.2",image_id="docker-pullable://k8s.gcr.io/kube-proxy@sha256:626f983f25f8b7799ca7ab001fd0985a72c2643c0acb877d2888c0aa4fcbdf56",container_id="docker://03d9bd9ed242a1b31c273a201aa6701d991cbd6ae5d7ff180d9d7e326efb48a9"} 1 +kube_pod_container_info{namespace="default",pod="stdout-logger",container="alpine",image="alpine:3.2",image_id="docker-pullable://alpine@sha256:e9a2035f9d0d7cee1cdd445f5bfa0c5c646455ee26f14565dce23cf2d2de7570",container_id="docker://be919c5f2a474dc6bbeca0835ffacd639937a060a0904846dc9f52e90c742d0a"} 1 +kube_pod_container_info{namespace="default",pod="playground",container="ubuntu",image="ubuntu:latest",image_id="docker-pullable://ubuntu@sha256:d1d454df0f579c6be4d8161d227462d69e163a8ff9d20a847533989cf0c94d90",container_id="docker://b17b21e347f9448c8b0c2edc1ed8d959bd9079e7befb3281c7a41fedcaecf38f"} 1 +kube_pod_container_info{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",image="k8s.gcr.io/kube-apiserver:v1.15.2",image_id="docker-pullable://k8s.gcr.io/kube-apiserver@sha256:5fae387bacf1def6c3915b4a3035cf8c8a4d06158b2e676721776d3d4afc05a2",container_id="docker://da080618e76a3dbb812b35c92517096fa12999fdc9ac47c8585380a27acc559f"} 1 +kube_pod_container_info{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",image="nginx:latest",image_id="docker-pullable://nginx@sha256:53ddb41e46de3d63376579acf46f9a41a8d7de33645db47a486de9769201fec9",container_id="docker://3c72f4f311796c758011a04d05b3fb899644ec085850dbcbe885b5144328478f"} 1 +kube_pod_container_info{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",image="gcr.io/k8s-minikube/storage-provisioner:v1.8.1",image_id="docker://sha256:4689081edb103a9e8174bf23a255bfbe0b2d9ed82edc907abab6989d1c60f02c",container_id="docker://0e4b04eaf652840ac51e584dd385c10fbcc137d1a5eee6329967f922b82b5a5a"} 1 +kube_pod_container_info{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",image="quay.io/coreos/kube-state-metrics:v1.7.2",image_id="docker-pullable://quay.io/coreos/kube-state-metrics@sha256:99a3e3297e281fec09fe850d6d4bccf4d9fd58ff62a5b37764d8a8bd1e79bd14",container_id="docker://fa1137e3a4047845b6bcdce50eb5934373b52200805be55a076407c96a9f5c2a"} 1 +kube_pod_container_info{namespace="kube-system",pod="etcd-minikube",container="etcd",image="k8s.gcr.io/etcd:3.3.10",image_id="docker-pullable://k8s.gcr.io/etcd@sha256:17da501f5d2a675be46040422a27b7cc21b8a43895ac998b171db1c346f361f7",container_id="docker://27c011eefe928f7ceb19808c699dc27770ddfd64397e0f9e7f2b850366e52b85"} 1 +kube_pod_container_info{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",image="k8s.gcr.io/coredns:1.3.1",image_id="docker-pullable://k8s.gcr.io/coredns@sha256:02382353821b12c21b062c59184e227e001079bb13ebd01f9d3270ba0fcbf1e4",container_id="docker://9c66d133e5a614edfe9f71997247346110b4488096f34e4963a68e2d36c06c67"} 1 +kube_pod_container_info{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",image="k8s.gcr.io/kube-controller-manager:v1.15.2",image_id="docker-pullable://k8s.gcr.io/kube-controller-manager@sha256:7d3fc48cf83aa0a7b8f129fa4255bb5530908e1a5b194be269ea8329b48e9598",container_id="docker://f90216c30dc12b460eef9e099d043f5c8c30b31677cc23cfb4870242086acecd"} 1 +kube_pod_container_info{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",image="k8s.gcr.io/kube-scheduler:v1.15.2",image_id="docker-pullable://k8s.gcr.io/kube-scheduler@sha256:8fd3c3251f07234a234469e201900e4274726f1fe0d5dc6fb7da911f1c851a1a",container_id="docker://4f3d2d395e04b6d8ff9aa74bc5bb558857780861b17dd888310a4bb27c383b4b"} 1 +kube_pod_container_info{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",image="k8s.gcr.io/coredns:1.3.1",image_id="docker-pullable://k8s.gcr.io/coredns@sha256:02382353821b12c21b062c59184e227e001079bb13ebd01f9d3270ba0fcbf1e4",container_id="docker://839b2b253ab43db87019fbaa0f8e836d31c757d40f44ce5e8678b3bb1573c719"} 1 +# HELP kube_pod_init_container_info Information about an init container in a pod. +# TYPE kube_pod_init_container_info gauge +# HELP kube_pod_container_status_waiting Describes whether the container is currently in waiting state. +# TYPE kube_pod_container_status_waiting gauge +kube_pod_container_status_waiting{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="etcd-minikube",container="etcd"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns"} 0 +kube_pod_container_status_waiting{namespace="default",pod="playground",container="ubuntu"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver"} 0 +kube_pod_container_status_waiting{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager"} 0 +kube_pod_container_status_waiting{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy"} 0 +kube_pod_container_status_waiting{namespace="default",pod="stdout-logger",container="alpine"} 0 +# HELP kube_pod_init_container_status_waiting Describes whether the init container is currently in waiting state. +# TYPE kube_pod_init_container_status_waiting gauge +# HELP kube_pod_container_status_waiting_reason Describes the reason the container is currently in waiting state. +# TYPE kube_pod_container_status_waiting_reason gauge +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="stdout-logger",container="alpine",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="stdout-logger",container="alpine",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="stdout-logger",container="alpine",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="stdout-logger",container="alpine",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="stdout-logger",container="alpine",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="stdout-logger",container="alpine",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="stdout-logger",container="alpine",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="playground",container="ubuntu",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="playground",container="ubuntu",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="playground",container="ubuntu",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="playground",container="ubuntu",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="playground",container="ubuntu",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="playground",container="ubuntu",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="default",pod="playground",container="ubuntu",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="InvalidImageName"} 0 +kube_pod_container_status_waiting_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="ContainerCreating"} 0 +kube_pod_container_status_waiting_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="CrashLoopBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="CreateContainerConfigError"} 0 +kube_pod_container_status_waiting_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="ErrImagePull"} 0 +kube_pod_container_status_waiting_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="ImagePullBackOff"} 0 +kube_pod_container_status_waiting_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="CreateContainerError"} 0 +kube_pod_container_status_waiting_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="InvalidImageName"} 0 +# HELP kube_pod_init_container_status_waiting_reason Describes the reason the init container is currently in waiting state. +# TYPE kube_pod_init_container_status_waiting_reason gauge +# HELP kube_pod_container_status_running Describes whether the container is currently in running state. +# TYPE kube_pod_container_status_running gauge +kube_pod_container_status_running{namespace="kube-system",pod="etcd-minikube",container="etcd"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy"} 1 +kube_pod_container_status_running{namespace="default",pod="stdout-logger",container="alpine"} 1 +kube_pod_container_status_running{namespace="default",pod="playground",container="ubuntu"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver"} 1 +kube_pod_container_status_running{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner"} 1 +kube_pod_container_status_running{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager"} 1 +# HELP kube_pod_init_container_status_running Describes whether the init container is currently in running state. +# TYPE kube_pod_init_container_status_running gauge +# HELP kube_pod_container_status_terminated Describes whether the container is currently in terminated state. +# TYPE kube_pod_container_status_terminated gauge +kube_pod_container_status_terminated{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy"} 0 +kube_pod_container_status_terminated{namespace="default",pod="stdout-logger",container="alpine"} 0 +kube_pod_container_status_terminated{namespace="default",pod="playground",container="ubuntu"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver"} 0 +kube_pod_container_status_terminated{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="etcd-minikube",container="etcd"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns"} 0 +kube_pod_container_status_terminated{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics"} 0 +# HELP kube_pod_init_container_status_terminated Describes whether the init container is currently in terminated state. +# TYPE kube_pod_init_container_status_terminated gauge +# HELP kube_pod_container_status_terminated_reason Describes the reason the container is currently in terminated state. +# TYPE kube_pod_container_status_terminated_reason gauge +kube_pod_container_status_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="DeadlineExceeded"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="OOMKilled"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="Completed"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="Error"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="ContainerCannotRun"} 0 +kube_pod_container_status_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="DeadlineExceeded"} 0 +# HELP kube_pod_init_container_status_terminated_reason Describes the reason the init container is currently in terminated state. +# TYPE kube_pod_init_container_status_terminated_reason gauge +# HELP kube_pod_container_status_last_terminated_reason Describes the last reason the container was in terminated state. +# TYPE kube_pod_container_status_last_terminated_reason gauge +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="Error"} 1 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="Error"} 1 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="Error"} 1 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="stdout-logger",container="alpine",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default",pod="playground",container="ubuntu",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="Completed"} 1 +kube_pod_container_status_last_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="etcd-minikube",container="etcd",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="Error"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",reason="DeadlineExceeded"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="OOMKilled"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="Completed"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="Error"} 1 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="ContainerCannotRun"} 0 +kube_pod_container_status_last_terminated_reason{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",reason="DeadlineExceeded"} 0 +# HELP kube_pod_init_container_status_last_terminated_reason Describes the last reason the init container was in terminated state. +# TYPE kube_pod_init_container_status_last_terminated_reason gauge +# HELP kube_pod_container_status_ready Describes whether the containers readiness check succeeded. +# TYPE kube_pod_container_status_ready gauge +kube_pod_container_status_ready{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="etcd-minikube",container="etcd"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager"} 1 +kube_pod_container_status_ready{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy"} 1 +kube_pod_container_status_ready{namespace="default",pod="stdout-logger",container="alpine"} 1 +kube_pod_container_status_ready{namespace="default",pod="playground",container="ubuntu"} 1 +kube_pod_container_status_ready{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver"} 1 +# HELP kube_pod_init_container_status_ready Describes whether the init containers readiness check succeeded. +# TYPE kube_pod_init_container_status_ready gauge +# HELP kube_pod_container_status_restarts_total The number of container restarts per container. +# TYPE kube_pod_container_status_restarts_total counter +kube_pod_container_status_restarts_total{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns"} 0 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager"} 0 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler"} 2 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns"} 0 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="kube-state-metrics-6766c6d46b-b47ql",container="kube-state-metrics"} 0 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="etcd-minikube",container="etcd"} 0 +kube_pod_container_status_restarts_total{namespace="default",pod="stdout-logger",container="alpine"} 1 +kube_pod_container_status_restarts_total{namespace="default",pod="playground",container="ubuntu"} 0 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver"} 0 +kube_pod_container_status_restarts_total{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr"} 1 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="storage-provisioner",container="storage-provisioner"} 2 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager"} 1 +kube_pod_container_status_restarts_total{namespace="kube-system",pod="kube-proxy-6dvtf",container="kube-proxy"} 0 +# HELP kube_pod_init_container_status_restarts_total The number of restarts for the init container. +# TYPE kube_pod_init_container_status_restarts_total counter +# HELP kube_pod_container_resource_requests The number of requested request resource by a container. +# TYPE kube_pod_container_resource_requests gauge +kube_pod_container_resource_requests{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",node="minikube",resource="memory",unit="byte"} 2.68435456e+08 +kube_pod_container_resource_requests{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",node="minikube",resource="cpu",unit="core"} 0.005 +kube_pod_container_resource_requests{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",node="minikube",resource="memory",unit="byte"} 5.24288e+07 +kube_pod_container_resource_requests{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",node="minikube",resource="cpu",unit="core"} 0.25 +kube_pod_container_resource_requests{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",node="minikube",resource="cpu",unit="core"} 0.1 +kube_pod_container_resource_requests{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",node="minikube",resource="cpu",unit="core"} 0.1 +kube_pod_container_resource_requests{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",node="minikube",resource="memory",unit="byte"} 7.340032e+07 +kube_pod_container_resource_requests{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",node="minikube",resource="cpu",unit="core"} 0.1 +kube_pod_container_resource_requests{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",node="minikube",resource="memory",unit="byte"} 7.340032e+07 +kube_pod_container_resource_requests{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",node="minikube",resource="cpu",unit="core"} 0.2 +# HELP kube_pod_container_resource_limits The number of requested limit resource by a container. +# TYPE kube_pod_container_resource_limits gauge +kube_pod_container_resource_limits{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",node="minikube",resource="memory",unit="byte"} 5.36870912e+08 +kube_pod_container_resource_limits{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",node="minikube",resource="memory",unit="byte"} 1.7825792e+08 +kube_pod_container_resource_limits{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",node="minikube",resource="memory",unit="byte"} 1.7825792e+08 +# HELP kube_pod_init_container_resource_limits The number of requested limit resource by the init container. +# TYPE kube_pod_init_container_resource_limits gauge +# HELP kube_pod_container_resource_requests_cpu_cores The number of requested cpu cores by a container. +# TYPE kube_pod_container_resource_requests_cpu_cores gauge +kube_pod_container_resource_requests_cpu_cores{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",node="minikube"} 0.1 +kube_pod_container_resource_requests_cpu_cores{namespace="kube-system",pod="kube-controller-manager-minikube",container="kube-controller-manager",node="minikube"} 0.2 +kube_pod_container_resource_requests_cpu_cores{namespace="kube-system",pod="kube-scheduler-minikube",container="kube-scheduler",node="minikube"} 0.1 +kube_pod_container_resource_requests_cpu_cores{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",node="minikube"} 0.1 +kube_pod_container_resource_requests_cpu_cores{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",node="minikube"} 0.005 +kube_pod_container_resource_requests_cpu_cores{namespace="kube-system",pod="kube-apiserver-minikube",container="kube-apiserver",node="minikube"} 0.25 +# HELP kube_init_pod_container_resource_requests_cpu_cores The number of requested cpu cores by an init container. +# TYPE kube_init_pod_container_resource_requests_cpu_cores gauge +# HELP kube_pod_container_resource_requests_memory_bytes The number of requested memory bytes by a container. +# TYPE kube_pod_container_resource_requests_memory_bytes gauge +kube_pod_container_resource_requests_memory_bytes{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",node="minikube"} 7.340032e+07 +kube_pod_container_resource_requests_memory_bytes{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",node="minikube"} 7.340032e+07 +kube_pod_container_resource_requests_memory_bytes{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",node="minikube"} 2.68435456e+08 +kube_pod_container_resource_requests_memory_bytes{namespace="kube-system",pod="kube-addon-manager-minikube",container="kube-addon-manager",node="minikube"} 5.24288e+07 +# HELP kube_pod_container_resource_limits_cpu_cores The limit on cpu cores to be used by a container. +# TYPE kube_pod_container_resource_limits_cpu_cores gauge +# HELP kube_pod_container_resource_limits_memory_bytes The limit on memory to be used by a container in bytes. +# TYPE kube_pod_container_resource_limits_memory_bytes gauge +kube_pod_container_resource_limits_memory_bytes{namespace="default-mem-example",pod="default-mem-demo",container="default-mem-demo-ctr",node="minikube"} 5.36870912e+08 +kube_pod_container_resource_limits_memory_bytes{namespace="kube-system",pod="coredns-5c98db65d4-df89f",container="coredns",node="minikube"} 1.7825792e+08 +kube_pod_container_resource_limits_memory_bytes{namespace="kube-system",pod="coredns-5c98db65d4-8tjk7",container="coredns",node="minikube"} 1.7825792e+08 +# HELP kube_pod_spec_volumes_persistentvolumeclaims_info Information about persistentvolumeclaim volumes in a pod. +# TYPE kube_pod_spec_volumes_persistentvolumeclaims_info gauge +# HELP kube_pod_spec_volumes_persistentvolumeclaims_readonly Describes whether a persistentvolumeclaim is mounted read only. +# TYPE kube_pod_spec_volumes_persistentvolumeclaims_readonly gauge +# HELP kube_replicaset_created Unix creation timestamp +# TYPE kube_replicaset_created gauge +kube_replicaset_created{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b"} 1.568622119e+09 +kube_replicaset_created{namespace="kube-system",replicaset="coredns-576cbf47c7"} 1.567009611e+09 +kube_replicaset_created{namespace="kube-system",replicaset="coredns-5c98db65d4"} 1.567689495e+09 +# HELP kube_replicaset_status_replicas The number of replicas per ReplicaSet. +# TYPE kube_replicaset_status_replicas gauge +kube_replicaset_status_replicas{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b"} 1 +kube_replicaset_status_replicas{namespace="kube-system",replicaset="coredns-576cbf47c7"} 0 +kube_replicaset_status_replicas{namespace="kube-system",replicaset="coredns-5c98db65d4"} 2 +# HELP kube_replicaset_status_fully_labeled_replicas The number of fully labeled replicas per ReplicaSet. +# TYPE kube_replicaset_status_fully_labeled_replicas gauge +kube_replicaset_status_fully_labeled_replicas{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b"} 1 +kube_replicaset_status_fully_labeled_replicas{namespace="kube-system",replicaset="coredns-576cbf47c7"} 0 +kube_replicaset_status_fully_labeled_replicas{namespace="kube-system",replicaset="coredns-5c98db65d4"} 2 +# HELP kube_replicaset_status_ready_replicas The number of ready replicas per ReplicaSet. +# TYPE kube_replicaset_status_ready_replicas gauge +kube_replicaset_status_ready_replicas{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b"} 1 +kube_replicaset_status_ready_replicas{namespace="kube-system",replicaset="coredns-576cbf47c7"} 0 +kube_replicaset_status_ready_replicas{namespace="kube-system",replicaset="coredns-5c98db65d4"} 2 +# HELP kube_replicaset_status_observed_generation The generation observed by the ReplicaSet controller. +# TYPE kube_replicaset_status_observed_generation gauge +kube_replicaset_status_observed_generation{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b"} 1 +kube_replicaset_status_observed_generation{namespace="kube-system",replicaset="coredns-576cbf47c7"} 3 +kube_replicaset_status_observed_generation{namespace="kube-system",replicaset="coredns-5c98db65d4"} 2 +# HELP kube_replicaset_spec_replicas Number of desired pods for a ReplicaSet. +# TYPE kube_replicaset_spec_replicas gauge +kube_replicaset_spec_replicas{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b"} 1 +kube_replicaset_spec_replicas{namespace="kube-system",replicaset="coredns-576cbf47c7"} 0 +kube_replicaset_spec_replicas{namespace="kube-system",replicaset="coredns-5c98db65d4"} 2 +# HELP kube_replicaset_metadata_generation Sequence number representing a specific generation of the desired state. +# TYPE kube_replicaset_metadata_generation gauge +kube_replicaset_metadata_generation{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b"} 1 +kube_replicaset_metadata_generation{namespace="kube-system",replicaset="coredns-576cbf47c7"} 3 +kube_replicaset_metadata_generation{namespace="kube-system",replicaset="coredns-5c98db65d4"} 2 +# HELP kube_replicaset_owner Information about the ReplicaSet's owner. +# TYPE kube_replicaset_owner gauge +kube_replicaset_owner{namespace="kube-system",replicaset="coredns-576cbf47c7",owner_kind="Deployment",owner_name="coredns",owner_is_controller="true"} 1 +kube_replicaset_owner{namespace="kube-system",replicaset="coredns-5c98db65d4",owner_kind="Deployment",owner_name="coredns",owner_is_controller="true"} 1 +kube_replicaset_owner{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b",owner_kind="Deployment",owner_name="kube-state-metrics",owner_is_controller="true"} 1 +# HELP kube_replicaset_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_replicaset_labels gauge +kube_replicaset_labels{namespace="kube-system",replicaset="kube-state-metrics-6766c6d46b",label_pod_template_hash="6766c6d46b",label_k8s_app="kube-state-metrics"} 1 +kube_replicaset_labels{namespace="kube-system",replicaset="coredns-576cbf47c7",label_pod_template_hash="576cbf47c7",label_k8s_app="kube-dns"} 1 +kube_replicaset_labels{namespace="kube-system",replicaset="coredns-5c98db65d4",label_k8s_app="kube-dns",label_pod_template_hash="5c98db65d4"} 1 +# HELP kube_replicationcontroller_created Unix creation timestamp +# TYPE kube_replicationcontroller_created gauge +# HELP kube_replicationcontroller_status_replicas The number of replicas per ReplicationController. +# TYPE kube_replicationcontroller_status_replicas gauge +# HELP kube_replicationcontroller_status_fully_labeled_replicas The number of fully labeled replicas per ReplicationController. +# TYPE kube_replicationcontroller_status_fully_labeled_replicas gauge +# HELP kube_replicationcontroller_status_ready_replicas The number of ready replicas per ReplicationController. +# TYPE kube_replicationcontroller_status_ready_replicas gauge +# HELP kube_replicationcontroller_status_available_replicas The number of available replicas per ReplicationController. +# TYPE kube_replicationcontroller_status_available_replicas gauge +# HELP kube_replicationcontroller_status_observed_generation The generation observed by the ReplicationController controller. +# TYPE kube_replicationcontroller_status_observed_generation gauge +# HELP kube_replicationcontroller_spec_replicas Number of desired pods for a ReplicationController. +# TYPE kube_replicationcontroller_spec_replicas gauge +# HELP kube_replicationcontroller_metadata_generation Sequence number representing a specific generation of the desired state. +# TYPE kube_replicationcontroller_metadata_generation gauge +# HELP kube_resourcequota_created Unix creation timestamp +# TYPE kube_resourcequota_created gauge +kube_resourcequota_created{namespace="rqtest",resourcequota="resources"} 1.568629266e+09 +kube_resourcequota_created{namespace="rqtest",resourcequota="objects"} 1.568629266e+09 +# HELP kube_resourcequota Information about resource quota. +# TYPE kube_resourcequota gauge +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="pods",type="hard"} 3 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="replicationcontrollers",type="hard"} 1 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="secrets",type="hard"} 1 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="services",type="hard"} 2 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="services.loadbalancers",type="hard"} 1 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="configmaps",type="hard"} 1 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="persistentvolumeclaims",type="hard"} 0 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="configmaps",type="used"} 0 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="persistentvolumeclaims",type="used"} 0 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="pods",type="used"} 0 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="replicationcontrollers",type="used"} 0 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="secrets",type="used"} 1 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="services",type="used"} 1 +kube_resourcequota{namespace="rqtest",resourcequota="objects",resource="services.loadbalancers",type="used"} 1 +kube_resourcequota{namespace="rqtest",resourcequota="resources",resource="limits.cpu",type="hard"} 2 +kube_resourcequota{namespace="rqtest",resourcequota="resources",resource="limits.memory",type="hard"} 2.147483648e+09 +kube_resourcequota{namespace="rqtest",resourcequota="resources",resource="requests.cpu",type="hard"} 1 +kube_resourcequota{namespace="rqtest",resourcequota="resources",resource="requests.memory",type="hard"} 1.073741824e+09 +kube_resourcequota{namespace="rqtest",resourcequota="resources",resource="limits.cpu",type="used"} 0 +kube_resourcequota{namespace="rqtest",resourcequota="resources",resource="limits.memory",type="used"} 0 +kube_resourcequota{namespace="rqtest",resourcequota="resources",resource="requests.cpu",type="used"} 0 +kube_resourcequota{namespace="rqtest",resourcequota="resources",resource="requests.memory",type="used"} 0 +# HELP kube_secret_info Information about secret. +# TYPE kube_secret_info gauge +kube_secret_info{namespace="kube-system",secret="token-cleaner-token-hvmvg"} 1 +kube_secret_info{namespace="kube-system",secret="coredns-token-sck4w"} 1 +kube_secret_info{namespace="kube-system",secret="pvc-protection-controller-token-l7sng"} 1 +kube_secret_info{namespace="kube-system",secret="replicaset-controller-token-w7cbh"} 1 +kube_secret_info{namespace="default",secret="default-token-t7g88"} 1 +kube_secret_info{namespace="kube-system",secret="disruption-controller-token-p746l"} 1 +kube_secret_info{namespace="pablo",secret="default-token-bcdzp"} 1 +kube_secret_info{namespace="kube-system",secret="storage-provisioner-token-77qbj"} 1 +kube_secret_info{namespace="default-mem-example",secret="default-token-ck879"} 1 +kube_secret_info{namespace="kube-system",secret="cronjob-controller-token-5pdpx"} 1 +kube_secret_info{namespace="kube-system",secret="namespace-controller-token-cz6nm"} 1 +kube_secret_info{namespace="kube-system",secret="pod-garbage-collector-token-r5p7w"} 1 +kube_secret_info{namespace="kube-system",secret="attachdetach-controller-token-ww2k9"} 1 +kube_secret_info{namespace="kube-system",secret="pv-protection-controller-token-wgqk6"} 1 +kube_secret_info{namespace="kube-system",secret="service-account-controller-token-trs9v"} 1 +kube_secret_info{namespace="kube-system",secret="deployment-controller-token-8jz6f"} 1 +kube_secret_info{namespace="kube-system",secret="default-token-wlxnx"} 1 +kube_secret_info{namespace="kube-system",secret="horizontal-pod-autoscaler-token-jk9wc"} 1 +kube_secret_info{namespace="kube-system",secret="bootstrap-signer-token-5rthh"} 1 +kube_secret_info{namespace="kube-system",secret="resourcequota-controller-token-ftfbv"} 1 +kube_secret_info{namespace="kube-system",secret="ttl-controller-token-cjgd4"} 1 +kube_secret_info{namespace="kube-system",secret="expand-controller-token-bqc2l"} 1 +kube_secret_info{namespace="kube-system",secret="persistent-volume-binder-token-5vnhp"} 1 +kube_secret_info{namespace="kube-system",secret="kube-state-metrics-token-q84xw"} 1 +kube_secret_info{namespace="kube-system",secret="clusterrole-aggregation-controller-token-p48ps"} 1 +kube_secret_info{namespace="kube-public",secret="default-token-fgbfg"} 1 +kube_secret_info{namespace="kube-system",secret="endpoint-controller-token-xhchl"} 1 +kube_secret_info{namespace="kube-system",secret="kube-proxy-token-xb2xk"} 1 +kube_secret_info{namespace="rqtest",secret="default-token-bx4mb"} 1 +kube_secret_info{namespace="kube-system",secret="metricbeat-kube-token-p7lz2"} 1 +kube_secret_info{namespace="kube-system",secret="certificate-controller-token-4tpf5"} 1 +kube_secret_info{namespace="kube-system",secret="replication-controller-token-4bbg4"} 1 +kube_secret_info{namespace="kube-node-lease",secret="default-token-4bnbt"} 1 +kube_secret_info{namespace="kube-system",secret="node-controller-token-vlp7g"} 1 +kube_secret_info{namespace="kube-system",secret="service-controller-token-n6q5z"} 1 +kube_secret_info{namespace="kube-system",secret="generic-garbage-collector-token-bwzxm"} 1 +kube_secret_info{namespace="kube-system",secret="job-controller-token-jzdhc"} 1 +kube_secret_info{namespace="kube-system",secret="statefulset-controller-token-c6ln8"} 1 +kube_secret_info{namespace="kube-system",secret="daemon-set-controller-token-hlmp4"} 1 +kube_secret_info{namespace="default",secret="metricbeat-kube-token-8bswn"} 1 +# HELP kube_secret_type Type about secret. +# TYPE kube_secret_type gauge +kube_secret_type{namespace="kube-system",secret="node-controller-token-vlp7g",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="service-controller-token-n6q5z",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="generic-garbage-collector-token-bwzxm",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="rqtest",secret="default-token-bx4mb",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="metricbeat-kube-token-p7lz2",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="certificate-controller-token-4tpf5",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="replication-controller-token-4bbg4",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-node-lease",secret="default-token-4bnbt",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="job-controller-token-jzdhc",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="statefulset-controller-token-c6ln8",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="daemon-set-controller-token-hlmp4",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="default",secret="metricbeat-kube-token-8bswn",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="disruption-controller-token-p746l",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="pablo",secret="default-token-bcdzp",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="storage-provisioner-token-77qbj",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="token-cleaner-token-hvmvg",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="coredns-token-sck4w",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="pvc-protection-controller-token-l7sng",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="replicaset-controller-token-w7cbh",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="default",secret="default-token-t7g88",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="default-mem-example",secret="default-token-ck879",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="cronjob-controller-token-5pdpx",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="namespace-controller-token-cz6nm",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="pod-garbage-collector-token-r5p7w",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="default-token-wlxnx",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="attachdetach-controller-token-ww2k9",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="pv-protection-controller-token-wgqk6",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="service-account-controller-token-trs9v",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="deployment-controller-token-8jz6f",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="horizontal-pod-autoscaler-token-jk9wc",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="bootstrap-signer-token-5rthh",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="kube-state-metrics-token-q84xw",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="resourcequota-controller-token-ftfbv",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="ttl-controller-token-cjgd4",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="expand-controller-token-bqc2l",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="persistent-volume-binder-token-5vnhp",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="clusterrole-aggregation-controller-token-p48ps",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-public",secret="default-token-fgbfg",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="endpoint-controller-token-xhchl",type="kubernetes.io/service-account-token"} 1 +kube_secret_type{namespace="kube-system",secret="kube-proxy-token-xb2xk",type="kubernetes.io/service-account-token"} 1 +# HELP kube_secret_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_secret_labels gauge +kube_secret_labels{namespace="kube-system",secret="horizontal-pod-autoscaler-token-jk9wc"} 1 +kube_secret_labels{namespace="kube-system",secret="bootstrap-signer-token-5rthh"} 1 +kube_secret_labels{namespace="kube-system",secret="resourcequota-controller-token-ftfbv"} 1 +kube_secret_labels{namespace="kube-system",secret="ttl-controller-token-cjgd4"} 1 +kube_secret_labels{namespace="kube-system",secret="expand-controller-token-bqc2l"} 1 +kube_secret_labels{namespace="kube-system",secret="persistent-volume-binder-token-5vnhp"} 1 +kube_secret_labels{namespace="kube-system",secret="kube-state-metrics-token-q84xw"} 1 +kube_secret_labels{namespace="kube-system",secret="clusterrole-aggregation-controller-token-p48ps"} 1 +kube_secret_labels{namespace="kube-public",secret="default-token-fgbfg"} 1 +kube_secret_labels{namespace="kube-system",secret="endpoint-controller-token-xhchl"} 1 +kube_secret_labels{namespace="kube-system",secret="kube-proxy-token-xb2xk"} 1 +kube_secret_labels{namespace="rqtest",secret="default-token-bx4mb"} 1 +kube_secret_labels{namespace="kube-system",secret="metricbeat-kube-token-p7lz2"} 1 +kube_secret_labels{namespace="kube-system",secret="certificate-controller-token-4tpf5"} 1 +kube_secret_labels{namespace="kube-system",secret="replication-controller-token-4bbg4"} 1 +kube_secret_labels{namespace="kube-node-lease",secret="default-token-4bnbt"} 1 +kube_secret_labels{namespace="kube-system",secret="node-controller-token-vlp7g"} 1 +kube_secret_labels{namespace="kube-system",secret="service-controller-token-n6q5z"} 1 +kube_secret_labels{namespace="kube-system",secret="generic-garbage-collector-token-bwzxm"} 1 +kube_secret_labels{namespace="kube-system",secret="job-controller-token-jzdhc"} 1 +kube_secret_labels{namespace="kube-system",secret="statefulset-controller-token-c6ln8"} 1 +kube_secret_labels{namespace="kube-system",secret="daemon-set-controller-token-hlmp4"} 1 +kube_secret_labels{namespace="default",secret="metricbeat-kube-token-8bswn"} 1 +kube_secret_labels{namespace="kube-system",secret="token-cleaner-token-hvmvg"} 1 +kube_secret_labels{namespace="kube-system",secret="coredns-token-sck4w"} 1 +kube_secret_labels{namespace="kube-system",secret="pvc-protection-controller-token-l7sng"} 1 +kube_secret_labels{namespace="kube-system",secret="replicaset-controller-token-w7cbh"} 1 +kube_secret_labels{namespace="default",secret="default-token-t7g88"} 1 +kube_secret_labels{namespace="kube-system",secret="disruption-controller-token-p746l"} 1 +kube_secret_labels{namespace="pablo",secret="default-token-bcdzp"} 1 +kube_secret_labels{namespace="kube-system",secret="storage-provisioner-token-77qbj"} 1 +kube_secret_labels{namespace="default-mem-example",secret="default-token-ck879"} 1 +kube_secret_labels{namespace="kube-system",secret="cronjob-controller-token-5pdpx"} 1 +kube_secret_labels{namespace="kube-system",secret="namespace-controller-token-cz6nm"} 1 +kube_secret_labels{namespace="kube-system",secret="pod-garbage-collector-token-r5p7w"} 1 +kube_secret_labels{namespace="kube-system",secret="attachdetach-controller-token-ww2k9"} 1 +kube_secret_labels{namespace="kube-system",secret="pv-protection-controller-token-wgqk6"} 1 +kube_secret_labels{namespace="kube-system",secret="service-account-controller-token-trs9v"} 1 +kube_secret_labels{namespace="kube-system",secret="deployment-controller-token-8jz6f"} 1 +kube_secret_labels{namespace="kube-system",secret="default-token-wlxnx"} 1 +# HELP kube_secret_created Unix creation timestamp +# TYPE kube_secret_created gauge +kube_secret_created{namespace="kube-system",secret="statefulset-controller-token-c6ln8"} 1.567009608e+09 +kube_secret_created{namespace="kube-system",secret="daemon-set-controller-token-hlmp4"} 1.567009608e+09 +kube_secret_created{namespace="default",secret="metricbeat-kube-token-8bswn"} 1.567693987e+09 +kube_secret_created{namespace="kube-system",secret="job-controller-token-jzdhc"} 1.567009606e+09 +kube_secret_created{namespace="kube-system",secret="pvc-protection-controller-token-l7sng"} 1.567009609e+09 +kube_secret_created{namespace="kube-system",secret="replicaset-controller-token-w7cbh"} 1.567009605e+09 +kube_secret_created{namespace="default",secret="default-token-t7g88"} 1.567009611e+09 +kube_secret_created{namespace="kube-system",secret="disruption-controller-token-p746l"} 1.567009611e+09 +kube_secret_created{namespace="pablo",secret="default-token-bcdzp"} 1.567347599e+09 +kube_secret_created{namespace="kube-system",secret="storage-provisioner-token-77qbj"} 1.567009612e+09 +kube_secret_created{namespace="kube-system",secret="token-cleaner-token-hvmvg"} 1.567009611e+09 +kube_secret_created{namespace="kube-system",secret="coredns-token-sck4w"} 1.567009606e+09 +kube_secret_created{namespace="kube-system",secret="cronjob-controller-token-5pdpx"} 1.567009607e+09 +kube_secret_created{namespace="kube-system",secret="namespace-controller-token-cz6nm"} 1.567009609e+09 +kube_secret_created{namespace="kube-system",secret="pod-garbage-collector-token-r5p7w"} 1.567009607e+09 +kube_secret_created{namespace="default-mem-example",secret="default-token-ck879"} 1.567347623e+09 +kube_secret_created{namespace="kube-system",secret="pv-protection-controller-token-wgqk6"} 1.56700961e+09 +kube_secret_created{namespace="kube-system",secret="service-account-controller-token-trs9v"} 1.567009605e+09 +kube_secret_created{namespace="kube-system",secret="deployment-controller-token-8jz6f"} 1.567009605e+09 +kube_secret_created{namespace="kube-system",secret="default-token-wlxnx"} 1.567009611e+09 +kube_secret_created{namespace="kube-system",secret="attachdetach-controller-token-ww2k9"} 1.567009608e+09 +kube_secret_created{namespace="kube-system",secret="bootstrap-signer-token-5rthh"} 1.567009605e+09 +kube_secret_created{namespace="kube-system",secret="horizontal-pod-autoscaler-token-jk9wc"} 1.56700961e+09 +kube_secret_created{namespace="kube-system",secret="ttl-controller-token-cjgd4"} 1.567009605e+09 +kube_secret_created{namespace="kube-system",secret="expand-controller-token-bqc2l"} 1.567009606e+09 +kube_secret_created{namespace="kube-system",secret="persistent-volume-binder-token-5vnhp"} 1.567009607e+09 +kube_secret_created{namespace="kube-system",secret="kube-state-metrics-token-q84xw"} 1.568195118e+09 +kube_secret_created{namespace="kube-system",secret="resourcequota-controller-token-ftfbv"} 1.567009606e+09 +kube_secret_created{namespace="kube-public",secret="default-token-fgbfg"} 1.567009611e+09 +kube_secret_created{namespace="kube-system",secret="endpoint-controller-token-xhchl"} 1.567009609e+09 +kube_secret_created{namespace="kube-system",secret="kube-proxy-token-xb2xk"} 1.567009606e+09 +kube_secret_created{namespace="kube-system",secret="clusterrole-aggregation-controller-token-p48ps"} 1.567009605e+09 +kube_secret_created{namespace="kube-system",secret="certificate-controller-token-4tpf5"} 1.567009605e+09 +kube_secret_created{namespace="kube-system",secret="replication-controller-token-4bbg4"} 1.567009606e+09 +kube_secret_created{namespace="kube-node-lease",secret="default-token-4bnbt"} 1.567689495e+09 +kube_secret_created{namespace="kube-system",secret="node-controller-token-vlp7g"} 1.567009605e+09 +kube_secret_created{namespace="kube-system",secret="service-controller-token-n6q5z"} 1.567009609e+09 +kube_secret_created{namespace="kube-system",secret="generic-garbage-collector-token-bwzxm"} 1.56700961e+09 +kube_secret_created{namespace="rqtest",secret="default-token-bx4mb"} 1.568629266e+09 +kube_secret_created{namespace="kube-system",secret="metricbeat-kube-token-p7lz2"} 1.567585201e+09 +# HELP kube_secret_metadata_resource_version Resource version representing a specific version of secret. +# TYPE kube_secret_metadata_resource_version gauge +kube_secret_metadata_resource_version{namespace="kube-system",secret="ttl-controller-token-cjgd4",resource_version="201"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="expand-controller-token-bqc2l",resource_version="204"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="persistent-volume-binder-token-5vnhp",resource_version="247"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="kube-state-metrics-token-q84xw",resource_version="1322401"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="resourcequota-controller-token-ftfbv",resource_version="230"} 1 +kube_secret_metadata_resource_version{namespace="kube-public",secret="default-token-fgbfg",resource_version="307"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="endpoint-controller-token-xhchl",resource_version="264"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="kube-proxy-token-xb2xk",resource_version="227"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="clusterrole-aggregation-controller-token-p48ps",resource_version="185"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="certificate-controller-token-4tpf5",resource_version="191"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="replication-controller-token-4bbg4",resource_version="224"} 1 +kube_secret_metadata_resource_version{namespace="kube-node-lease",secret="default-token-4bnbt",resource_version="709402"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="node-controller-token-vlp7g",resource_version="182"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="service-controller-token-n6q5z",resource_version="270"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="generic-garbage-collector-token-bwzxm",resource_version="280"} 1 +kube_secret_metadata_resource_version{namespace="rqtest",secret="default-token-bx4mb",resource_version="1848837"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="metricbeat-kube-token-p7lz2",resource_version="688578"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="statefulset-controller-token-c6ln8",resource_version="257"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="daemon-set-controller-token-hlmp4",resource_version="254"} 1 +kube_secret_metadata_resource_version{namespace="default",secret="metricbeat-kube-token-8bswn",resource_version="715037"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="job-controller-token-jzdhc",resource_version="240"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="pvc-protection-controller-token-l7sng",resource_version="274"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="replicaset-controller-token-w7cbh",resource_version="188"} 1 +kube_secret_metadata_resource_version{namespace="default",secret="default-token-t7g88",resource_version="302"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="disruption-controller-token-p746l",resource_version="288"} 1 +kube_secret_metadata_resource_version{namespace="pablo",secret="default-token-bcdzp",resource_version="404521"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="storage-provisioner-token-77qbj",resource_version="345"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="token-cleaner-token-hvmvg",resource_version="292"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="coredns-token-sck4w",resource_version="219"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="cronjob-controller-token-5pdpx",resource_version="243"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="namespace-controller-token-cz6nm",resource_version="267"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="pod-garbage-collector-token-r5p7w",resource_version="250"} 1 +kube_secret_metadata_resource_version{namespace="default-mem-example",secret="default-token-ck879",resource_version="404555"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="pv-protection-controller-token-wgqk6",resource_version="277"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="service-account-controller-token-trs9v",resource_version="197"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="deployment-controller-token-8jz6f",resource_version="179"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="default-token-wlxnx",resource_version="304"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="attachdetach-controller-token-ww2k9",resource_version="260"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="bootstrap-signer-token-5rthh",resource_version="194"} 1 +kube_secret_metadata_resource_version{namespace="kube-system",secret="horizontal-pod-autoscaler-token-jk9wc",resource_version="283"} 1 +# HELP kube_service_info Information about service. +# TYPE kube_service_info gauge +kube_service_info{namespace="kube-system",service="kube-dns",cluster_ip="10.96.0.10",external_name="",load_balancer_ip=""} 1 +kube_service_info{namespace="default",service="my-nginx",cluster_ip="10.111.59.54",external_name="",load_balancer_ip=""} 1 +kube_service_info{namespace="kube-system",service="kube-state-metrics",cluster_ip="10.111.114.13",external_name="",load_balancer_ip=""} 1 +kube_service_info{namespace="default",service="willsucceed",cluster_ip="10.104.70.53",external_name="",load_balancer_ip=""} 1 +kube_service_info{namespace="default",service="willfail",cluster_ip="10.99.32.65",external_name="",load_balancer_ip=""} 1 +kube_service_info{namespace="rqtest",service="willsucceed",cluster_ip="10.97.184.107",external_name="",load_balancer_ip=""} 1 +kube_service_info{namespace="default",service="kubernetes",cluster_ip="10.96.0.1",external_name="",load_balancer_ip=""} 1 +# HELP kube_service_created Unix creation timestamp +# TYPE kube_service_created gauge +kube_service_created{namespace="default",service="kubernetes"} 1.567009602e+09 +kube_service_created{namespace="kube-system",service="kube-dns"} 1.567009606e+09 +kube_service_created{namespace="default",service="my-nginx"} 1.567783021e+09 +kube_service_created{namespace="kube-system",service="kube-state-metrics"} 1.568195118e+09 +kube_service_created{namespace="default",service="willsucceed"} 1.568629567e+09 +kube_service_created{namespace="default",service="willfail"} 1.568629567e+09 +kube_service_created{namespace="rqtest",service="willsucceed"} 1.568629886e+09 +# HELP kube_service_spec_type Type about service. +# TYPE kube_service_spec_type gauge +kube_service_spec_type{namespace="rqtest",service="willsucceed",type="LoadBalancer"} 1 +kube_service_spec_type{namespace="default",service="kubernetes",type="ClusterIP"} 1 +kube_service_spec_type{namespace="kube-system",service="kube-dns",type="ClusterIP"} 1 +kube_service_spec_type{namespace="default",service="my-nginx",type="LoadBalancer"} 1 +kube_service_spec_type{namespace="kube-system",service="kube-state-metrics",type="ClusterIP"} 1 +kube_service_spec_type{namespace="default",service="willsucceed",type="LoadBalancer"} 1 +kube_service_spec_type{namespace="default",service="willfail",type="LoadBalancer"} 1 +# HELP kube_service_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_service_labels gauge +kube_service_labels{namespace="default",service="kubernetes",label_component="apiserver",label_provider="kubernetes"} 1 +kube_service_labels{namespace="kube-system",service="kube-dns",label_kubernetes_io_name="KubeDNS",label_k8s_app="kube-dns",label_kubernetes_io_cluster_service="true"} 1 +kube_service_labels{namespace="default",service="my-nginx",label_app="my-nginx"} 1 +kube_service_labels{namespace="kube-system",service="kube-state-metrics",label_k8s_app="kube-state-metrics"} 1 +kube_service_labels{namespace="default",service="willsucceed"} 1 +kube_service_labels{namespace="default",service="willfail"} 1 +kube_service_labels{namespace="rqtest",service="willsucceed"} 1 +# HELP kube_service_spec_external_ip Service external ips. One series for each ip +# TYPE kube_service_spec_external_ip gauge +# HELP kube_service_status_load_balancer_ingress Service load balancer ingress status +# TYPE kube_service_status_load_balancer_ingress gauge +# HELP kube_statefulset_created Unix creation timestamp +# TYPE kube_statefulset_created gauge +# HELP kube_statefulset_status_replicas The number of replicas per StatefulSet. +# TYPE kube_statefulset_status_replicas gauge +# HELP kube_statefulset_status_replicas_current The number of current replicas per StatefulSet. +# TYPE kube_statefulset_status_replicas_current gauge +# HELP kube_statefulset_status_replicas_ready The number of ready replicas per StatefulSet. +# TYPE kube_statefulset_status_replicas_ready gauge +# HELP kube_statefulset_status_replicas_updated The number of updated replicas per StatefulSet. +# TYPE kube_statefulset_status_replicas_updated gauge +# HELP kube_statefulset_status_observed_generation The generation observed by the StatefulSet controller. +# TYPE kube_statefulset_status_observed_generation gauge +# HELP kube_statefulset_replicas Number of desired pods for a StatefulSet. +# TYPE kube_statefulset_replicas gauge +# HELP kube_statefulset_metadata_generation Sequence number representing a specific generation of the desired state for the StatefulSet. +# TYPE kube_statefulset_metadata_generation gauge +# HELP kube_statefulset_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_statefulset_labels gauge +# HELP kube_statefulset_status_current_revision Indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). +# TYPE kube_statefulset_status_current_revision gauge +# HELP kube_statefulset_status_update_revision Indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) +# TYPE kube_statefulset_status_update_revision gauge +# HELP kube_storageclass_info Information about storageclass. +# TYPE kube_storageclass_info gauge +kube_storageclass_info{storageclass="standard",provisioner="k8s.io/minikube-hostpath",reclaimPolicy="Delete",volumeBindingMode="Immediate"} 1 +# HELP kube_storageclass_created Unix creation timestamp +# TYPE kube_storageclass_created gauge +kube_storageclass_created{storageclass="standard"} 1.567009612e+09 +# HELP kube_storageclass_labels Kubernetes labels converted to Prometheus labels. +# TYPE kube_storageclass_labels gauge +kube_storageclass_labels{storageclass="standard",label_addonmanager_kubernetes_io_mode="EnsureExists"} 1 diff --git a/metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/kube-state-metrics.1.7.plain-expected.json b/metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/kube-state-metrics.1.7.plain-expected.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go b/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go new file mode 100644 index 000000000000..d669038cfabf --- /dev/null +++ b/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go @@ -0,0 +1,103 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package state_resourcequota + +import ( + "github.com/elastic/beats/libbeat/common" + p "github.com/elastic/beats/metricbeat/helper/prometheus" + "github.com/elastic/beats/metricbeat/mb" +) + +func init() { + mb.Registry.MustAddMetricSet("kubernetes", "state_resourcequota", + NewResourceQuotaMetricSet, + mb.WithHostParser(p.HostParser)) +} + +// ResourceQuotaMetricSet is a prometheus based MetricSet that looks for +// mb.ModuleDataKey prefixed fields and puts then at the module level +// +// Copying the code from other kube state metrics, this should be improved to +// avoid all these ugly tricks +type ResourceQuotaMetricSet struct { + mb.BaseMetricSet + prometheus p.Prometheus + mapping *p.MetricsMapping +} + +// NewResourceQuotaMetricSet returns a prometheus based metricset for ResourceQuotas +func NewResourceQuotaMetricSet(base mb.BaseMetricSet) (mb.MetricSet, error) { + prometheus, err := p.NewPrometheusClient(base) + if err != nil { + return nil, err + } + + return &ResourceQuotaMetricSet{ + BaseMetricSet: base, + prometheus: prometheus, + mapping: &p.MetricsMapping{ + Metrics: map[string]p.MetricMap{ + "kube_resourcequota_created": p.Metric("created.sec"), + "kube_resourcequota": p.Metric("resourcequota"), + }, + Labels: map[string]p.LabelMap{ + "namespace": p.KeyLabel(mb.ModuleDataKey + ".namespace"), + "resourcequota": p.KeyLabel("name"), + + "resource": p.KeyLabel("resource"), + "type": p.KeyLabel("type"), + }, + }, + }, nil +} + +// Fetch prometheus metrics and treats those prefixed by mb.ModuleDataKey as +// module rooted fields at the event that gets reported +// +// Copied from other kube state metrics. +func (m *ResourceQuotaMetricSet) Fetch(reporter mb.ReporterV2) { + events, err := m.prometheus.GetProcessedMetrics(m.mapping) + if err != nil { + m.Logger().Error(err) + reporter.Error(err) + return + } + + for _, event := range events { + var moduleFieldsMapStr common.MapStr + moduleFields, ok := event[mb.ModuleDataKey] + if ok { + moduleFieldsMapStr, ok = moduleFields.(common.MapStr) + if !ok { + m.Logger().Errorf("error trying to convert '%s' from event to common.MapStr", mb.ModuleDataKey) + } + } + delete(event, mb.ModuleDataKey) + + if reported := reporter.Event(mb.Event{ + MetricSetFields: event, + ModuleFields: moduleFieldsMapStr, + Namespace: "kubernetes.resourcequota", + }); !reported { + m.Logger().Debug("error trying to emit event") + return + } + } + + return +} diff --git a/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota_test.go b/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota_test.go new file mode 100644 index 000000000000..3ed31ec4f00a --- /dev/null +++ b/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota_test.go @@ -0,0 +1,39 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// +build !integration + +package state_resourcequota + +import ( + "testing" + + "github.com/elastic/beats/metricbeat/helper/prometheus/ptest" +) + +const testFile = "_meta/test/metrics" + +func TestEventMapping(t *testing.T) { + ptest.TestMetricSet(t, "kubernetes", "state_resourcequota", + ptest.TestCases{ + { + MetricsFile: "./_meta/test/kube-state-metrics.1.7", + ExpectedFile: "./_meta/test/kube-state-metrics.1.7.expected", + }, + }, + ) +} From e6893f2338c8997791a2de36142f4157518ccd02 Mon Sep 17 00:00:00 2001 From: Pablo Mercado Date: Mon, 16 Sep 2019 14:33:27 +0200 Subject: [PATCH 03/11] add generated golden files --- ...kube-state-metrics.1.7.plain-expected.json | 578 ++++++++++++++++++ 1 file changed, 578 insertions(+) diff --git a/metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/kube-state-metrics.1.7.plain-expected.json b/metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/kube-state-metrics.1.7.plain-expected.json index e69de29bb2d1..3302fb1ae164 100644 --- a/metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/kube-state-metrics.1.7.plain-expected.json +++ b/metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/kube-state-metrics.1.7.plain-expected.json @@ -0,0 +1,578 @@ +[ + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "resources", + "resource": "requests.cpu", + "resourcequota": 0, + "type": "used" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "objects", + "resource": "services", + "resourcequota": 1, + "type": "used" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "created": { + "sec": 1568629266 + }, + "name": "objects" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "objects", + "resource": "replicationcontrollers", + "resourcequota": 0, + "type": "used" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "objects", + "resource": "services.loadbalancers", + "resourcequota": 1, + "type": "used" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "created": { + "sec": 1568629266 + }, + "name": "resources" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "resources", + "resource": "limits.cpu", + "resourcequota": 2, + "type": "hard" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "objects", + "resource": "configmaps", + "resourcequota": 1, + "type": "hard" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "resources", + "resource": "requests.memory", + "resourcequota": 1073741824, + "type": "hard" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "resources", + "resource": "requests.memory", + "resourcequota": 0, + "type": "used" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "resources", + "resource": "limits.memory", + "resourcequota": 2147483648, + "type": "hard" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "objects", + "resource": "pods", + "resourcequota": 0, + "type": "used" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "objects", + "resource": "services", + "resourcequota": 2, + "type": "hard" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "resources", + "resource": "limits.memory", + "resourcequota": 0, + "type": "used" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "objects", + "resource": "persistentvolumeclaims", + "resourcequota": 0, + "type": "hard" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "objects", + "resource": "replicationcontrollers", + "resourcequota": 1, + "type": "hard" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "objects", + "resource": "persistentvolumeclaims", + "resourcequota": 0, + "type": "used" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "resources", + "resource": "requests.cpu", + "resourcequota": 1, + "type": "hard" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "objects", + "resource": "secrets", + "resourcequota": 1, + "type": "hard" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "objects", + "resource": "pods", + "resourcequota": 3, + "type": "hard" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "objects", + "resource": "services.loadbalancers", + "resourcequota": 1, + "type": "hard" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "objects", + "resource": "secrets", + "resourcequota": 1, + "type": "used" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "objects", + "resource": "configmaps", + "resourcequota": 0, + "type": "used" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + }, + { + "event": { + "dataset": "kubernetes.resourcequota", + "duration": 115000, + "module": "kubernetes" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "name": "resources", + "resource": "limits.cpu", + "resourcequota": 0, + "type": "used" + } + }, + "metricset": { + "name": "state_resourcequota", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "kubernetes" + } + } +] \ No newline at end of file From 7136665874f93aa85119f6aaa613a2c097efd448 Mon Sep 17 00:00:00 2001 From: Pablo Mercado Date: Mon, 16 Sep 2019 14:34:15 +0200 Subject: [PATCH 04/11] add update expected golden files --- .../test/kube-state-metrics.1.7.expected | 530 ++++++++++++++++++ 1 file changed, 530 insertions(+) diff --git a/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7.expected b/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7.expected index e69de29bb2d1..afa6236d9669 100644 --- a/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7.expected +++ b/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7.expected @@ -0,0 +1,530 @@ +[ + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "resources", + "resource": "requests.memory", + "resourcequota": 1073741824, + "type": "hard" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "objects", + "resource": "configmaps", + "resourcequota": 1, + "type": "hard" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "objects", + "resource": "replicationcontrollers", + "resourcequota": 1, + "type": "hard" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "objects", + "resource": "secrets", + "resourcequota": 1, + "type": "hard" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "resources", + "resource": "requests.cpu", + "resourcequota": 0, + "type": "used" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "objects", + "resource": "configmaps", + "resourcequota": 0, + "type": "used" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "resources", + "resource": "limits.memory", + "resourcequota": 0, + "type": "used" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "objects", + "resource": "secrets", + "resourcequota": 1, + "type": "used" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "resources", + "resource": "requests.memory", + "resourcequota": 0, + "type": "used" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "objects", + "resource": "services", + "resourcequota": 2, + "type": "hard" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "resources", + "resource": "limits.cpu", + "resourcequota": 2, + "type": "hard" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "created": { + "sec": 1568629266 + }, + "name": "resources" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "objects", + "resource": "pods", + "resourcequota": 3, + "type": "hard" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "objects", + "resource": "services.loadbalancers", + "resourcequota": 1, + "type": "hard" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "objects", + "resource": "persistentvolumeclaims", + "resourcequota": 0, + "type": "used" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "resources", + "resource": "limits.memory", + "resourcequota": 2147483648, + "type": "hard" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "resources", + "resource": "requests.cpu", + "resourcequota": 1, + "type": "hard" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "objects", + "resource": "replicationcontrollers", + "resourcequota": 0, + "type": "used" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "created": { + "sec": 1568629266 + }, + "name": "objects" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "resources", + "resource": "limits.cpu", + "resourcequota": 0, + "type": "used" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "objects", + "resource": "persistentvolumeclaims", + "resourcequota": 0, + "type": "hard" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "objects", + "resource": "services.loadbalancers", + "resourcequota": 1, + "type": "used" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "objects", + "resource": "pods", + "resourcequota": 0, + "type": "used" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + }, + { + "RootFields": null, + "ModuleFields": { + "namespace": "rqtest" + }, + "MetricSetFields": { + "name": "objects", + "resource": "services", + "resourcequota": 1, + "type": "used" + }, + "Index": "", + "ID": "", + "Namespace": "kubernetes.resourcequota", + "Timestamp": "0001-01-01T00:00:00Z", + "Error": null, + "Host": "", + "Service": "", + "Took": 0, + "Period": 0, + "DisableTimeSeries": false + } +] \ No newline at end of file From 9a62c3e5a44e97f3136039694db2d83591700020 Mon Sep 17 00:00:00 2001 From: Pablo Mercado Date: Mon, 16 Sep 2019 17:18:04 +0200 Subject: [PATCH 05/11] rename resourcequota field for quota --- metricbeat/docs/fields.asciidoc | 2 +- metricbeat/module/kubernetes/fields.go | 2 +- .../kubernetes/state_resourcequota/README.md | 59 ++++++- .../state_resourcequota/_meta/fields.yml | 2 +- .../test/kube-state-metrics.1.7.expected | 140 ++++++++--------- ...kube-state-metrics.1.7.plain-expected.json | 148 +++++++++--------- .../state_resourcequota.go | 4 +- 7 files changed, 203 insertions(+), 154 deletions(-) diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index 57f8af71af43..ca552de28941 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -17288,7 +17288,7 @@ type: double -- -*`kubernetes.resourcequota.resourcequota`*:: +*`kubernetes.resourcequota.quota`*:: + -- Quota informed (hard or used) for the resource diff --git a/metricbeat/module/kubernetes/fields.go b/metricbeat/module/kubernetes/fields.go index 4c718155dd77..5d6e51a78422 100644 --- a/metricbeat/module/kubernetes/fields.go +++ b/metricbeat/module/kubernetes/fields.go @@ -32,5 +32,5 @@ func init() { // AssetKubernetes returns asset data. // This is the base64 encoded gzipped contents of ../metricbeat/module/kubernetes. func AssetKubernetes() string { - return "eJzsXUtz4ziSvtevQNTJveHRYWNjDz5sxIx7JtZR3TVeP6YPGxtqiExJaFMACwDtUv/6DYAviARAUIRkl00eHNYr80NmAkgkEom/oCfYX6GnYgWcggTxCSFJZAZX6POX5s3PnxBKQSSc5JIweoX+6xNCCLVfQDuQnCTq1xwywAKu0AZ/QkiAlIRuxBX6389CZJ8v0eetlPnn/1OfbRmXy4TRNdlcoTXOBHxCaE0gS8WVZvAXRPEOOvDUI/e54sBZkVfvWOCp54auGd9h9TbCNEVCYkmEJIlAbI1ylgq0wxRvIEWrvcFnUVEw0ZiIcE4E8GfgzSc2UB5gHfn99fYGlQQNUdbPoUjrpwvNhMfhWwFCLpKMAJUHX6lxPsH+hfG085kHrXquNT0E3yEplF5rRsKLgoNgBU8gHo67kjKkyEq7C0AUq1NicJHvwUhYHh8A0mTRRZIVQgK/1ExFjhO4bKTzkxfXM/BVPFj//fBwi3oke5bJ0oii0Dx7JPs8qQQql4pRfDVUGDQL1GPRxZLy/ZIXNB6M30BugSO5hZoHKgQIlPI96jLqgnkitMttApIvhKZqdK2oD6hklzMad4yqSaItpmmmRilDKF403bF7IhI1qGuSaM1qzQQME8/ABWERTaMi2KDoN7MLQUvuYHKbCKHuJDbCXeY7kFsW0R51x7QQ7TWaiYhm2LS4S7Vmm3OWgBBWjjZDtM33Jr0kLxYCkt7nNc2UFausO+71GnJ9+4gEJIymXWQtpx3sGN+raZ2kQOVitW89sz7fjNGN5cPSL7tCrh8foPqb+hIiFNU8KwxDEJ8JlwXOzomwYjkEcJ2KBcuBLhJW9Ea/QWgHrL8WuxVwNeIqgmhNMmi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9qxwM1S4holfwFnqRbx/AGlw7b55az8YMbYw4b0vdjZINsG9DzbVyA4C1xQCEhF2s8a6s8W3ULYwy6FmyOtGYScRSo7fJw3BnH8y3VnYfNyAf1YNGvrtbK+cLKy3k5oK8pov0zotoznczHj7z3YxheIZrij6zrNjF2sAviUVxSKYs2PtS+VcJzOmIzJflVU9g/5svyxsroPmyvPb5kJflPQZekXeGG+n+4biHrgvlHLf1lU5eBeb/AwAA///5LUQ6" } diff --git a/metricbeat/module/kubernetes/state_resourcequota/README.md b/metricbeat/module/kubernetes/state_resourcequota/README.md index 34a5deb43100..fa8af09537c5 100644 --- a/metricbeat/module/kubernetes/state_resourcequota/README.md +++ b/metricbeat/module/kubernetes/state_resourcequota/README.md @@ -22,16 +22,67 @@ https://github.com/kubernetes/kube-state-metrics/blob/release-1.7/docs/resourceq ## Setup environment for manual tests -- TODO point to kubernetes tests setup -- TODO point to `ResourceQuota` objects creation -- TODO include here expected kube-state-metrics -- TODO include here expected elastic events +- Setup kubernetes environment for beats testing +https://github.com/elastic/beats/tree/master/metricbeat/module/kubernetes/_meta/test +- Install `kube-state-metrics` +As part of the referred document above, follow these instructions +https://github.com/elastic/beats/tree/master/metricbeat/module/kubernetes/_meta/test#testing-kubernetes-loads +- Create `ResourceQuota` objects +The manifest are found at this location, not only creates the `ResourceQuota` objects, but also other resources that will fail because of the existence of the quota at the namespace: +https://github.com/elastic/beats/tree/master/metricbeat/module/kubernetes/_meta/test/docs/02_objects/resourceqouta.yaml +It will create +- named `rqtest` namespace, which will be assigned the resource quotas +- named `resources` resource qouta, which will limit the ammount of CPU and memory that can be assigned to the namespace. (This settings won't be put to test) +- `objects` resource quota, which will limit the quantity of objects that can be created at this namespace: + - 3 Pods + - 1 Configmap + - 0 PersistentVolumeClaims + - 1 ReplicaController + - 1 Secret + - 2 Services + - 1 Service type LoadBalancer + +- It will also create regular objects at that same namespace + - 1 Service type LoadBalancer, that will succeed + - 1 Service type LoadBalancer, that **will fail** due to exceeding Quota + +- Copy binary and metricbeat assets to the playground pod. The module file targeting `ResourceQuota` should look like this: + +```yaml +- module: kubernetes + enabled: true + metricsets: + - state_resourcequota + period: 10s + hosts: ["kube-state-metrics.kube-system:8080"] + in_cluster: true +``` + +- Execute metricbeat from the playground + +You should see at elasticsearch/kibana: + +Events that indicate a hard limit on services of type LoadBalancer + +- `dataset`: `kubernetes.resourcequota` +- `kubernetes.resourcequota.name`: `objects` +- `kubernetes.resourcequota.resource`: `services.loadbalancers` +- `kubernetes.resourcequota.quota`: 1 +- `kubernetes.resourcequota.type`: `hard` + +Events that indicate the number of service type LoadBalancer used + +- `dataset`: `kubernetes.resourcequota` +- `kubernetes.resourcequota.name`: `objects` +- `kubernetes.resourcequota.resource`: `services.loadbalancers` +- `kubernetes.resourcequota.quota`: 1 +- `kubernetes.resourcequota.type`: `used` diff --git a/metricbeat/module/kubernetes/state_resourcequota/_meta/fields.yml b/metricbeat/module/kubernetes/state_resourcequota/_meta/fields.yml index 1c58b6e96950..9bc5382285d0 100644 --- a/metricbeat/module/kubernetes/state_resourcequota/_meta/fields.yml +++ b/metricbeat/module/kubernetes/state_resourcequota/_meta/fields.yml @@ -7,7 +7,7 @@ - name: created.sec type: double description: Epoch seconds since the ResourceQuota was created - - name: resourcequota + - name: quota type: double description: Quota informed (hard or used) for the resource - name: name diff --git a/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7.expected b/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7.expected index afa6236d9669..8c3dc25361f5 100644 --- a/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7.expected +++ b/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7.expected @@ -5,10 +5,10 @@ "namespace": "rqtest" }, "MetricSetFields": { - "name": "resources", - "resource": "requests.memory", - "resourcequota": 1073741824, - "type": "hard" + "name": "objects", + "quota": 0, + "resource": "replicationcontrollers", + "type": "used" }, "Index": "", "ID": "", @@ -28,8 +28,8 @@ }, "MetricSetFields": { "name": "objects", + "quota": 1, "resource": "configmaps", - "resourcequota": 1, "type": "hard" }, "Index": "", @@ -49,9 +49,9 @@ "namespace": "rqtest" }, "MetricSetFields": { - "name": "objects", - "resource": "replicationcontrollers", - "resourcequota": 1, + "name": "resources", + "quota": 1, + "resource": "requests.cpu", "type": "hard" }, "Index": "", @@ -72,9 +72,9 @@ }, "MetricSetFields": { "name": "objects", - "resource": "secrets", - "resourcequota": 1, - "type": "hard" + "quota": 0, + "resource": "persistentvolumeclaims", + "type": "used" }, "Index": "", "ID": "", @@ -94,9 +94,9 @@ }, "MetricSetFields": { "name": "resources", - "resource": "requests.cpu", - "resourcequota": 0, - "type": "used" + "quota": 2147483648, + "resource": "limits.memory", + "type": "hard" }, "Index": "", "ID": "", @@ -116,9 +116,9 @@ }, "MetricSetFields": { "name": "objects", - "resource": "configmaps", - "resourcequota": 0, - "type": "used" + "quota": 1, + "resource": "replicationcontrollers", + "type": "hard" }, "Index": "", "ID": "", @@ -137,9 +137,9 @@ "namespace": "rqtest" }, "MetricSetFields": { - "name": "resources", - "resource": "limits.memory", - "resourcequota": 0, + "name": "objects", + "quota": 1, + "resource": "services.loadbalancers", "type": "used" }, "Index": "", @@ -160,8 +160,8 @@ }, "MetricSetFields": { "name": "objects", + "quota": 1, "resource": "secrets", - "resourcequota": 1, "type": "used" }, "Index": "", @@ -182,8 +182,8 @@ }, "MetricSetFields": { "name": "resources", + "quota": 0, "resource": "requests.memory", - "resourcequota": 0, "type": "used" }, "Index": "", @@ -203,10 +203,10 @@ "namespace": "rqtest" }, "MetricSetFields": { - "name": "objects", - "resource": "services", - "resourcequota": 2, - "type": "hard" + "name": "resources", + "quota": 0, + "resource": "requests.cpu", + "type": "used" }, "Index": "", "ID": "", @@ -225,9 +225,9 @@ "namespace": "rqtest" }, "MetricSetFields": { - "name": "resources", - "resource": "limits.cpu", - "resourcequota": 2, + "name": "objects", + "quota": 2, + "resource": "services", "type": "hard" }, "Index": "", @@ -247,10 +247,10 @@ "namespace": "rqtest" }, "MetricSetFields": { - "created": { - "sec": 1568629266 - }, - "name": "resources" + "name": "objects", + "quota": 3, + "resource": "pods", + "type": "hard" }, "Index": "", "ID": "", @@ -269,9 +269,9 @@ "namespace": "rqtest" }, "MetricSetFields": { - "name": "objects", - "resource": "pods", - "resourcequota": 3, + "name": "resources", + "quota": 2, + "resource": "limits.cpu", "type": "hard" }, "Index": "", @@ -292,9 +292,9 @@ }, "MetricSetFields": { "name": "objects", - "resource": "services.loadbalancers", - "resourcequota": 1, - "type": "hard" + "quota": 1, + "resource": "services", + "type": "used" }, "Index": "", "ID": "", @@ -313,10 +313,10 @@ "namespace": "rqtest" }, "MetricSetFields": { - "name": "objects", - "resource": "persistentvolumeclaims", - "resourcequota": 0, - "type": "used" + "name": "resources", + "quota": 1073741824, + "resource": "requests.memory", + "type": "hard" }, "Index": "", "ID": "", @@ -335,9 +335,9 @@ "namespace": "rqtest" }, "MetricSetFields": { - "name": "resources", - "resource": "limits.memory", - "resourcequota": 2147483648, + "name": "objects", + "quota": 1, + "resource": "services.loadbalancers", "type": "hard" }, "Index": "", @@ -357,10 +357,10 @@ "namespace": "rqtest" }, "MetricSetFields": { - "name": "resources", - "resource": "requests.cpu", - "resourcequota": 1, - "type": "hard" + "created": { + "sec": 1568629266 + }, + "name": "resources" }, "Index": "", "ID": "", @@ -380,9 +380,9 @@ }, "MetricSetFields": { "name": "objects", - "resource": "replicationcontrollers", - "resourcequota": 0, - "type": "used" + "quota": 0, + "resource": "persistentvolumeclaims", + "type": "hard" }, "Index": "", "ID": "", @@ -401,10 +401,10 @@ "namespace": "rqtest" }, "MetricSetFields": { - "created": { - "sec": 1568629266 - }, - "name": "objects" + "name": "resources", + "quota": 0, + "resource": "limits.cpu", + "type": "used" }, "Index": "", "ID": "", @@ -423,9 +423,9 @@ "namespace": "rqtest" }, "MetricSetFields": { - "name": "resources", - "resource": "limits.cpu", - "resourcequota": 0, + "name": "objects", + "quota": 0, + "resource": "configmaps", "type": "used" }, "Index": "", @@ -446,8 +446,8 @@ }, "MetricSetFields": { "name": "objects", - "resource": "persistentvolumeclaims", - "resourcequota": 0, + "quota": 1, + "resource": "secrets", "type": "hard" }, "Index": "", @@ -467,10 +467,10 @@ "namespace": "rqtest" }, "MetricSetFields": { - "name": "objects", - "resource": "services.loadbalancers", - "resourcequota": 1, - "type": "used" + "created": { + "sec": 1568629266 + }, + "name": "objects" }, "Index": "", "ID": "", @@ -490,8 +490,8 @@ }, "MetricSetFields": { "name": "objects", + "quota": 0, "resource": "pods", - "resourcequota": 0, "type": "used" }, "Index": "", @@ -511,9 +511,9 @@ "namespace": "rqtest" }, "MetricSetFields": { - "name": "objects", - "resource": "services", - "resourcequota": 1, + "name": "resources", + "quota": 0, + "resource": "limits.memory", "type": "used" }, "Index": "", diff --git a/metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/kube-state-metrics.1.7.plain-expected.json b/metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/kube-state-metrics.1.7.plain-expected.json index 3302fb1ae164..c8e174bf10a1 100644 --- a/metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/kube-state-metrics.1.7.plain-expected.json +++ b/metricbeat/module/kubernetes/state_resourcequota/_meta/testdata/kube-state-metrics.1.7.plain-expected.json @@ -9,8 +9,8 @@ "namespace": "rqtest", "resourcequota": { "name": "resources", + "quota": 0, "resource": "requests.cpu", - "resourcequota": 0, "type": "used" } }, @@ -32,10 +32,10 @@ "kubernetes": { "namespace": "rqtest", "resourcequota": { - "name": "objects", - "resource": "services", - "resourcequota": 1, - "type": "used" + "name": "resources", + "quota": 2, + "resource": "limits.cpu", + "type": "hard" } }, "metricset": { @@ -56,10 +56,10 @@ "kubernetes": { "namespace": "rqtest", "resourcequota": { - "created": { - "sec": 1568629266 - }, - "name": "objects" + "name": "objects", + "quota": 3, + "resource": "pods", + "type": "hard" } }, "metricset": { @@ -80,10 +80,10 @@ "kubernetes": { "namespace": "rqtest", "resourcequota": { - "name": "objects", - "resource": "replicationcontrollers", - "resourcequota": 0, - "type": "used" + "name": "resources", + "quota": 1, + "resource": "requests.cpu", + "type": "hard" } }, "metricset": { @@ -105,9 +105,9 @@ "namespace": "rqtest", "resourcequota": { "name": "objects", - "resource": "services.loadbalancers", - "resourcequota": 1, - "type": "used" + "quota": 1, + "resource": "configmaps", + "type": "hard" } }, "metricset": { @@ -128,10 +128,10 @@ "kubernetes": { "namespace": "rqtest", "resourcequota": { - "created": { - "sec": 1568629266 - }, - "name": "resources" + "name": "objects", + "quota": 1, + "resource": "replicationcontrollers", + "type": "hard" } }, "metricset": { @@ -152,10 +152,10 @@ "kubernetes": { "namespace": "rqtest", "resourcequota": { - "name": "resources", - "resource": "limits.cpu", - "resourcequota": 2, - "type": "hard" + "created": { + "sec": 1568629266 + }, + "name": "objects" } }, "metricset": { @@ -177,8 +177,8 @@ "namespace": "rqtest", "resourcequota": { "name": "objects", - "resource": "configmaps", - "resourcequota": 1, + "quota": 0, + "resource": "persistentvolumeclaims", "type": "hard" } }, @@ -200,10 +200,10 @@ "kubernetes": { "namespace": "rqtest", "resourcequota": { - "name": "resources", - "resource": "requests.memory", - "resourcequota": 1073741824, - "type": "hard" + "created": { + "sec": 1568629266 + }, + "name": "resources" } }, "metricset": { @@ -225,9 +225,9 @@ "namespace": "rqtest", "resourcequota": { "name": "resources", + "quota": 1073741824, "resource": "requests.memory", - "resourcequota": 0, - "type": "used" + "type": "hard" } }, "metricset": { @@ -248,9 +248,9 @@ "kubernetes": { "namespace": "rqtest", "resourcequota": { - "name": "resources", - "resource": "limits.memory", - "resourcequota": 2147483648, + "name": "objects", + "quota": 2, + "resource": "services", "type": "hard" } }, @@ -273,8 +273,8 @@ "namespace": "rqtest", "resourcequota": { "name": "objects", - "resource": "pods", - "resourcequota": 0, + "quota": 0, + "resource": "replicationcontrollers", "type": "used" } }, @@ -297,9 +297,9 @@ "namespace": "rqtest", "resourcequota": { "name": "objects", - "resource": "services", - "resourcequota": 2, - "type": "hard" + "quota": 0, + "resource": "configmaps", + "type": "used" } }, "metricset": { @@ -321,8 +321,8 @@ "namespace": "rqtest", "resourcequota": { "name": "resources", - "resource": "limits.memory", - "resourcequota": 0, + "quota": 0, + "resource": "requests.memory", "type": "used" } }, @@ -345,9 +345,9 @@ "namespace": "rqtest", "resourcequota": { "name": "objects", - "resource": "persistentvolumeclaims", - "resourcequota": 0, - "type": "hard" + "quota": 1, + "resource": "services", + "type": "used" } }, "metricset": { @@ -368,9 +368,9 @@ "kubernetes": { "namespace": "rqtest", "resourcequota": { - "name": "objects", - "resource": "replicationcontrollers", - "resourcequota": 1, + "name": "resources", + "quota": 2147483648, + "resource": "limits.memory", "type": "hard" } }, @@ -393,9 +393,9 @@ "namespace": "rqtest", "resourcequota": { "name": "objects", - "resource": "persistentvolumeclaims", - "resourcequota": 0, - "type": "used" + "quota": 1, + "resource": "secrets", + "type": "hard" } }, "metricset": { @@ -416,10 +416,10 @@ "kubernetes": { "namespace": "rqtest", "resourcequota": { - "name": "resources", - "resource": "requests.cpu", - "resourcequota": 1, - "type": "hard" + "name": "objects", + "quota": 1, + "resource": "services.loadbalancers", + "type": "used" } }, "metricset": { @@ -440,10 +440,10 @@ "kubernetes": { "namespace": "rqtest", "resourcequota": { - "name": "objects", - "resource": "secrets", - "resourcequota": 1, - "type": "hard" + "name": "resources", + "quota": 0, + "resource": "limits.memory", + "type": "used" } }, "metricset": { @@ -465,9 +465,9 @@ "namespace": "rqtest", "resourcequota": { "name": "objects", - "resource": "pods", - "resourcequota": 3, - "type": "hard" + "quota": 0, + "resource": "persistentvolumeclaims", + "type": "used" } }, "metricset": { @@ -489,9 +489,9 @@ "namespace": "rqtest", "resourcequota": { "name": "objects", - "resource": "services.loadbalancers", - "resourcequota": 1, - "type": "hard" + "quota": 1, + "resource": "secrets", + "type": "used" } }, "metricset": { @@ -512,9 +512,9 @@ "kubernetes": { "namespace": "rqtest", "resourcequota": { - "name": "objects", - "resource": "secrets", - "resourcequota": 1, + "name": "resources", + "quota": 0, + "resource": "limits.cpu", "type": "used" } }, @@ -537,8 +537,8 @@ "namespace": "rqtest", "resourcequota": { "name": "objects", - "resource": "configmaps", - "resourcequota": 0, + "quota": 0, + "resource": "pods", "type": "used" } }, @@ -560,10 +560,10 @@ "kubernetes": { "namespace": "rqtest", "resourcequota": { - "name": "resources", - "resource": "limits.cpu", - "resourcequota": 0, - "type": "used" + "name": "objects", + "quota": 1, + "resource": "services.loadbalancers", + "type": "hard" } }, "metricset": { diff --git a/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go b/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go index d669038cfabf..be30012a8832 100644 --- a/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go +++ b/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go @@ -53,7 +53,7 @@ func NewResourceQuotaMetricSet(base mb.BaseMetricSet) (mb.MetricSet, error) { mapping: &p.MetricsMapping{ Metrics: map[string]p.MetricMap{ "kube_resourcequota_created": p.Metric("created.sec"), - "kube_resourcequota": p.Metric("resourcequota"), + "kube_resourcequota": p.Metric("quota"), }, Labels: map[string]p.LabelMap{ "namespace": p.KeyLabel(mb.ModuleDataKey + ".namespace"), @@ -68,8 +68,6 @@ func NewResourceQuotaMetricSet(base mb.BaseMetricSet) (mb.MetricSet, error) { // Fetch prometheus metrics and treats those prefixed by mb.ModuleDataKey as // module rooted fields at the event that gets reported -// -// Copied from other kube state metrics. func (m *ResourceQuotaMetricSet) Fetch(reporter mb.ReporterV2) { events, err := m.prometheus.GetProcessedMetrics(m.mapping) if err != nil { From c3a8a35123e1ed4059ad1dcb035223dfa3a997cf Mon Sep 17 00:00:00 2001 From: Pablo Mercado Date: Mon, 16 Sep 2019 20:41:15 +0200 Subject: [PATCH 06/11] add missing data.json example --- .../state_resourcequota/_meta/data.json | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/metricbeat/module/kubernetes/state_resourcequota/_meta/data.json b/metricbeat/module/kubernetes/state_resourcequota/_meta/data.json index 2c63c0851048..a74695a7d17d 100644 --- a/metricbeat/module/kubernetes/state_resourcequota/_meta/data.json +++ b/metricbeat/module/kubernetes/state_resourcequota/_meta/data.json @@ -1,2 +1,56 @@ { + "@timestamp": "2019-09-16T18:37:16.237Z", + "@metadata": { + "beat": "metricbeat", + "type": "_doc", + "version": "8.0.0" + }, + "agent": { + "ephemeral_id": "9a223001-a65f-4460-b106-553151987b09", + "hostname": "minikube", + "id": "191c7322-6d36-4f6c-b451-d0302b96841b", + "version": "8.0.0", + "type": "metricbeat" + }, + "kubernetes": { + "namespace": "rqtest", + "resourcequota": { + "quota": 2, + "name": "objects", + "resource": "services", + "type": "hard" + } + }, + "event": { + "module": "kubernetes", + "duration": 13626177, + "dataset": "kubernetes.resourcequota" + }, + "metricset": { + "period": 10000, + "name": "state_resourcequota" + }, + "service": { + "address": "kube-state-metrics.kube-system:8080", + "type": "kubernetes" + }, + "ecs": { + "version": "1.1.0" + }, + "host": { + "name": "minikube", + "architecture": "x86_64", + "os": { + "kernel": "4.15.0", + "codename": "bionic", + "platform": "ubuntu", + "version": "18.04.3 LTS (Bionic Beaver)", + "family": "debian", + "name": "Ubuntu" + }, + "containerized": false, + "hostname": "minikube" + } + } } + \ No newline at end of file From 0a30428465c0ef527c396df9410a8652357b44b6 Mon Sep 17 00:00:00 2001 From: Pablo Mercado Date: Tue, 17 Sep 2019 08:52:24 +0200 Subject: [PATCH 07/11] copy how events are put up --- .../test/kube-state-metrics.1.7.expected | 48 +++++++++---------- .../state_resourcequota.go | 37 +++++++------- 2 files changed, 45 insertions(+), 40 deletions(-) diff --git a/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7.expected b/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7.expected index 8c3dc25361f5..80ee16ce3699 100644 --- a/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7.expected +++ b/metricbeat/module/kubernetes/state_resourcequota/_meta/test/kube-state-metrics.1.7.expected @@ -1,6 +1,6 @@ [ { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -22,7 +22,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -44,7 +44,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -66,7 +66,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -88,7 +88,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -110,7 +110,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -132,7 +132,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -154,7 +154,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -176,7 +176,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -198,7 +198,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -220,7 +220,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -242,7 +242,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -264,7 +264,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -286,7 +286,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -308,7 +308,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -330,7 +330,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -352,7 +352,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -374,7 +374,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -396,7 +396,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -418,7 +418,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -440,7 +440,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -462,7 +462,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -484,7 +484,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, @@ -506,7 +506,7 @@ "DisableTimeSeries": false }, { - "RootFields": null, + "RootFields": {}, "ModuleFields": { "namespace": "rqtest" }, diff --git a/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go b/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go index be30012a8832..e33b9a003feb 100644 --- a/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go +++ b/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go @@ -18,7 +18,6 @@ package state_resourcequota import ( - "github.com/elastic/beats/libbeat/common" p "github.com/elastic/beats/metricbeat/helper/prometheus" "github.com/elastic/beats/metricbeat/mb" ) @@ -77,24 +76,30 @@ func (m *ResourceQuotaMetricSet) Fetch(reporter mb.ReporterV2) { } for _, event := range events { - var moduleFieldsMapStr common.MapStr - moduleFields, ok := event[mb.ModuleDataKey] - if ok { - moduleFieldsMapStr, ok = moduleFields.(common.MapStr) - if !ok { - m.Logger().Errorf("error trying to convert '%s' from event to common.MapStr", mb.ModuleDataKey) - } - } - delete(event, mb.ModuleDataKey) - - if reported := reporter.Event(mb.Event{ - MetricSetFields: event, - ModuleFields: moduleFieldsMapStr, - Namespace: "kubernetes.resourcequota", - }); !reported { + event[mb.NamespaceKey] = "resourcequota" + reported := reporter.Event(mb.TransformMapStrToEvent("kubernetes", event, nil)) + if !reported { m.Logger().Debug("error trying to emit event") return } + // var moduleFieldsMapStr common.MapStr + // moduleFields, ok := event[mb.ModuleDataKey] + // if ok { + // moduleFieldsMapStr, ok = moduleFields.(common.MapStr) + // if !ok { + // m.Logger().Errorf("error trying to convert '%s' from event to common.MapStr", mb.ModuleDataKey) + // } + // } + // delete(event, mb.ModuleDataKey) + + // if reported := reporter.Event(mb.Event{ + // MetricSetFields: event, + // ModuleFields: moduleFieldsMapStr, + // Namespace: "kubernetes.resourcequota", + // }); !reported { + // m.Logger().Debug("error trying to emit event") + // return + // } } return From 8e855797ed7812b228f970289e03cbcb85c9376d Mon Sep 17 00:00:00 2001 From: Pablo Mercado Date: Tue, 17 Sep 2019 09:49:14 +0200 Subject: [PATCH 08/11] add state_resourceqouta to config reference --- deploy/kubernetes/metricbeat-kubernetes.yaml | 2 ++ .../metricbeat/metricbeat-deployment-configmap.yaml | 2 ++ metricbeat/docs/modules/kubernetes.asciidoc | 2 ++ metricbeat/metricbeat.reference.yml | 2 ++ metricbeat/module/kubernetes/_meta/config.reference.yml | 2 ++ metricbeat/module/kubernetes/_meta/config.yml | 1 + metricbeat/module/kubernetes/state_resourcequota/README.md | 4 ++-- metricbeat/modules.d/kubernetes.yml.disabled | 1 + x-pack/metricbeat/metricbeat.reference.yml | 2 ++ 9 files changed, 16 insertions(+), 2 deletions(-) diff --git a/deploy/kubernetes/metricbeat-kubernetes.yaml b/deploy/kubernetes/metricbeat-kubernetes.yaml index 8b887bd16306..8d1538f6a690 100644 --- a/deploy/kubernetes/metricbeat-kubernetes.yaml +++ b/deploy/kubernetes/metricbeat-kubernetes.yaml @@ -223,6 +223,8 @@ data: - state_replicaset - state_pod - state_container + - state_cronjob + - state_resourcequota # Uncomment this to get k8s events: #- event period: 10s diff --git a/deploy/kubernetes/metricbeat/metricbeat-deployment-configmap.yaml b/deploy/kubernetes/metricbeat/metricbeat-deployment-configmap.yaml index 62cbd79f5600..4a3cf4e2f7d5 100644 --- a/deploy/kubernetes/metricbeat/metricbeat-deployment-configmap.yaml +++ b/deploy/kubernetes/metricbeat/metricbeat-deployment-configmap.yaml @@ -41,6 +41,8 @@ data: - state_replicaset - state_pod - state_container + - state_cronjob + - state_resourcequota # Uncomment this to get k8s events: #- event period: 10s diff --git a/metricbeat/docs/modules/kubernetes.asciidoc b/metricbeat/docs/modules/kubernetes.asciidoc index 61dedf11734e..48355e3f7b0a 100644 --- a/metricbeat/docs/modules/kubernetes.asciidoc +++ b/metricbeat/docs/modules/kubernetes.asciidoc @@ -92,6 +92,8 @@ metricbeat.modules: - state_pod - state_container - state_cronjob + - state_resourcequota + period: 10s hosts: ["kube-state-metrics:8080"] diff --git a/metricbeat/metricbeat.reference.yml b/metricbeat/metricbeat.reference.yml index 57fc03c1d30b..074d85c5b264 100644 --- a/metricbeat/metricbeat.reference.yml +++ b/metricbeat/metricbeat.reference.yml @@ -448,6 +448,8 @@ metricbeat.modules: - state_pod - state_container - state_cronjob + - state_resourcequota + period: 10s hosts: ["kube-state-metrics:8080"] diff --git a/metricbeat/module/kubernetes/_meta/config.reference.yml b/metricbeat/module/kubernetes/_meta/config.reference.yml index 1a267f8d4409..caf1e999b38f 100644 --- a/metricbeat/module/kubernetes/_meta/config.reference.yml +++ b/metricbeat/module/kubernetes/_meta/config.reference.yml @@ -32,6 +32,8 @@ - state_pod - state_container - state_cronjob + - state_resourcequota + period: 10s hosts: ["kube-state-metrics:8080"] diff --git a/metricbeat/module/kubernetes/_meta/config.yml b/metricbeat/module/kubernetes/_meta/config.yml index 4f90ff89d5ad..f5fb27c6b337 100644 --- a/metricbeat/module/kubernetes/_meta/config.yml +++ b/metricbeat/module/kubernetes/_meta/config.yml @@ -32,6 +32,7 @@ # - state_pod # - state_container # - state_cronjob +# - state_resourcequota # period: 10s # hosts: ["kube-state-metrics:8080"] # add_metadata: true diff --git a/metricbeat/module/kubernetes/state_resourcequota/README.md b/metricbeat/module/kubernetes/state_resourcequota/README.md index fa8af09537c5..fe34b97099a9 100644 --- a/metricbeat/module/kubernetes/state_resourcequota/README.md +++ b/metricbeat/module/kubernetes/state_resourcequota/README.md @@ -36,12 +36,12 @@ https://github.com/elastic/beats/tree/master/metricbeat/module/kubernetes/_meta/ The manifest are found at this location, not only creates the `ResourceQuota` objects, but also other resources that will fail because of the existence of the quota at the namespace: -https://github.com/elastic/beats/tree/master/metricbeat/module/kubernetes/_meta/test/docs/02_objects/resourceqouta.yaml +https://github.com/elastic/beats/tree/master/metricbeat/module/kubernetes/_meta/test/docs/02_objects/resourcequota.yaml It will create - named `rqtest` namespace, which will be assigned the resource quotas -- named `resources` resource qouta, which will limit the ammount of CPU and memory that can be assigned to the namespace. (This settings won't be put to test) +- named `resources` resource quota, which will limit the ammount of CPU and memory that can be assigned to the namespace. (This settings won't be put to test) - `objects` resource quota, which will limit the quantity of objects that can be created at this namespace: - 3 Pods - 1 Configmap diff --git a/metricbeat/modules.d/kubernetes.yml.disabled b/metricbeat/modules.d/kubernetes.yml.disabled index dfc5db4bba27..202121020c2a 100644 --- a/metricbeat/modules.d/kubernetes.yml.disabled +++ b/metricbeat/modules.d/kubernetes.yml.disabled @@ -35,6 +35,7 @@ # - state_pod # - state_container # - state_cronjob +# - state_resourcequota # period: 10s # hosts: ["kube-state-metrics:8080"] # add_metadata: true diff --git a/x-pack/metricbeat/metricbeat.reference.yml b/x-pack/metricbeat/metricbeat.reference.yml index 4cfee3dccc72..6b032ba245ba 100644 --- a/x-pack/metricbeat/metricbeat.reference.yml +++ b/x-pack/metricbeat/metricbeat.reference.yml @@ -518,6 +518,8 @@ metricbeat.modules: - state_pod - state_container - state_cronjob + - state_resourcequota + period: 10s hosts: ["kube-state-metrics:8080"] From 85ed2c1529f01f6ba778c2a6a6fc3ca95fdc109e Mon Sep 17 00:00:00 2001 From: Pablo Mercado Date: Tue, 17 Sep 2019 11:30:32 +0200 Subject: [PATCH 09/11] remove blank --- metricbeat/docs/modules/kubernetes.asciidoc | 1 - metricbeat/metricbeat.reference.yml | 1 - metricbeat/module/kubernetes/_meta/config.reference.yml | 1 - x-pack/metricbeat/metricbeat.reference.yml | 1 - 4 files changed, 4 deletions(-) diff --git a/metricbeat/docs/modules/kubernetes.asciidoc b/metricbeat/docs/modules/kubernetes.asciidoc index 48355e3f7b0a..3a3668cbcf0e 100644 --- a/metricbeat/docs/modules/kubernetes.asciidoc +++ b/metricbeat/docs/modules/kubernetes.asciidoc @@ -93,7 +93,6 @@ metricbeat.modules: - state_container - state_cronjob - state_resourcequota - period: 10s hosts: ["kube-state-metrics:8080"] diff --git a/metricbeat/metricbeat.reference.yml b/metricbeat/metricbeat.reference.yml index 074d85c5b264..d2d9a0bdb434 100644 --- a/metricbeat/metricbeat.reference.yml +++ b/metricbeat/metricbeat.reference.yml @@ -449,7 +449,6 @@ metricbeat.modules: - state_container - state_cronjob - state_resourcequota - period: 10s hosts: ["kube-state-metrics:8080"] diff --git a/metricbeat/module/kubernetes/_meta/config.reference.yml b/metricbeat/module/kubernetes/_meta/config.reference.yml index caf1e999b38f..5214ce85116d 100644 --- a/metricbeat/module/kubernetes/_meta/config.reference.yml +++ b/metricbeat/module/kubernetes/_meta/config.reference.yml @@ -33,7 +33,6 @@ - state_container - state_cronjob - state_resourcequota - period: 10s hosts: ["kube-state-metrics:8080"] diff --git a/x-pack/metricbeat/metricbeat.reference.yml b/x-pack/metricbeat/metricbeat.reference.yml index 6b032ba245ba..b984310ea6b7 100644 --- a/x-pack/metricbeat/metricbeat.reference.yml +++ b/x-pack/metricbeat/metricbeat.reference.yml @@ -519,7 +519,6 @@ metricbeat.modules: - state_container - state_cronjob - state_resourcequota - period: 10s hosts: ["kube-state-metrics:8080"] From 41dd219a01d536e266c5c7e087a2b94e19a27554 Mon Sep 17 00:00:00 2001 From: Pablo Mercado Date: Tue, 17 Sep 2019 13:26:40 +0200 Subject: [PATCH 10/11] remove commented code --- .../state_resourcequota.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go b/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go index e33b9a003feb..0cd31adf8ac1 100644 --- a/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go +++ b/metricbeat/module/kubernetes/state_resourcequota/state_resourcequota.go @@ -82,25 +82,6 @@ func (m *ResourceQuotaMetricSet) Fetch(reporter mb.ReporterV2) { m.Logger().Debug("error trying to emit event") return } - // var moduleFieldsMapStr common.MapStr - // moduleFields, ok := event[mb.ModuleDataKey] - // if ok { - // moduleFieldsMapStr, ok = moduleFields.(common.MapStr) - // if !ok { - // m.Logger().Errorf("error trying to convert '%s' from event to common.MapStr", mb.ModuleDataKey) - // } - // } - // delete(event, mb.ModuleDataKey) - - // if reported := reporter.Event(mb.Event{ - // MetricSetFields: event, - // ModuleFields: moduleFieldsMapStr, - // Namespace: "kubernetes.resourcequota", - // }); !reported { - // m.Logger().Debug("error trying to emit event") - // return - // } } - return } From f682f0972c50a855a9a75899e70181fcabad6fc3 Mon Sep 17 00:00:00 2001 From: odacremolbap Date: Fri, 4 Oct 2019 13:25:42 +0200 Subject: [PATCH 11/11] add changelog --- CHANGELOG.next.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index ccee25564c68..d04fd180e93e 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -394,7 +394,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Add `instance` label by default when using Prometheus collector. {pull}13737[13737] - Add Apache Tomcat module {pull}13491[13491] - Add `job` label by default when using Prometheus collector. {pull}13878[13878] - +- Add `state_resourcequota` metricset for Kubernetes module. {pull}13693[13693] *Packetbeat*