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 authored and GitHub committed 2024-08-16 10:26:23 +02:00
1 parent a120ce726e
commit 4471b4ba2a
2 files changed
+9 -6

No files matched your search

+1 -1
View File
@@ -3,4 +3,4 @@ name: monitoring
description: Monitoring and observability stack description: Monitoring and observability stack
icon: /logos/monitoring.svg icon: /logos/monitoring.svg
type: application type: application
version: 1.2.1 version: 1.2.2
@@ -1,18 +1,21 @@
{{- range .Values.metricsStorages }}
---
apiVersion: operator.victoriametrics.com/v1beta1 apiVersion: operator.victoriametrics.com/v1beta1
kind: VMAlert kind: VMAlert
metadata: metadata:
name: vmalert name: vmalert-{{ .name }}
spec: spec:
datasource: 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 evaluationInterval: 15s
extraArgs: extraArgs:
remoteWrite.disablePathAppend: "true" remoteWrite.disablePathAppend: "true"
notifiers: notifiers:
- url: http://vmalertmanager.{{ .Release.Namespace }}.svc:9093 - url: http://vmalertmanager.{{ $.Release.Namespace }}.svc:9093
remoteRead: remoteRead:
url: http://vmselect-shortterm.{{ .Release.Namespace }}.svc:8481/select/0/prometheus url: http://vmselect-{{ .name }}.{{ $.Release.Namespace }}.svc:8481/select/0/prometheus
remoteWrite: 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: {} resources: {}
selectAllByDefault: true selectAllByDefault: true
{{- end }}