Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Meroje committed Dec 13, 2023
1 parent af0ae74 commit 6c4b3e0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 26 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ annotations.scaling.exporter.replica.min | "integer"


```
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: "{{ .Release.Name }}"
Expand All @@ -54,14 +54,17 @@ spec:
metrics:
- type: External
external:
metricName: "prescaling_metric"
metricSelector:
metric:
name: "prescaling_metric"
selector:
matchLabels:
deployment: "{{ .Release.Name }}"
targetValue: 10
target
type: Value
value: 10
```

> It's important to set the `targetValue` to 10. The metric's value provided by the exporter in order to scale is 11. The scale up of pods will be gradual. Currently, the increment is carried out 10% by 10%.
> It's important to set the `target.value` to 10. The metric's value provided by the exporter in order to scale is 11. The scale up of pods will be gradual. Currently, the increment is carried out 10% by 10%.
## Configure prometheus adapter

Expand Down
14 changes: 6 additions & 8 deletions docs/docs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Package docs GENERATED BY SWAG; DO NOT EDIT
// This file was generated by swaggo/swag
// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs

import "github.com/swaggo/swag"
Expand Down Expand Up @@ -71,8 +70,8 @@ const docTemplate = `{
}
],
"responses": {
"201": {
"description": "Created",
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/services.PrescalingEventOutput"
}
Expand All @@ -86,7 +85,7 @@ const docTemplate = `{
}
}
},
"/api/v1/events/current": {
"/api/v1/events/current/": {
"get": {
"description": "Get current prescaling Event",
"consumes": [
Expand Down Expand Up @@ -228,9 +227,6 @@ const docTemplate = `{
"200": {
"description": "OK"
},
"204": {
"description": "No Content"
},
"400": {
"description": "Bad Request",
"schema": {
Expand Down Expand Up @@ -347,6 +343,8 @@ var SwaggerInfo = &swag.Spec{
Description: "This API was built with FastAPI to deal with prescaling recordings in CRD",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}

func init() {
Expand Down
11 changes: 4 additions & 7 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
}
],
"responses": {
"201": {
"description": "Created",
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/services.PrescalingEventOutput"
}
Expand All @@ -77,7 +77,7 @@
}
}
},
"/api/v1/events/current": {
"/api/v1/events/current/": {
"get": {
"description": "Get current prescaling Event",
"consumes": [
Expand Down Expand Up @@ -219,9 +219,6 @@
"200": {
"description": "OK"
},
"204": {
"description": "No Content"
},
"400": {
"description": "Bad Request",
"schema": {
Expand Down Expand Up @@ -326,4 +323,4 @@
}
}
}
}
}
9 changes: 3 additions & 6 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ paths:
produces:
- application/json
responses:
"201":
description: Created
"200":
description: OK
schema:
$ref: '#/definitions/services.PrescalingEventOutput'
"500":
Expand All @@ -130,9 +130,6 @@ paths:
responses:
"200":
description: OK
responses:
"204":
description: No Content
"400":
description: Bad Request
schema:
Expand Down Expand Up @@ -202,7 +199,7 @@ paths:
summary: Update a prescaling Event by name
tags:
- prescalingevent
/api/v1/events/current:
/api/v1/events/current/:
get:
consumes:
- application/json
Expand Down

0 comments on commit 6c4b3e0

Please sign in to comment.