prometheus scraping endpoint now on a separate port

This commit is contained in:
Erik Brakkee 2024-08-08 20:31:02 +02:00
parent 210b4ca0dd
commit d27d5819eb
2 changed files with 3 additions and 4 deletions

View File

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

View File

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