File tree Expand file tree Collapse file tree 3 files changed +8
-18
lines changed Expand file tree Collapse file tree 3 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ metadata:
12
12
spec :
13
13
clusterIP : None
14
14
ports :
15
- - name : {{ .Values. prometheus.service.endpoint }}
15
+ - name : prometheus
16
16
protocol : TCP
17
17
port : {{ .Values.prometheus.port }}
18
18
targetPort : {{ .Values.prometheus.port }}
Original file line number Diff line number Diff line change 1474
1474
true
1475
1475
]
1476
1476
},
1477
- "endpoint" : {
1478
- "type" : " string" ,
1479
- "default" : " prometheus" ,
1480
- "title" : " The name of the port endpoint" ,
1481
- "examples" : [
1482
- " prometheus"
1483
- ]
1484
- },
1485
1477
"labels" : {
1486
1478
"type" : " object" ,
1487
1479
"default" : {},
1780
1772
"scheme" : " http" ,
1781
1773
"service" : {
1782
1774
"create" : false ,
1783
- "endpoint" : " prometheus" ,
1784
1775
"labels" : {}
1785
1776
},
1786
1777
"serviceMonitor" : {
Original file line number Diff line number Diff line change @@ -461,11 +461,8 @@ prometheus:
461
461
# # Requires prometheus.create=true
462
462
create : false
463
463
464
- # # Name of the endpoint exposed by the service.
465
- # # Used by the ServiceMonitor's `endpoints` field to discover service endpoints.
466
- endpoint : " prometheus"
467
-
468
- labels : {}
464
+ labels :
465
+ service : " nginx-ingress-prometheus-service"
469
466
470
467
serviceMonitor :
471
468
# # Creates a serviceMonitor to expose statistics on the kubernetes pods.
@@ -475,11 +472,13 @@ prometheus:
475
472
labels : {}
476
473
477
474
# # A set of labels to allow the selection of endpoints for the ServiceMonitor.
478
- selectorMatchLabels : {}
475
+ selectorMatchLabels :
476
+ service : " nginx-ingress-prometheus-service"
479
477
480
478
# # A list of endpoints allowed as part of this ServiceMonitor.
481
- endpoints : []
482
- # - port: prometheus
479
+ # # Matches on the name of a Service port.
480
+ endpoints :
481
+ - port : prometheus
483
482
484
483
serviceInsight :
485
484
# # Expose NGINX Plus Service Insight endpoint.
You can’t perform that action at this time.
0 commit comments