Skip to content

Commit

Permalink
Merge pull request #1 from erharjotsingh/erharjotsingh-patch-1
Browse files Browse the repository at this point in the history
Issue# #5537: Update autoscaling-metrics.md to add the mandatory targ…
  • Loading branch information
erharjotsingh authored Jul 17, 2023
2 parents 187f7d0 + 07a85cb commit 6bdd528
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/serving/autoscaling/autoscaling-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ For more information about KPA and HPA, see the documentation on [Supported Auto
metadata:
annotations:
autoscaling.knative.dev/metric: "concurrency"
autoscaling.knative.dev/target-utilization-percentage: "70"
#autoscaling.knative.dev/target-utilization-percentage sepcifies a percentage value which when reached autoscaling is performed
```

=== "Requests per second"
Expand All @@ -47,6 +49,8 @@ For more information about KPA and HPA, see the documentation on [Supported Auto
metadata:
annotations:
autoscaling.knative.dev/metric: "rps"
autoscaling.knative.dev/target: "150"
#autoscaling.knative.dev/target annotation for rps specifies an integer request per second value
```

=== "CPU"
Expand All @@ -63,6 +67,8 @@ For more information about KPA and HPA, see the documentation on [Supported Auto
annotations:
autoscaling.knative.dev/class: "hpa.autoscaling.knative.dev"
autoscaling.knative.dev/metric: "cpu"
autoscaling.knative.dev/target: "100"
#autoscaling.knative.dev/target annotation for cpu specifies the integer value in millicore
```

=== "Memory"
Expand All @@ -79,6 +85,8 @@ For more information about KPA and HPA, see the documentation on [Supported Auto
annotations:
autoscaling.knative.dev/class: "hpa.autoscaling.knative.dev"
autoscaling.knative.dev/metric: "memory"
autoscaling.knative.dev/target: "75"
#autoscaling.knative.dev/target annotation for memory specifies the integer value in Mi
```

=== "Custom metric"
Expand All @@ -98,6 +106,7 @@ For more information about KPA and HPA, see the documentation on [Supported Auto
annotations:
autoscaling.knative.dev/class: "hpa.autoscaling.knative.dev"
autoscaling.knative.dev/metric: "<metric-name>"
autoscaling.knative.dev/target: "<target>"
```

Where `<metric-name>` is your custom metric.
Expand Down

0 comments on commit 6bdd528

Please sign in to comment.