diff --git a/app.py b/app.py index 2d256b0..42360d9 100644 --- a/app.py +++ b/app.py @@ -97,8 +97,8 @@ def collect(self): pod_container_mem = container['usage']['memory'] pod_container_mem = pod_container_mem.translate(str.maketrans('', '', string.ascii_letters)) - metrics_pods_mem.add_sample('kube_metrics_server_pods_mem', value=int(pod_container_mem), labels={ 'pod_name': pod_name, 'pod_namespace': pod_namespace, 'pod_container_name': pod_container_name }) - metrics_pods_cpu.add_sample('kube_metrics_server_pods_cpu', value=int(pod_container_cpu), labels={ 'pod_name': pod_name, 'pod_namespace': pod_namespace, 'pod_container_name': pod_container_name }) + metrics_pods_mem.add_sample('kube_metrics_server_pods_mem', value=int(pod_container_mem), labels={ 'pod_name': pod_name, 'pod_namespace': pod_namespace, 'pod_container_name': pod_container_name }) + metrics_pods_cpu.add_sample('kube_metrics_server_pods_cpu', value=int(pod_container_cpu), labels={ 'pod_name': pod_name, 'pod_namespace': pod_namespace, 'pod_container_name': pod_container_name }) yield metrics_pods_mem yield metrics_pods_cpu diff --git a/deploy/deployment-metrics-server-exporter.yaml b/deploy/deployment-metrics-server-exporter.yaml index e7f75d6..8381cde 100644 --- a/deploy/deployment-metrics-server-exporter.yaml +++ b/deploy/deployment-metrics-server-exporter.yaml @@ -24,7 +24,7 @@ spec: serviceAccountName: metrics-server-exporter containers: - name: metrics-server-exporter - image: vivareal/metrics-server-exporter:v0.0.3 + image: vivareal/metrics-server-exporter:v0.0.4 imagePullPolicy: IfNotPresent ports: - containerPort: 8000