-
Notifications
You must be signed in to change notification settings - Fork 448
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 Mongo scaler documentation #343
Conversation
@NUCsimple Can you fix DCO please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a good start but needs a bit of alignment with our other scalers, thanks!
Also, can you change all mongo
references to mongoDb
please?
bc28372
to
63ef293
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just need a small change with respect to the product name - Sorry!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! Just waiting for the feature to be merged now.
content/docs/2.1/scalers/mongoDB.md
Outdated
maintainer = "Community" | ||
description = "Scale applications based on MongoDB." | ||
availability = "v2.1+" | ||
go_file = "MongoDB_scaler" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go_file = "MongoDB_scaler" | |
go_file = "mongodb_scaler" |
this should match the actual name of the go file with the code
content/docs/2.1/scalers/mongoDB.md
Outdated
# Required: query expr, used by filter data | ||
query: '{"region":"eu-1","state":"running","plan":"planA"}' | ||
# Required: according to the number of query result, to scale job | ||
queryValue: "1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Information about metricName
is missing, please take a look on example info that's provided by other scalers:
https://keda.sh/docs/2.1/scalers/influxdb/ and https://keda.sh/docs/2.1/scalers/postgresql/
content/docs/2.1/scalers/mongoDB.md
Outdated
|
||
```yaml | ||
triggers: | ||
- type: mongoDB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- type: mongoDB | |
- type: mongodb |
content/docs/2.1/scalers/mongoDB.md
Outdated
successfulJobsHistoryLimit: 0 # Optional. Default: 100. How many completed jobs should be kept. | ||
failedJobsHistoryLimit: 10 # Optional. Default: 100. How many failed jobs should be kept. | ||
triggers: | ||
- type: mongoDB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- type: mongoDB | |
- type: mongodb |
content/docs/2.1/scalers/mongoDB.md
Outdated
|
||
### Trigger Specification | ||
|
||
This specification describes the `mongoDB` trigger that scales based on result of MongoDB query. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This specification describes the `mongoDB` trigger that scales based on result of MongoDB query. | |
This specification describes the `mongodb` trigger that scales based on result of MongoDB query. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are minor details to be fixed
Any update on this @NUCsimple? |
@NUCsimple could you please fix this, so we can proceed with a release? Thanks! |
@zroubalik I'll fix it today,sorry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, there's minor nit in the metricName
documentation
@NUCsimple could you please add this?
content/docs/1.5/scalers/mongodb.md
Outdated
- `collection` - Name of the collection | ||
- `query` - A MongoDB query that should return single numeric value | ||
- `queryValue` - A threshold that will define when scaling should occur | ||
- `metricName` - An optional name to assign to the metric. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Information about metricName
is missing, please take a look on example info that's provided by other scalers:
https://keda.sh/docs/2.1/scalers/influxdb/ and https://keda.sh/docs/2.1/scalers/postgresql/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay
@NUCsimple I've just noticed that you placed the scaler docs in |
@zroubalik ,I'm so sorry. Maybe the mouse moved the file by mistake just now |
Signed-off-by: 高强 <wb-gq555900@alibaba-inc.com>
This PR adds documentation for Mongo scaler.
Relates to kedacore/keda#1465.