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

JetStream: add accountID param for when an account's name and id differ #1551

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
3 changes: 3 additions & 0 deletions content/docs/2.17/scalers/nats-jetstream.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ triggers:
metadata:
natsServerMonitoringEndpoint: "nats.nats.svc.cluster.local:8222"
account: "$G"
accountID: "$G"
stream: "mystream"
consumer: "pull_consumer"
lagThreshold: "10"
Expand All @@ -29,6 +30,7 @@ triggers:

- `natsServerMonitoringEndpoint` - Location of the NATS server monitoring endpoint.
- `account` - Name of the NATS account. "$G" is default when no account is configured.
- `accountID` - ID of the NATS account. Uses the value of `account` when not set.
- `stream` - Name of the JS stream within the account.
- `consumer` - Name of the consumer for a given stream.
- `lagThreshold` - Average target value to trigger scaling actions.
Expand All @@ -41,6 +43,7 @@ Some parameters of the JetStream details can be pulled from `TriggerAuthenticati

- `natsServerMonitoringEndpoint` - Location of the NATS Streaming monitoring endpoint.
- `account` - Name of the NATS account. "$G" is default when no account is configured.
- `accountID` - ID of the NATS account. Uses the value of `account` when not set.

### Example

Expand Down