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:
Loc Mai 2022-01-01 21:36:58 +07:00 committed by GitHub
parent f8fa3858f6
commit 0c142f8183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 97 additions and 3 deletions

View File

@ -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"

View File

@ -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.

View File

@ -1,5 +1,12 @@
cert-manager:
installCRDs: true
prometheus:
enabled: true
servicemonitor:
enabled: true
labels:
release: kube-prometheus-stack
issuer:
email: khuedoan98@gmail.com

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1 +1,7 @@
loki:
serviceMonitor:
enabled: true
additionalLabels:
release: kube-prometheus-stack
annotations: {}
# scrapeTimeout: 10s

View 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