Skip to content

Commit

Permalink
Merge pull request #70 from neticdk/feat/remotewrite-only
Browse files Browse the repository at this point in the history
Add option to only enable remotewrite
  • Loading branch information
atoftegaard-git authored Sep 3, 2024
2 parents 8df28fa + b880900 commit 2571efe
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/aoi/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ dependencies:
- name: victoria-metrics-alert
repository: https://victoriametrics.github.io/helm-charts/
version: 0.9.4
digest: sha256:28f2674292116121bce76d812fd1a8d7d6d016bcf667595850960bf833fa9113
generated: "2024-04-11T16:40:49.12082+02:00"
digest: sha256:63740c51ac34e8d7d64616b5e8e47f3b6cfc14383a445f8ac51ff8e7b9fbb71f
generated: "2024-09-03T13:25:29.939+02:00"
1 change: 1 addition & 0 deletions charts/aoi/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies:
alias: victoria-metrics-single-1
version: 0.9.17
repository: https://victoriametrics.github.io/helm-charts/
condition: global.tsdb.enabled
- name: victoria-metrics-single
alias: victoria-metrics-single-2
version: 0.9.17
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.grafana.enabled }}
---
apiVersion: project.tcs.trifork.com/v1alpha1
kind: BootstrapConfig
Expand Down Expand Up @@ -33,3 +34,4 @@ spec:
labels:
netic.dk/enforce-policies: "true"
{{- include "aoi.dashboards.bootstrapConfig" . | nindent 2 }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.grafana.enabled }}
---
apiVersion: project.tcs.trifork.com/v1alpha1
kind: ProjectBootstrap
Expand All @@ -12,3 +13,4 @@ spec:
git:
{{- toYaml .Values.dashboards.projectBootstrap.git | nindent 4 }}
metadata: {}
{{- end }}
2 changes: 2 additions & 0 deletions charts/aoi/templates/externalsecrets.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.grafana.enabled }}
---
apiVersion: v1
kind: ServiceAccount
Expand Down Expand Up @@ -49,3 +50,4 @@ spec:
dataFrom:
- extract:
key: {{ .Values.externalSecret.vaultDataFromKey }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/aoi/templates/grafana-datasource.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.grafana.enabled }}
---
apiVersion: v1
kind: ConfigMap
Expand All @@ -18,3 +19,4 @@ data:
isDefault: true
jsonData:
oauthPassThru: true
{{- end }}
3 changes: 3 additions & 0 deletions charts/aoi/templates/pvc-victoria-metrics.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.global.tsdb.enabled }}

---
apiVersion: v1
Expand All @@ -13,6 +14,8 @@ spec:
storage: {{ .Values.victoriaMetrics.persistentVolume.size }}
volumeMode: Filesystem

{{- end }}

{{- if .Values.global.tsdb.high_availability.enabled }}

---
Expand Down
3 changes: 2 additions & 1 deletion charts/aoi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
global:
clusterDomain: "cluster.local"
tsdb:
enabled: true
high_availability:
# -- Enable high-availability for tsdb (Victoria-metrics-single)
enabled: false
Expand Down Expand Up @@ -245,7 +246,7 @@ grafana:
enabled: false
fqdn: null

victoriaMetrics:
victoriaMetrics:
persistentVolume:
# -- Size of the volume. Should be calculated based on the metrics you send and retention policy you set.
size: 5Gi
Expand Down

0 comments on commit 2571efe

Please sign in to comment.