Skip to content

Commit

Permalink
added connection string
Browse files Browse the repository at this point in the history
Signed-off-by: 26tanishabanik <[email protected]>
  • Loading branch information
26tanishabanik committed Dec 5, 2022
1 parent bd7bccc commit e72f483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/docs/2.9/scalers/couchdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ This specification describes the `couchdb` trigger that scales based on the outp
triggers:
- type: couchdb
metadata:
connectionString: "http://admin:password@test-release-svc-couchdb.couchdb-test-ns.svc.cluster.local:5984/"
hostname: "test-release-svc-couchdb.couchdb-test-ns.svc.cluster.local"
port: "5984"
dbName: "animals"
queryValue: "1"
query: '{ "selector": { "feet": { "$gt": 0 } }, "fields": ["_id", "feet", "greeting"] }'
activationQueryValue: "1"
metricName: "global-metric"
```
**Parameter list:**
Expand All @@ -31,7 +31,7 @@ triggers:
- `port` - The port number of the CouchDB service.
- `query` - A CouchDB query that should return single numeric value.
- `activationQueryValue` - Target value for activating the scaler. Learn more about activation [here](./../concepts/scaling-deployments.md#activating-and-scaling-thresholds).(Default: `0`, Optional)
- `metricName` - Name to assign to the metric. (Default: `s<X>-couchdb-<KEYSPACE>`, Optional, In case of `metricName` is specified, it will be used to generate the `metricName` like this: `s<X>-couchdb-<METRICNAME>`, where `<X>` is the index of the trigger in a ScaledObject)
- `connectionString` - Connection string for CouchDB database.

### Authentication Parameters

Expand Down

0 comments on commit e72f483

Please sign in to comment.