Compare commits

..

3 Commits

8 changed files with 40 additions and 2 deletions

View File

@ -0,0 +1,10 @@
apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
name: grafana-db-backup
namespace: monitoring
spec:
schedule: "0 0 0 * * *"
backupOwnerReference: self
cluster:
name: grafana-db

View File

@ -7,5 +7,6 @@ resources:
- ingress.yaml
- servicemonitor.yaml
- database.yaml
- database-backup.yaml
- datasources.yaml
- deployment.yaml

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: monitoring
resources:
- git@github.com:kubernetes/kube-state-metrics/examples/standard?ref=v2.14.0
- servicemonitor.yaml

View File

@ -0,0 +1,13 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: kube-state-metrics
namespace: monitoring
spec:
selector:
matchLabels:
app.kubernetes.io/component: exporter
app.kubernetes.io/name: kube-state-metrics
endpoints:
- port: http-metrics
path: /metrics

View File

@ -10,3 +10,4 @@ resources:
- prometheus
- grafana
- node-exporter
- kube-state-metrics

View File

@ -22,8 +22,7 @@ spec:
- --path.sysfs=/host/sys
- --path.rootfs=/host/root
- --no-collector.wifi
- --no-collector.hwmon
- --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)
- --collector.filesystem.ignored-mount-points=^/(dev|proc|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)
- --collector.netclass.ignored-devices=^(veth.*)$
name: node-exporter
image: prom/node-exporter

View File

@ -11,3 +11,6 @@ spec:
endpoints:
- port: node-exporter
path: /metrics
relabelings:
- sourceLabels: [__meta_kubernetes_pod_node_name]
targetLabel: instance

View File

@ -13,6 +13,10 @@ spec:
memory: 300Mi
storage:
volumeClaimTemplate:
metadata:
labels:
recurring-job.longhorn.io/source: enabled
recurring-job-group.longhorn.io/standard-pvc: enabled
spec:
storageClassName: redundant-storage-class
resources: