From 74e3e9f4420abf7bad70b170476dae0a2cd4d379 Mon Sep 17 00:00:00 2001 From: "liuji@qniao.cn" Date: Mon, 17 Aug 2020 16:43:47 +0800 Subject: [PATCH] test --- k8s.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/k8s.yaml b/k8s.yaml index db4adb0..1fdb6ee 100644 --- a/k8s.yaml +++ b/k8s.yaml @@ -6,6 +6,10 @@ metadata: type: backend name: backendmonitor #jenkins-backend-demo namespace: backend + annotations: + prometheus.io/scrape: 'true' + prometheus.io/path: '/actuator/prometheus' #'/metrics' + prometheus.io/port: '30011' #'8080' spec: selector: matchLabels: @@ -38,7 +42,7 @@ metadata: annotations: prometheus.io/scrape: 'true' prometheus.io/path: '/actuator/prometheus' #'/metrics' - prometheus.io/port: '30011' #'8080' + prometheus.io/port: '8080' #'8080' 30011 spec: selector: app: jenkins-backend-demo