mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-23 01:14:38 +07:00
feat(system): enable service monitors (#9)
* feat(system): enable service monitors * chore: bump cloudflared chart version * doc: update contributors list
This commit is contained in:
parent
f8fa3858f6
commit
0c142f8183
@ -49,3 +49,41 @@ argo-cd:
|
||||
- secretName: argocd-tls-certificate
|
||||
hosts:
|
||||
- *host
|
||||
metrics:
|
||||
enabled: true
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
additionalLabels:
|
||||
release: "kube-prometheus-stack"
|
||||
|
||||
controller:
|
||||
metrics:
|
||||
enabled: true
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
additionalLabels:
|
||||
release: "kube-prometheus-stack"
|
||||
|
||||
repoServer:
|
||||
metrics:
|
||||
enabled: true
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
additionalLabels:
|
||||
release: "kube-prometheus-stack"
|
||||
|
||||
redis:
|
||||
metrics:
|
||||
enabled: true
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
additionalLabels:
|
||||
release: "kube-prometheus-stack"
|
||||
|
||||
dex:
|
||||
metrics:
|
||||
enabled: true
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
additionalLabels:
|
||||
release: "kube-prometheus-stack"
|
||||
|
@ -2,6 +2,6 @@
|
||||
|
||||
Here is a list of the contributors who have helped improving my homelab. Big shout-out to them!
|
||||
|
||||
- None, you can be the first one ;)
|
||||
- Loc Mai ([@locmai](https://github.com/locmai))
|
||||
|
||||
If you feel you're missing from this list, feel free to add yourself in a PR.
|
||||
|
@ -1,5 +1,12 @@
|
||||
cert-manager:
|
||||
installCRDs: true
|
||||
prometheus:
|
||||
enabled: true
|
||||
servicemonitor:
|
||||
enabled: true
|
||||
labels:
|
||||
release: kube-prometheus-stack
|
||||
|
||||
issuer:
|
||||
email: khuedoan98@gmail.com
|
||||
|
||||
|
@ -3,5 +3,5 @@ name: cloudflared
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
- name: cloudflared
|
||||
version: 0.2.2
|
||||
version: 0.3.0
|
||||
repository: https://khuedoan.github.io/charts
|
||||
|
@ -11,3 +11,12 @@ cloudflared:
|
||||
originRequest:
|
||||
noTLSVerify: true
|
||||
- service: http_status:404
|
||||
|
||||
podMonitor:
|
||||
enabled: true
|
||||
metricsEndpoints:
|
||||
- port: http
|
||||
|
||||
# additional labels for the PodMonitor
|
||||
extraLabels:
|
||||
release: kube-prometheus-stack
|
||||
|
@ -8,3 +8,11 @@ external-dns:
|
||||
key: value
|
||||
extraArgs:
|
||||
- --annotation-filter=external-dns.alpha.kubernetes.io/exclude notin (true)
|
||||
|
||||
labels:
|
||||
release: kube-prometheus-stack
|
||||
|
||||
metrics:
|
||||
enabled: true
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
|
@ -2,5 +2,14 @@ ingress-nginx:
|
||||
controller:
|
||||
admissionWebhooks:
|
||||
timeoutSeconds: 30
|
||||
|
||||
metrics:
|
||||
enabled: true
|
||||
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
additionalLabels:
|
||||
release: kube-prometheus-stack
|
||||
|
||||
tcp:
|
||||
22: gitea/gitea-ssh:22
|
||||
|
@ -1 +1,7 @@
|
||||
|
||||
loki:
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
additionalLabels:
|
||||
release: kube-prometheus-stack
|
||||
annotations: {}
|
||||
# scrapeTimeout: 10s
|
||||
|
17
system/longhorn-system/templates/servicemonitor.yaml
Normal file
17
system/longhorn-system/templates/servicemonitor.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
# TODO alert rules following https://longhorn.io/docs/1.1.0/monitoring/prometheus_and_grafana_setup/
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: longhorn
|
||||
namespace: longhorn-system
|
||||
labels:
|
||||
release: kube-prometheus-stack
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: longhorn-manager
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- longhorn-system
|
||||
endpoints:
|
||||
- port: manager
|
Loading…
Reference in New Issue
Block a user