Skip to content

Commit

Permalink
Fix mothership alerting aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Basov committed Dec 6, 2024
1 parent 7cbff53 commit cad8649
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/motel-mothership/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: motel-mothership
description: A Helm chart that deploys Grafana, Promxy, and VictoriaMetrics.
version: 0.1.4
version: 0.1.5
appVersion: "1.0"
dependencies:
- name: grafana-operator
Expand Down
6 changes: 3 additions & 3 deletions charts/motel-mothership/templates/victoria/vmalert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
configMaps: []
datasource:
url: http://vmselect-cluster.mon.svc:8481/select/0/prometheus
url: http://{{ .Release.Name }}-promxy.{{ .Release.Namespace }}.svc:8082
evaluationInterval: 15s
externalLabels: {}
extraArgs:
Expand All @@ -20,8 +20,8 @@ spec:
- url: http://vmalertmanager-cluster-0.vmalertmanager-cluster.mon.svc:9093/
port: "8080"
remoteRead:
url: {{ .Values.victoriametrics.vmalert.remoteRead | default "http://vmselect-cluster.mon.svc:8481/select/0/prometheus" }}
url: {{ .Values.victoriametrics.vmalert.remoteRead | default (printf "http://vmselect-cluster.%s.svc:8481/select/0/prometheus" .Release.Namespace) }}
remoteWrite:
url: http://vminsert-cluster.mon.svc:8480/insert/0/prometheus/api/v1/write
url: http://vminsert-cluster.{{ .Release.Namespace }}.svc:8480/insert/0/prometheus/api/v1/write
selectAllByDefault: true
{{- end }}
2 changes: 1 addition & 1 deletion charts/motel-mothership/templates/victoria/vmcluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
vmselect:
cacheMountPath: /select-cache
extraArgs:
vmalert.proxyURL: http://vmalert-cluster.mon.svc:8080/
vmalert.proxyURL: http://vmalert-cluster.{{ .Release.Namespace }}.svc:8080/
image:
tag: v1.105.0-cluster
port: "8481"
Expand Down
2 changes: 1 addition & 1 deletion demo/cluster/aws-child.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
template: aws-standalone-cp-0-0-3
servicesPriority: 100
services:
- template: motel-child-0-1-0
- template: motel-child-0-1-1
name: motel-child
namespace: motel-child
values: |
Expand Down
2 changes: 1 addition & 1 deletion demo/cluster/aws-regional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
enabled: true
- name: motel-regional
namespace: motel
template: motel-regional-0-1-0
template: motel-regional-0-1-1
values: |
victoriametrics:
vmauth:
Expand Down

0 comments on commit cad8649

Please sign in to comment.