mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 20:14:32 +07:00
style: clean up monitor config
- Use YAML anchor - Use template for name and namespace
This commit is contained in:
parent
07e8f1881e
commit
25e34cf77f
@ -50,31 +50,15 @@ argo-cd:
|
||||
- secretName: argocd-tls-certificate
|
||||
hosts:
|
||||
- *host
|
||||
metrics:
|
||||
metrics: &metrics
|
||||
enabled: true
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
|
||||
controller:
|
||||
metrics:
|
||||
enabled: true
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
|
||||
metrics: *metrics
|
||||
repoServer:
|
||||
metrics:
|
||||
enabled: true
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
|
||||
metrics: *metrics
|
||||
redis:
|
||||
metrics:
|
||||
enabled: true
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
|
||||
metrics: *metrics
|
||||
dex:
|
||||
metrics:
|
||||
enabled: true
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
metrics: *metrics
|
||||
|
@ -2,12 +2,9 @@ ingress-nginx:
|
||||
controller:
|
||||
admissionWebhooks:
|
||||
timeoutSeconds: 30
|
||||
|
||||
metrics:
|
||||
enabled: true
|
||||
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
|
||||
tcp:
|
||||
22: gitea/gitea-ssh:22
|
||||
|
@ -1,5 +1,3 @@
|
||||
loki:
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
annotations: {}
|
||||
# scrapeTimeout: 10s
|
||||
|
@ -2,14 +2,14 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: longhorn
|
||||
namespace: longhorn-system
|
||||
name: {{ .Release.Name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: longhorn-manager
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- longhorn-system
|
||||
- {{ .Release.Namespace }}
|
||||
endpoints:
|
||||
- port: manager
|
||||
|
Loading…
Reference in New Issue
Block a user