Skip to content

Commit 8836f74

Browse files
committed
update PodMonitor.yaml
1 parent 36c1a74 commit 8836f74

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

mse-simple-demo/ZuulGateway/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ spring.thymeleaf.suffix=.html
2222
spring.thymeleaf.cache=false
2323

2424
management.endpoints.web.exposure.include=prometheus
25-
management.metrics.tags.application=spring-cloud-a
25+
management.metrics.tags.application=spring-cloud-zuul

mse-simple-demo/helm/mse-simple-demo/templates/PodMonitor.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,21 @@ spec:
3333
selector:
3434
matchLabels:
3535
app: spring-cloud-gateway
36+
---
37+
apiVersion: monitoring.coreos.com/v1
38+
kind: PodMonitor
39+
metadata:
40+
name: spring-cloud-zuul
41+
namespace: {{ .Release.Namespace }}
42+
spec:
43+
podMetricsEndpoints:
44+
- interval: 30s
45+
port: http-port
46+
path: /actuator/prometheus
47+
namespaceSelector:
48+
matchNames:
49+
- {{ .Release.Namespace }}
50+
selector:
51+
matchLabels:
52+
app: spring-cloud-zuul
3653
{{ end }}

0 commit comments

Comments
 (0)