Skip to content

Commit

Permalink
replace vlogs helmchart by operator
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Kvapil <[email protected]>
  • Loading branch information
kvaps committed Aug 29, 2024
1 parent 0f4d416 commit 5f1dfb0
Show file tree
Hide file tree
Showing 77 changed files with 36,242 additions and 23,170 deletions.
2 changes: 1 addition & 1 deletion packages/extra/monitoring/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ include ../../../scripts/package.mk
generate:
readme-generator -v values.yaml -s values.schema.json.tmp -r README.md
cat values.schema.json.tmp | \
jq '.properties.metricsStorages.items.type = "object"' \
jq '.properties.metricsStorages.items.type = "object" | .properties.logsStorages.items.type = "object"' \
> values.schema.json
rm -f values.schema.json.tmp
1 change: 1 addition & 0 deletions packages/extra/monitoring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
| ----------------- | --------------------------------------------------------------------------------------------------------- | ------- |
| `host` | The hostname used to access the grafana externally (defaults to 'grafana' subdomain for the tenant host). | `""` |
| `metricsStorages` | Configuration of metrics storage instances | `[]` |
| `logsStorages` | Configuration of logs storage instances | `[]` |
| `oncall.enabled` | Enable Grafana OnCall | `false` |
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDatasource
metadata:
name: vlog-{{ .name }}
name: vlogs-{{ .name }}
spec:
datasource:
access: proxy
type: victorialogs-datasource
name: vlog-{{ .name }}
url: http://vlog-{{ .name }}-0.vlog-{{ .name }}.{{ $.Release.Namespace }}.svc:9428
name: vlogs-{{ .name }}
url: http://vlogs-{{ .name }}.{{ $.Release.Namespace }}.svc:9428
instanceSelector:
matchLabels:
dashboards: grafana
Expand Down
31 changes: 0 additions & 31 deletions packages/extra/monitoring/templates/vlogs/vlogs-release.yaml

This file was deleted.

15 changes: 15 additions & 0 deletions packages/extra/monitoring/templates/vlogs/vlogs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- range .Values.logsStorages }}
apiVersion: operator.victoriametrics.com/v1beta1
kind: VLogs
metadata:
name: {{ .name }}
spec:
storage:
resources:
requests:
storage: {{ .storage }}
storageClassName: {{ .storageClassName }}
accessModes: [ReadWriteOnce]
retentionPeriod: "{{ .retentionPeriod }}"
removePvcAfterDelete: true
{{- end }}
8 changes: 8 additions & 0 deletions packages/extra/monitoring/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
"type": "object"
}
},
"logsStorages": {
"type": "array",
"description": "Configuration of logs storage instances",
"default": "[]",
"items": {
"type": "object"
}
},
"oncall": {
"type": "object",
"properties": {
Expand Down
4 changes: 2 additions & 2 deletions packages/extra/monitoring/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ metricsStorages:
storage: 10Gi
storageClassName: ""

## @param metricsStorages [array] Configuration of logs storage instances
## @param logsStorages [array] Configuration of logs storage instances
##
logsStorages:
- name: generic
retentionPeriod: "1m"
retentionPeriod: "1"
storage: 10Gi
storageClassName: replicated

Expand Down
2 changes: 1 addition & 1 deletion packages/system/monitoring/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fluent-bit:
[OUTPUT]
Name http
Match kube.*
Host vlog-generic.tenant-root.svc
Host vlogs-generic.tenant-root.svc
port 9428
compress gzip
uri /insert/jsonline?_stream_fields=stream,kubernetes_pod_name,kubernetes_container_name,kubernetes_namespace_name&_msg_field=log&_time_field=date
Expand Down
1 change: 0 additions & 1 deletion packages/system/victoria-logs/.helmignore

This file was deleted.

3 changes: 0 additions & 3 deletions packages/system/victoria-logs/Chart.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions packages/system/victoria-logs/Makefile

This file was deleted.

225 changes: 0 additions & 225 deletions packages/system/victoria-logs/charts/victoria-logs-single/CHANGELOG.md

This file was deleted.

This file was deleted.

Loading

0 comments on commit 5f1dfb0

Please sign in to comment.