From 6e9ba495a5ee5448dd6bd37d027280df5b6542dc Mon Sep 17 00:00:00 2001 From: SachinVarghese Date: Thu, 8 Oct 2020 12:42:15 +0100 Subject: [PATCH] Adding prom annotations for feedback metrics server example --- examples/feedback/metrics-server/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/examples/feedback/metrics-server/README.md b/examples/feedback/metrics-server/README.md index fe899b8a5a..b9af09b2ef 100644 --- a/examples/feedback/metrics-server/README.md +++ b/examples/feedback/metrics-server/README.md @@ -118,6 +118,9 @@ spec: app: seldon-multiclass-model-metrics template: metadata: + annotations: + prometheus.io/path: "/v1/metrics" + prometheus.io/scrape: "true" labels: app: seldon-multiclass-model-metrics spec: @@ -152,6 +155,10 @@ spec: value: "alibi-detect-server:1.3.0-dev" - name: "PREDICTOR_ID" value: "default" + ports: + - containerPort: 8080 + name: metrics + protocol: TCP --- apiVersion: v1 kind: Service @@ -209,6 +216,8 @@ spec: metadata: annotations: autoscaling.knative.dev/minScale: "1" + prometheus.io/path: "/v1/metrics" + prometheus.io/scrape: "true" spec: containers: - image: "seldonio/alibi-detect-server:1.3.0-dev" @@ -237,6 +246,10 @@ spec: value: "alibi-detect-server:1.3.0-dev" - name: "PREDICTOR_ID" value: "default" + ports: + - containerPort: 8080 + name: metrics + protocol: TCP securityContext: runAsUser: 8888 ```