Skip to content

Commit

Permalink
Merge pull request #758 from naveedyahyazadeh/loki-dist-hpa-order
Browse files Browse the repository at this point in the history
[loki-distributed] Switch metric list order in HPAs
  • Loading branch information
torstenwalter authored Nov 8, 2021
2 parents cd3f40c + 73cb4ca commit 70f5f24
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion charts/loki-distributed/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: loki-distributed
description: Helm chart for Grafana Loki in microservices mode
type: application
appVersion: 2.4.1
version: 0.39.1
version: 0.39.2
home: https://grafana.github.io/helm-charts
sources:
- https://github.com/grafana/loki
Expand Down
2 changes: 1 addition & 1 deletion charts/loki-distributed/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# loki-distributed

![Version: 0.39.1](https://img.shields.io/badge/Version-0.39.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.4.1](https://img.shields.io/badge/AppVersion-2.4.1-informational?style=flat-square)
![Version: 0.39.2](https://img.shields.io/badge/Version-0.39.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.4.1](https://img.shields.io/badge/AppVersion-2.4.1-informational?style=flat-square)

Helm chart for Grafana Loki in microservices mode

Expand Down
8 changes: 4 additions & 4 deletions charts/loki-distributed/templates/distributor/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ spec:
minReplicas: {{ .Values.distributor.autoscaling.minReplicas }}
maxReplicas: {{ .Values.distributor.autoscaling.maxReplicas }}
metrics:
{{- with .Values.distributor.autoscaling.targetCPUUtilizationPercentage }}
{{- with .Values.distributor.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: cpu
name: memory
targetAverageUtilization: {{ . }}
{{- end }}
{{- with .Values.distributor.autoscaling.targetMemoryUtilizationPercentage }}
{{- with .Values.distributor.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: memory
name: cpu
targetAverageUtilization: {{ . }}
{{- end }}
{{- end }}
8 changes: 4 additions & 4 deletions charts/loki-distributed/templates/gateway/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ spec:
minReplicas: {{ .Values.gateway.autoscaling.minReplicas }}
maxReplicas: {{ .Values.gateway.autoscaling.maxReplicas }}
metrics:
{{- with .Values.gateway.autoscaling.targetCPUUtilizationPercentage }}
{{- with .Values.gateway.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: cpu
name: memory
targetAverageUtilization: {{ . }}
{{- end }}
{{- with .Values.gateway.autoscaling.targetMemoryUtilizationPercentage }}
{{- with .Values.gateway.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: memory
name: cpu
targetAverageUtilization: {{ . }}
{{- end }}
{{- end }}
8 changes: 4 additions & 4 deletions charts/loki-distributed/templates/querier/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ spec:
minReplicas: {{ .Values.querier.autoscaling.minReplicas }}
maxReplicas: {{ .Values.querier.autoscaling.maxReplicas }}
metrics:
{{- with .Values.querier.autoscaling.targetCPUUtilizationPercentage }}
{{- with .Values.querier.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: cpu
name: memory
targetAverageUtilization: {{ . }}
{{- end }}
{{- with .Values.querier.autoscaling.targetMemoryUtilizationPercentage }}
{{- with .Values.querier.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: memory
name: cpu
targetAverageUtilization: {{ . }}
{{- end }}
{{- end }}
8 changes: 4 additions & 4 deletions charts/loki-distributed/templates/query-frontend/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ spec:
minReplicas: {{ .Values.queryFrontend.autoscaling.minReplicas }}
maxReplicas: {{ .Values.queryFrontend.autoscaling.maxReplicas }}
metrics:
{{- with .Values.queryFrontend.autoscaling.targetCPUUtilizationPercentage }}
{{- with .Values.queryFrontend.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: cpu
name: memory
targetAverageUtilization: {{ . }}
{{- end }}
{{- with .Values.queryFrontend.autoscaling.targetMemoryUtilizationPercentage }}
{{- with .Values.queryFrontend.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: memory
name: cpu
targetAverageUtilization: {{ . }}
{{- end }}
{{- end }}

0 comments on commit 70f5f24

Please sign in to comment.