add source code and readme

This commit is contained in:
2025-12-24 14:35:17 +01:00
parent 7c92e1e610
commit 74324d5a1b
331 changed files with 39272 additions and 1 deletions

View File

@@ -0,0 +1,37 @@
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: bookwyrm-monitoring
namespace: bookwyrm-application
labels:
app: bookwyrm
component: monitoring
spec:
selector:
matchLabels:
app: bookwyrm
component: web
endpoints:
- port: http
interval: 30s
path: /metrics
scheme: http
scrapeTimeout: 10s
honorLabels: true
relabelings:
- sourceLabels: [__meta_kubernetes_pod_name]
targetLabel: pod
- sourceLabels: [__meta_kubernetes_pod_node_name]
targetLabel: node
- sourceLabels: [__meta_kubernetes_namespace]
targetLabel: namespace
- sourceLabels: [__meta_kubernetes_service_name]
targetLabel: service
metricRelabelings:
- sourceLabels: [__name__]
regex: 'go_.*'
action: drop
- sourceLabels: [__name__]
regex: 'python_.*'
action: drop