Merge branch 'main' of git.hsn.dev:jahanson/homelab

This commit is contained in:
Joseph Hanson 2024-03-20 09:23:19 -05:00
commit 599d0f9790
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
9 changed files with 33 additions and 14 deletions

View file

@ -8,4 +8,3 @@ resources:
# Flux-Kustomizations
- ./crunchy-postgres-operator/ks.yaml
- ./dragonfly/ks.yaml
- ./redis/ks.yaml

View file

@ -154,12 +154,6 @@ spec:
gnetId: 1860
revision: 33
datasource: Prometheus
redis:
# renovate: depName="Redis Dashboard for Prometheus Redis Exporter 1.x"
gnetId: 763
revision: 6
datasource:
- { name: DS_PROMETHEUS, value: Prometheus }
spegel:
# renovate: depName="Spegel"
gnetId: 18089
@ -177,6 +171,10 @@ spec:
gnetId: 7845
revision: 4
datasource: Prometheus
dragonflydb:
url: https://raw.githubusercontent.com/dragonflydb/dragonfly/main/tools/local/monitoring/grafana/provisioning/dashboards/dashboard.json
datasource:
- { name: DS_PROMETHEUS, value: Prometheus }
cert-manager:
url: https://raw.githubusercontent.com/monitoring-mixins/website/master/assets/cert-manager/dashboards/cert-manager.json
datasource: Prometheus

View file

@ -6,7 +6,8 @@ resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ./prometheusrules
# - ./scrapeconfigs
- ./scrapeconfigs
- ./podmonitors
configMapGenerator:
- name: alertmanager-config-tpl
files:

View file

@ -0,0 +1,19 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/monitoring.coreos.com/podmonitor_v1.json
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: dragonflydb-metrics
namespace: database
spec:
selector:
matchLabels:
app.kubernetes.io/name: dragonfly
app: dragonfly
podTargetLabels:
- app
namespaceSelector:
matchNames:
- database
podMetricsEndpoints:
- port: admin

View file

@ -0,0 +1,6 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./dragonflydb.yaml

View file

@ -51,12 +51,8 @@ spec:
config: &config |-
type: REDIS
config:
addr: >-
redis-node-0.redis-headless.database.svc.cluster.local:26379,
redis-node-1.redis-headless.database.svc.cluster.local:26379,
redis-node-2.redis-headless.database.svc.cluster.local:26379
db: 13
master_name: redis-master
addr: dragonfly.database.svc.cluster.local:6379
db: 2
ingress:
enabled: true
ingressClassName: internal-nginx