metricbeat/module/kubernetes/state_resourcequota/README.md
v1.7.0Docs 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
- kube_resourcequota{namespace,resourcequota,resource,type} Gauge
Info about existing `ResourceQuota` and current status
- kube_resourcequota_created{namespace,resourcequota} Gauge
Creation time for `ResourceQuota`
https://github.com/elastic/beats/tree/master/metricbeat/module/kubernetes/_meta/test
kube-state-metricsAs part of the referred document above, follow these instructions
ResourceQuota objectsThe 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:
It will create
named rqtest namespace, which will be assigned the resource quotas
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:
It will also create regular objects at that same namespace
Copy binary and metricbeat assets to the playground pod. The module file targeting ResourceQuota should look like this:
- module: kubernetes
enabled: true
metricsets:
- state_resourcequota
period: 10s
hosts: ["kube-state-metrics.kube-system:8080"]
in_cluster: true
You should see at elasticsearch/kibana:
Events that indicate a hard limit on services of type LoadBalancer
dataset: kubernetes.resourcequotakubernetes.resourcequota.name: objectskubernetes.resourcequota.resource: services.loadbalancerskubernetes.resourcequota.quota: 1kubernetes.resourcequota.type: hardEvents that indicate the number of service type LoadBalancer used
dataset: kubernetes.resourcequotakubernetes.resourcequota.name: objectskubernetes.resourcequota.resource: services.loadbalancerskubernetes.resourcequota.quota: 1kubernetes.resourcequota.type: used