Fix vmrules to process memory metrics (#289)

This PR fixes memory charts,

fixes https://github.com/aenix-io/cozystack/issues/285


![image](https://github.com/user-attachments/assets/3ceb8a4d-6fdf-49d3-80be-ff83567ba61c)

Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
This commit is contained in:
Andrei Kvapil
2024-08-16 10:26:23 +02:00
committed by GitHub
parent a120ce726e
commit 4471b4ba2a
2 changed files with 9 additions and 6 deletions

View File

@@ -3,4 +3,4 @@ name: monitoring
description: Monitoring and observability stack
icon: /logos/monitoring.svg
type: application
version: 1.2.1
version: 1.2.2

View File

@@ -1,18 +1,21 @@
{{- range .Values.metricsStorages }}
---
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMAlert
metadata:
name: vmalert
name: vmalert-{{ .name }}
spec:
datasource:
url: http://vmselect-vmcluster.{{ .Release.Namespace }}.svc:8481/select/0/prometheus
url: http://vmselect-{{ .name }}.{{ $.Release.Namespace }}.svc:8481/select/0/prometheus
evaluationInterval: 15s
extraArgs:
remoteWrite.disablePathAppend: "true"
notifiers:
- url: http://vmalertmanager.{{ .Release.Namespace }}.svc:9093
- url: http://vmalertmanager.{{ $.Release.Namespace }}.svc:9093
remoteRead:
url: http://vmselect-shortterm.{{ .Release.Namespace }}.svc:8481/select/0/prometheus
url: http://vmselect-{{ .name }}.{{ $.Release.Namespace }}.svc:8481/select/0/prometheus
remoteWrite:
url: http://vminsert-shortterm.{{ .Release.Namespace }}.svc:8480/insert/0/prometheus/api/v1/write
url: http://vminsert-{{ .name }}.{{ $.Release.Namespace }}.svc:8480/insert/0/prometheus/api/v1/write
resources: {}
selectAllByDefault: true
{{- end }}