prometheus scraping endpoint now on a separate port

This commit is contained in:
Erik Brakkee 2024-08-08 20:31:02 +02:00 committed by Erik Brakkee
parent b4b962d859
commit 8b4bcde9c9
2 changed files with 3 additions and 4 deletions

View File

@ -8,9 +8,9 @@ spec:
ports: ports:
- port: 8000 - port: 8000
protocol: TCP protocol: TCP
targetPort: 8000 name: http
- port: 8001 - port: 8001
protocol: TCP protocol: TCP
targetPort: prometheus name: prometheus
selector: selector:
app: converge app: converge

View File

@ -2,14 +2,13 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor kind: ServiceMonitor
metadata: metadata:
name: converge-monitoring name: converge-monitoring
namespace: wamblee-org
spec: spec:
endpoints: endpoints:
- honorLabels: true - honorLabels: true
path: /metrics path: /metrics
targetPort: 8000
scheme: http scheme: http
scrapeTimeout: 30s scrapeTimeout: 30s
port: prometheus
selector: selector:
matchLabels: matchLabels:
app: converge app: converge