From 7763218e2a79c04f8315acfb4502db8c62154ed7 Mon Sep 17 00:00:00 2001 From: Peng Gao Date: Mon, 23 Sep 2019 16:38:45 +0800 Subject: [PATCH] Add Prometheus scrape annotations to example manifests Provide examples for Prometheus metrics scrape settings. Signed-off-by: Peng Gao --- .../aws/examples/cluster-autoscaler-autodiscover.yaml | 3 +++ .../aws/examples/cluster-autoscaler-multi-asg.yaml | 3 +++ .../cloudprovider/aws/examples/cluster-autoscaler-one-asg.yaml | 3 +++ .../aws/examples/cluster-autoscaler-run-on-master.yaml | 3 +++ 4 files changed, 12 insertions(+) diff --git a/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml b/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml index 3e40090f7717..116ed036c906 100644 --- a/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml +++ b/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml @@ -126,6 +126,9 @@ spec: metadata: labels: app: cluster-autoscaler + annotations: + prometheus.io/scrape: 'true' + prometheus.io/port: '8085' spec: serviceAccountName: cluster-autoscaler containers: diff --git a/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-multi-asg.yaml b/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-multi-asg.yaml index ae5358fe5b88..836cd3c478dc 100644 --- a/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-multi-asg.yaml +++ b/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-multi-asg.yaml @@ -126,6 +126,9 @@ spec: metadata: labels: app: cluster-autoscaler + annotations: + prometheus.io/scrape: 'true' + prometheus.io/port: '8085' spec: serviceAccountName: cluster-autoscaler containers: diff --git a/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-one-asg.yaml b/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-one-asg.yaml index 3266ce5275c0..a17043854a30 100644 --- a/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-one-asg.yaml +++ b/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-one-asg.yaml @@ -126,6 +126,9 @@ spec: metadata: labels: app: cluster-autoscaler + annotations: + prometheus.io/scrape: 'true' + prometheus.io/port: '8085' spec: serviceAccountName: cluster-autoscaler containers: diff --git a/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-run-on-master.yaml b/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-run-on-master.yaml index a290c2ffff15..3cc121fd5483 100644 --- a/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-run-on-master.yaml +++ b/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-run-on-master.yaml @@ -126,6 +126,9 @@ spec: metadata: labels: app: cluster-autoscaler + annotations: + prometheus.io/scrape: 'true' + prometheus.io/port: '8085' spec: serviceAccountName: cluster-autoscaler tolerations: