Scape nginx metrics on service

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2021-12-19 17:08:53 +00:00
parent 3baa5597fa
commit 659771d4b9
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -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: