Files
nixos/manifests/monitoring/service.yaml

19 lines
309 B
YAML

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