Skip to content

Commit

Permalink
feat: enable monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
dsluijk committed Dec 7, 2023
1 parent 24012c5 commit 30c8fc3
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ resources:
- webhook
- storageClass
- gateway
- monitoring
71 changes: 71 additions & 0 deletions requirements/monitoring/grafana.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: grafana
namespace: default
spec:
interval: 30m
chart:
spec:
chart: grafana
version: "7.0.x"
interval: 30m
sourceRef:
kind: HelmRepository
name: grafana
namespace: flux-system
values:
grafana.ini:
instance_name: "W.I.S.V. Christiaan Huygens Metrics"
security:
disable_initial_admin_creation: false
disable_gravatar: true
analytics:
reporting_enabled: false
users:
viewers_can_edit: true
persistence:
enabled: true
size: 1Gi
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: victoriametrics
type: prometheus
orgId: 1
url: http://victoriametrics-victoria-metrics-single-server:8428
access: proxy
isDefault: true
updateIntervalSeconds: 10
editable: false
dashboardProviders:
dashboardproviders.yaml:
apiVersion: 1
providers:
- name: "default"
orgId: 1
folder: ""
type: file
disableDeletion: true
editable: false
options:
path: /var/lib/grafana/dashboards/default
dashboards:
default:
ingress:
gnetId: 9614
revision: 1
datasource: victoriametrics
victoriametrics:
gnetId: 10229
revision: 23
datasource: victoriametrics
kubernetes:
gnetId: 14205
revision: 1
datasource: victoriametrics
flux:
url: https://raw.githubusercontent.com/fluxcd/flux2/main/manifests/monitoring/monitoring-config/dashboards/cluster.json
ingress:
enabled: false
5 changes: 5 additions & 0 deletions requirements/monitoring/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- grafana.yaml
- victoriametrics.yaml
27 changes: 27 additions & 0 deletions requirements/monitoring/victoriametrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: victoriametrics
namespace: default
spec:
interval: 30m
chart:
spec:
chart: victoria-metrics-single
version: "0.9.x"
interval: 30m
sourceRef:
kind: HelmRepository
name: victoriametrics
namespace: flux-system
values:
server:
retentionPeriod: "1w"
persistentVolume:
size: 4Gi
statefulSet:
enabled: false
scrape:
enabled: true
ingress:
enabled: false

0 comments on commit 30c8fc3

Please sign in to comment.