Merge pull request #342 from 3dwardch3ng/infra/prometheus

update ports
This commit is contained in:
2024-06-26 17:10:31 +10:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ spec:
- "--config.file=/etc/prometheus/prometheus.yaml"
- "--storage.tsdb.path=/prometheus/"
ports:
- containerPort: 9999
- containerPort: 9090
resources:
requests:
cpu: 500m

View File

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