Scape nginx metrics on service
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
parent
3baa5597fa
commit
659771d4b9
@ -16,6 +16,24 @@ spec:
|
||||
name: https
|
||||
type: LoadBalancer
|
||||
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: nginx-ingress-service-metrics
|
||||
namespace: kube-system
|
||||
annotations:
|
||||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "10254"
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: ingress-nginx
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 10254
|
||||
targetPort: 10254
|
||||
name: metrics
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
@ -91,9 +109,6 @@ spec:
|
||||
labels:
|
||||
app.kubernetes.io/name: ingress-nginx
|
||||
app.kubernetes.io/part-of: ingress-nginx
|
||||
annotations:
|
||||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "http-metrics"
|
||||
spec:
|
||||
containers:
|
||||
- args:
|
||||
|
Loading…
Reference in New Issue
Block a user