@@ -26,7 +26,7 @@ spec:
|
||||
- "--config.file=/etc/prometheus/prometheus.yaml"
|
||||
- "--storage.tsdb.path=/prometheus/"
|
||||
ports:
|
||||
- containerPort: 9999
|
||||
- containerPort: 9090
|
||||
resources:
|
||||
requests:
|
||||
cpu: 500m
|
||||
|
||||
@@ -5,6 +5,7 @@ metadata:
|
||||
namespace: prometheus
|
||||
annotations:
|
||||
prometheus.io/scrape: 'true'
|
||||
prometheus.io/path: '/data/metrics'
|
||||
prometheus.io/port: '9999'
|
||||
spec:
|
||||
selector:
|
||||
@@ -12,4 +13,6 @@ spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 9999
|
||||
targetPort: 9999
|
||||
targetPort: 9090
|
||||
protocol: TCP
|
||||
name: http
|
||||
Reference in New Issue
Block a user