Files
Michael DiLeo 7327d77dcd redaction (#1)
Add the redacted source file for demo purposes

Reviewed-on: https://source.michaeldileo.org/michael_dileo/Keybard-Vagabond-Demo/pulls/1
Co-authored-by: Michael DiLeo <michael_dileo@proton.me>
Co-committed-by: Michael DiLeo <michael_dileo@proton.me>
2025-12-24 13:40:47 +00:00

44 lines
1.0 KiB
YAML

---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: pixelfed-monitoring
namespace: pixelfed-application
labels:
app: pixelfed
spec:
selector:
matchLabels:
app: pixelfed
component: web
endpoints:
# Health/instance monitoring endpoint (always available)
- port: http
interval: 30s
path: /api/v1/instance
scheme: http
scrapeTimeout: 10s
# Prometheus metrics endpoint (if available)
- port: http
interval: 30s
path: /metrics
scheme: http
scrapeTimeout: 10s
---
# Additional ServiceMonitor for worker logs
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: pixelfed-worker-monitoring
namespace: pixelfed-application
labels:
app: pixelfed
component: worker
spec:
# For worker pods, we'll monitor via pod selector since there's no service
selector:
matchLabels:
app: pixelfed
component: worker
# Note: Workers don't expose HTTP endpoints, but this enables log collection
endpoints: []