Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add targetQueryValue param to postgreSQL scaler docs #98

Merged
merged 1 commit into from
Feb 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions content/scalers/postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ internally.
Finally, a user inserts a query that returns the desired value

- `query:` What query to poll postgresql with. Query must return an integer.
- `targetQueryValue` - a threshold that is used as `targetAverageValue` in HPA.

This is an example of using a full connection string:
```yaml
Expand All @@ -44,6 +45,7 @@ This is an example of using a full connection string:
metadata:
connection: AIRFLOW_CONN_AIRFLOW_DB
query: "SELECT ceil(COUNT(*)::decimal / 16) FROM task_instance WHERE state='running' OR state='queued'"
targetQueryValue: 1
```

While this is an example of specifying each parameter:
Expand All @@ -60,6 +62,7 @@ While this is an example of specifying each parameter:
dbName: postgresql
sslmode: disable
query: "SELECT ceil(COUNT(*)::decimal / 16) FROM task_instance WHERE state='running' OR state='queued'"
targetQueryValue: 1
```

### Authentication Parameters
Expand Down Expand Up @@ -93,4 +96,5 @@ spec:
metadata:
connection: AIRFLOW_CONN_AIRFLOW_DB
query: "SELECT ceil(COUNT(*)::decimal / 16) FROM task_instance WHERE state='running' OR state='queued'"
targetQueryValue: 1
```