Skip to content

Commit

Permalink
ROX-15587: scrape infra-server metrics with a service monitor (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
tommartensen authored Mar 19, 2024
1 parent 7b25ce2 commit 901fe36
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 8 deletions.
27 changes: 27 additions & 0 deletions chart/infra-server/templates/monitoring/servicemonitors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: argo-workflows
namespace: argo
spec:
endpoints:
- port: metrics
selector:
matchLabels:
app: workflow-controller
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: infra-server
namespace: infra
spec:
endpoints:
- port: metrics
scheme: https
tlsConfig:
insecureSkipVerify: true
selector:
matchLabels:
app: infra-server
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@ spec:
selector:
app.kubernetes.io/component: workflow-controller
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
apiVersion: v1
kind: Service
metadata:
name: argo-workflows
namespace: argo
labels:
app: infra-server
name: infra-server-metrics
namespace: infra
spec:
endpoints:
- port: metrics
ports:
- name: metrics
port: 9101
protocol: TCP
targetPort: 9101
selector:
matchLabels:
app: workflow-controller
app.kubernetes.io/name: infra-server

0 comments on commit 901fe36

Please sign in to comment.