Add Prometheus scraping to Kubernetes

This commit is contained in:
Greg Hellings
2025-11-22 20:15:40 -06:00
parent 9497957ba5
commit 82acff5857
10 changed files with 244 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
apiVersion: v1
kind: Service
metadata:
name: prometheus
labels:
app: prometheus
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9090"
spec:
selector:
app: prometheus
type: ClusterIP
ports:
- port: 9090
targetPort: http
protocol: TCP
name: http