From d2fe1896116bc76dc1fd817f544593e68a5b25af Mon Sep 17 00:00:00 2001 From: Daniel Imberman Date: Wed, 26 Feb 2020 10:10:50 -0800 Subject: [PATCH] add targetQueryValue param to postgreSQL scaler docs --- content/scalers/postgresql.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/scalers/postgresql.md b/content/scalers/postgresql.md index 28cfddc4b..6d86ec984 100644 --- a/content/scalers/postgresql.md +++ b/content/scalers/postgresql.md @@ -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 @@ -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: @@ -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 @@ -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 ```