Skip to content

Commit

Permalink
Merge pull request #2572 from SachinVarghese/metrics
Browse files Browse the repository at this point in the history
Adding prom annotations for feedback metrics server example
  • Loading branch information
axsaucedo authored Oct 22, 2020
2 parents fec5417 + 6e9ba49 commit 7abd510
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/feedback/metrics-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
```
Expand Down

0 comments on commit 7abd510

Please sign in to comment.