Tanguy Herbron
1830d126a5
Add ServiceMonitor resource to scrape /metrics endpoint. Said endpoint cannot be scrapped from outside of the cluster, as a special IngressRoute Middleware prevents the exposition of said endpoint.
15 lines
248 B
YAML
15 lines
248 B
YAML
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: gitea
|
|
namespace: gitea
|
|
labels:
|
|
team: core
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: gitea
|
|
endpoints:
|
|
- port: http
|
|
path: /metrics
|