diff --git a/examples/support/metrics/Makefile b/examples/support/metrics/Makefile index 27eaabbc9a..05a5f6bcb6 100644 --- a/examples/support/metrics/Makefile +++ b/examples/support/metrics/Makefile @@ -4,7 +4,7 @@ .PHONY: 2-create-metric 2-create-metric: - kubectl apply -f load-generator-job.yaml + kubectl apply -f metric.yaml .PHONY: 3-generate-load 3-generate-load: diff --git a/examples/support/metrics/deployment.yaml b/examples/support/metrics/deployment.yaml index bab988db02..3fd85a59df 100644 --- a/examples/support/metrics/deployment.yaml +++ b/examples/support/metrics/deployment.yaml @@ -52,6 +52,5 @@ spec: - name: http port: 9000 protocol: TCP - nodePort: 30900 targetPort: 9000 type: ClusterIP diff --git a/examples/support/metrics/metric.yaml b/examples/support/metrics/metric.yaml index 55ff6d7ba4..ea370318f8 100644 --- a/examples/support/metrics/metric.yaml +++ b/examples/support/metrics/metric.yaml @@ -15,4 +15,4 @@ spec: provider: name: prometheus query: 'avg(rate(container_cpu_cfs_throttled_seconds_total{container="server", namespace="podtato-metrics"}[1m]))' - fetchIntervalSeconds: 60 + fetchIntervalSeconds: 10