Skip to content

Commit

Permalink
Merge pull request #117 from belong-events/main
Browse files Browse the repository at this point in the history
Add an option to specify `category` in generated `user.properties`
  • Loading branch information
maimaisie authored Dec 20, 2023
2 parents b27707d + f9ba42d commit 26242e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ The following environment variables are supported. You can pass environment vari
|`SUMO_ACCESS_KEY_FILE` |Passes a bound file path containing Access Key.|
|`SUMO_INSTALLATION_TOKEN_FILE` |Passes a bound file path containing the Installation Token.|
|`SUMO_CLOBBER` |When true, if there is an existing collector with the same name, that collector will be deleted.<br><br>Default: false|
|`SUMO_COLLECTOR_CATEGORY` |Specify collector Category.|
|`SUMO_COLLECTOR_EPHEMERAL` |When true, the collector will be deleted after it goes offline for 12 hours. <br><br>Default: true.|
|`SUMO_COLLECTOR_FIELDS` |Optional comma separated list of key=value fields to be added to the collector e.g. `_budget=Dev_20,cluster=k8s.dev`. Does nothing if `SUMO_GENERATE_USER_PROPERTIES` is set to “false”.|
|`SUMO_COLLECTOR_NAME` |Configures the name of the collector. The default is set dynamically to the value in `/etc/hostname`.|
Expand Down
1 change: 1 addition & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ generate_user_properties_file() {
["SUMO_JAVA_MEMORY_INIT"]="wrapper.java.initmemory"
["SUMO_JAVA_MEMORY_MAX"]="wrapper.java.maxmemory"
["SUMO_COLLECTOR_FIELDS"]="fields"
["SUMO_COLLECTOR_CATEGORY"]="category"
)

USER_PROPERTIES=""
Expand Down

0 comments on commit 26242e5

Please sign in to comment.