Skip to content

Commit

Permalink
Prefix ruler-querier HPA metrics with cortex_
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pracucci <[email protected]>
  • Loading branch information
pracucci committed May 27, 2024
1 parent 1c87174 commit 7f02510
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2327,7 +2327,7 @@ spec:
triggers:
- metadata:
ignoreNullValues: "false"
metricName: ruler_querier_cpu_hpa_default
metricName: cortex_ruler_querier_cpu_hpa_default
query: |
max_over_time(
sum(
Expand All @@ -2346,11 +2346,11 @@ spec:
)
serverAddress: http://prometheus.default:9090/prometheus
threshold: "178"
name: ruler_querier_cpu_hpa_default
name: cortex_ruler_querier_cpu_hpa_default
type: prometheus
- metadata:
ignoreNullValues: "false"
metricName: ruler_querier_memory_hpa_default
metricName: cortex_ruler_querier_memory_hpa_default
query: |
max_over_time(
sum(
Expand Down Expand Up @@ -2380,7 +2380,7 @@ spec:
)
serverAddress: http://prometheus.default:9090/prometheus
threshold: "955630223"
name: ruler_querier_memory_hpa_default
name: cortex_ruler_querier_memory_hpa_default
type: prometheus
- metadata:
ignoreNullValues: "false"
Expand Down
8 changes: 4 additions & 4 deletions operations/mimir-tests/test-autoscaling-generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2327,7 +2327,7 @@ spec:
triggers:
- metadata:
ignoreNullValues: "false"
metricName: ruler_querier_cpu_hpa_default
metricName: cortex_ruler_querier_cpu_hpa_default
query: |
max_over_time(
sum(
Expand All @@ -2346,11 +2346,11 @@ spec:
)
serverAddress: http://prometheus.default:9090/prometheus
threshold: "200"
name: ruler_querier_cpu_hpa_default
name: cortex_ruler_querier_cpu_hpa_default
type: prometheus
- metadata:
ignoreNullValues: "false"
metricName: ruler_querier_memory_hpa_default
metricName: cortex_ruler_querier_memory_hpa_default
query: |
max_over_time(
sum(
Expand Down Expand Up @@ -2380,7 +2380,7 @@ spec:
)
serverAddress: http://prometheus.default:9090/prometheus
threshold: "1073741824"
name: ruler_querier_memory_hpa_default
name: cortex_ruler_querier_memory_hpa_default
type: prometheus
- metadata:
ignoreNullValues: "false"
Expand Down
1 change: 1 addition & 0 deletions operations/mimir/autoscaling.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@
max_replicas=$._config.autoscaling_ruler_querier_max_replicas,
cpu_target_utilization=$._config.autoscaling_ruler_querier_cpu_target_utilization,
memory_target_utilization=$._config.autoscaling_ruler_querier_memory_target_utilization,
with_cortex_prefix=true,
extra_triggers=if $._config.autoscaling_ruler_querier_workers_target_utilization <= 0 then [] else [
{
local name = 'ruler-querier-queries',
Expand Down

0 comments on commit 7f02510

Please sign in to comment.