Skip to content

Instantly share code, notes, and snippets.

---
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: replace-image-registry-docker
annotations:
pod-policies.kyverno.io/autogen-controllers: none
spec:
background: false
rules:
https://github.com/IBM/grafana-mezmo-datasource without MANIFEST.txt
curl 127.0.0.1:19323/v1/metrics
# HELP container_cpu_nr_periods_total Current cpu number of periods (only if controller is enabled)
# TYPE container_cpu_nr_periods_total gauge
container_cpu_nr_periods_total{container_id="51e3cb139e95dab950e416f13ef2b29908571c46a2cc2efe21fb187d3fb2b233",namespace="moby",runtime="io.containerd.runc.v2"} 66
container_cpu_nr_periods_total{container_id="ad31a5f14f64c7a21484b7226b75b2b32a7c9c338e2815037e960e5392eb05f5",namespace="moby",runtime="io.containerd.runc.v2"} 169
container_cpu_nr_periods_total{container_id="fbc32883407b0f7a849f2fcb1f3e4d0020c5edbafa5e97e8135a173c0858d704",namespace="moby",runtime="io.containerd.runc.v2"} 0
# HELP container_cpu_nr_throttled_total Total number of times tasks have been throttled (only if controller is enabled)
# TYPE container_cpu_nr_throttled_total gauge
container_cpu_nr_throttled_total{container_id="51e3cb139e95dab950e416f13ef2b29908571c46a2cc2efe21fb187d3fb2b233",namespace="moby",runtime="io.containerd.runc.v2"} 57
container_cpu_nr_throttl