Compare commits
3 commits
64ac0658fa
...
6efa45ec9a
Author | SHA1 | Date | |
---|---|---|---|
6efa45ec9a | |||
f3b551b8b8 | |||
7c65bf49ea |
5 changed files with 81 additions and 78 deletions
|
@ -5,3 +5,6 @@ resources:
|
||||||
- operators/prometheus.yaml
|
- operators/prometheus.yaml
|
||||||
- operators/mariadb.yaml
|
- operators/mariadb.yaml
|
||||||
- dns/bind.yaml
|
- dns/bind.yaml
|
||||||
|
- monitoring/provider.yaml
|
||||||
|
- monitoring/grafana.yaml
|
||||||
|
- monitoring/loki.yaml
|
||||||
|
|
|
@ -1,78 +0,0 @@
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: observability
|
|
||||||
---
|
|
||||||
apiVersion: source.toolkit.fluxcd.io/v1
|
|
||||||
kind: HelmRepository
|
|
||||||
metadata:
|
|
||||||
name: grafana
|
|
||||||
namespace: flux-system
|
|
||||||
spec:
|
|
||||||
url: https://grafana.github.io/helm-charts
|
|
||||||
interval: 1h
|
|
||||||
---
|
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
||||||
kind: HelmRelease
|
|
||||||
metadata:
|
|
||||||
name: loki
|
|
||||||
namespace: observability
|
|
||||||
spec:
|
|
||||||
interval: 30m
|
|
||||||
chart:
|
|
||||||
spec:
|
|
||||||
chart: loki
|
|
||||||
version: 6.6.4
|
|
||||||
sourceRef:
|
|
||||||
kind: HelmRepository
|
|
||||||
name: grafana
|
|
||||||
namespace: flux-system
|
|
||||||
install:
|
|
||||||
createNamespace: true
|
|
||||||
values:
|
|
||||||
loki:
|
|
||||||
auth_enabled: false
|
|
||||||
singleBinary:
|
|
||||||
replicas: 1
|
|
||||||
write:
|
|
||||||
replicas: 1
|
|
||||||
read:
|
|
||||||
replicas: 1
|
|
||||||
backend:
|
|
||||||
replicas: 1
|
|
||||||
---
|
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
||||||
kind: HelmRelease
|
|
||||||
metadata:
|
|
||||||
name: grafana
|
|
||||||
namespace: observability
|
|
||||||
spec:
|
|
||||||
interval: 30m
|
|
||||||
chart:
|
|
||||||
spec:
|
|
||||||
chart: grafana
|
|
||||||
version: 7.3.0
|
|
||||||
sourceRef:
|
|
||||||
kind: HelmRepository
|
|
||||||
name: grafana
|
|
||||||
namespace: flux-system
|
|
||||||
install:
|
|
||||||
createNamespace: true
|
|
||||||
values:
|
|
||||||
admin:
|
|
||||||
existingSecret: grafana-admin-secret
|
|
||||||
userKey: admin-user
|
|
||||||
passwordKey: admin-password
|
|
||||||
service:
|
|
||||||
type: LoadBalancer
|
|
||||||
datasources:
|
|
||||||
datasources.yaml:
|
|
||||||
apiVersion: 1
|
|
||||||
datasources:
|
|
||||||
- name: Loki
|
|
||||||
type: loki
|
|
||||||
access: proxy
|
|
||||||
url: http://loki:3100
|
|
||||||
isDefault: true
|
|
||||||
|
|
35
deployments/monitoring/grafana.yaml
Normal file
35
deployments/monitoring/grafana.yaml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: grafana
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: grafana
|
||||||
|
version: 7.3.0
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: grafana
|
||||||
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
createNamespace: true
|
||||||
|
values:
|
||||||
|
admin:
|
||||||
|
existingSecret: grafana-admin-secret
|
||||||
|
userKey: admin-user
|
||||||
|
passwordKey: admin-password
|
||||||
|
service:
|
||||||
|
type: LoadBalancer
|
||||||
|
datasources:
|
||||||
|
datasources.yaml:
|
||||||
|
apiVersion: 1
|
||||||
|
datasources:
|
||||||
|
- name: Loki
|
||||||
|
type: loki
|
||||||
|
access: proxy
|
||||||
|
url: http://loki:3100
|
||||||
|
isDefault: true
|
||||||
|
|
29
deployments/monitoring/loki.yaml
Normal file
29
deployments/monitoring/loki.yaml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: loki
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: loki
|
||||||
|
version: 6.6.4
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: grafana
|
||||||
|
namespace: flux-system
|
||||||
|
install:
|
||||||
|
createNamespace: true
|
||||||
|
values:
|
||||||
|
loki:
|
||||||
|
auth_enabled: false
|
||||||
|
singleBinary:
|
||||||
|
replicas: 1
|
||||||
|
write:
|
||||||
|
replicas: 1
|
||||||
|
read:
|
||||||
|
replicas: 1
|
||||||
|
backend:
|
||||||
|
replicas: 1
|
14
deployments/monitoring/provider.yaml
Normal file
14
deployments/monitoring/provider.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: monitoring
|
||||||
|
---
|
||||||
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
|
kind: HelmRepository
|
||||||
|
metadata:
|
||||||
|
name: grafana
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
url: https://grafana.github.io/helm-charts
|
||||||
|
interval: 1h
|
Loading…
Add table
Add a link
Reference in a new issue