kube-state-metrics

PromQL to graph number of Kubernetes PODs created per Hour

﹥>﹥吖頭↗ 提交于 2020-08-24 10:21:07
问题 I'm using Kubernetes with kube-state-metrics and Prometheus/grafana to graph various metrics of the Kubernetes Cluster. Now I'd like to Graph how many new PODs have been created per Hour over Time. The Metric kube_pod_created contains the Creation-Timestamp as Value but since there is a Value in each Time-Slot, the following Query also returns Results >0 for Time-Slots where no new PODs have been created: count(rate(kube_pod_created[1h])) by(namespace) Can I use the Value in some sort of

PromQL to graph number of Kubernetes PODs created per Hour

倾然丶 夕夏残阳落幕 提交于 2020-08-24 10:21:03
问题 I'm using Kubernetes with kube-state-metrics and Prometheus/grafana to graph various metrics of the Kubernetes Cluster. Now I'd like to Graph how many new PODs have been created per Hour over Time. The Metric kube_pod_created contains the Creation-Timestamp as Value but since there is a Value in each Time-Slot, the following Query also returns Results >0 for Time-Slots where no new PODs have been created: count(rate(kube_pod_created[1h])) by(namespace) Can I use the Value in some sort of

PromQL to graph number of Kubernetes PODs created per Hour

限于喜欢 提交于 2020-08-24 10:20:54
问题 I'm using Kubernetes with kube-state-metrics and Prometheus/grafana to graph various metrics of the Kubernetes Cluster. Now I'd like to Graph how many new PODs have been created per Hour over Time. The Metric kube_pod_created contains the Creation-Timestamp as Value but since there is a Value in each Time-Slot, the following Query also returns Results >0 for Time-Slots where no new PODs have been created: count(rate(kube_pod_created[1h])) by(namespace) Can I use the Value in some sort of