Adding Prometheus metrics scrape annotations
Allow Prometheus automatic discovery of nginx metrics endpoint Fixed https://github.com/kubernetes/ingress/issues/464
This commit is contained in:
parent
62070a15e2
commit
6a38a1ac37
2 changed files with 6 additions and 0 deletions
|
|
@ -10,6 +10,9 @@ spec:
|
|||
metadata:
|
||||
labels:
|
||||
name: nginx-ingress-lb
|
||||
annotations:
|
||||
prometheus.io/port: '10254'
|
||||
prometheus.io/scrape: 'true'
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 60
|
||||
containers:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue