Skip to content

Commit

Permalink
Added scraping by Prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
sbuliarca committed May 19, 2022
1 parent c69cf5b commit df0fe8b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions namespaced/metrics-apiserver/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
apiVersion: v1
kind: Service
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: /metrics
prometheus.io/port: "80"
labels:
app.kubernetes.io/name: keda-metrics-apiserver
app.kubernetes.io/part-of: keda-operator
Expand Down
23 changes: 23 additions & 0 deletions namespaced/operator/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
apiVersion: v1
kind: Service
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: /metrics
prometheus.io/port: "8080"
labels:
app.kubernetes.io/component: operator
app.kubernetes.io/part-of: keda-operator
app.kubernetes.io/version: 2.7.1
name: keda-operator
spec:
ports:
- name: http
port: 8080
targetPort: 8080
selector:
app: keda-operator
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -44,6 +64,9 @@ spec:
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 8081
name: ops
protocol: TCP
readinessProbe:
httpGet:
path: /readyz
Expand Down

0 comments on commit df0fe8b

Please sign in to comment.