Compare commits
3 Commits
4a4d918145
...
2ec8fb390f
Author | SHA1 | Date | |
---|---|---|---|
2ec8fb390f | |||
6df7b921a2 | |||
677ac67e2c |
10
manifests/grafana/database-backup.yaml
Normal file
10
manifests/grafana/database-backup.yaml
Normal 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
|
@ -7,5 +7,6 @@ resources:
|
||||
- ingress.yaml
|
||||
- servicemonitor.yaml
|
||||
- database.yaml
|
||||
- database-backup.yaml
|
||||
- datasources.yaml
|
||||
- deployment.yaml
|
||||
|
7
manifests/kube-state-metrics/kustomization.yaml
Normal file
7
manifests/kube-state-metrics/kustomization.yaml
Normal 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
|
13
manifests/kube-state-metrics/servicemonitor.yaml
Normal file
13
manifests/kube-state-metrics/servicemonitor.yaml
Normal 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
|
@ -10,3 +10,4 @@ resources:
|
||||
- prometheus
|
||||
- grafana
|
||||
- node-exporter
|
||||
- kube-state-metrics
|
||||
|
@ -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
|
||||
|
@ -11,3 +11,6 @@ spec:
|
||||
endpoints:
|
||||
- port: node-exporter
|
||||
path: /metrics
|
||||
relabelings:
|
||||
- sourceLabels: [__meta_kubernetes_pod_node_name]
|
||||
targetLabel: instance
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user