Skip to content

Commit

Permalink
feat(http): add support for compress and reuse_connection options, an…
Browse files Browse the repository at this point in the history
…d headers_from_placeholders in HTTPOutputConfig
  • Loading branch information
Iacob Nicolaev committed Dec 24, 2024
1 parent d5be9a4 commit 19d1ebb
Show file tree
Hide file tree
Showing 9 changed files with 126 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2855,6 +2855,8 @@ spec:
type:
type: string
type: object
compress:
type: string
content_type:
type: string
endpoint:
Expand Down Expand Up @@ -2882,6 +2884,10 @@ spec:
additionalProperties:
type: string
type: object
headers_from_placeholders:
additionalProperties:
type: string
type: object
http_method:
type: string
json_array:
Expand All @@ -2896,6 +2902,8 @@ spec:
items:
type: integer
type: array
reuse_connection:
type: boolean
slow_flush_log_threshold:
type: string
ssl_timeout:
Expand Down Expand Up @@ -10294,6 +10302,8 @@ spec:
type:
type: string
type: object
compress:
type: string
content_type:
type: string
endpoint:
Expand Down Expand Up @@ -10321,6 +10331,10 @@ spec:
additionalProperties:
type: string
type: object
headers_from_placeholders:
additionalProperties:
type: string
type: object
http_method:
type: string
json_array:
Expand All @@ -10335,6 +10349,8 @@ spec:
items:
type: integer
type: array
reuse_connection:
type: boolean
slow_flush_log_threshold:
type: string
ssl_timeout:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2851,6 +2851,8 @@ spec:
type:
type: string
type: object
compress:
type: string
content_type:
type: string
endpoint:
Expand Down Expand Up @@ -2878,6 +2880,10 @@ spec:
additionalProperties:
type: string
type: object
headers_from_placeholders:
additionalProperties:
type: string
type: object
http_method:
type: string
json_array:
Expand All @@ -2892,6 +2898,8 @@ spec:
items:
type: integer
type: array
reuse_connection:
type: boolean
slow_flush_log_threshold:
type: string
ssl_timeout:
Expand Down Expand Up @@ -9564,6 +9572,8 @@ spec:
type:
type: string
type: object
compress:
type: string
content_type:
type: string
endpoint:
Expand Down Expand Up @@ -9591,6 +9601,10 @@ spec:
additionalProperties:
type: string
type: object
headers_from_placeholders:
additionalProperties:
type: string
type: object
http_method:
type: string
json_array:
Expand All @@ -9605,6 +9619,8 @@ spec:
items:
type: integer
type: array
reuse_connection:
type: boolean
slow_flush_log_threshold:
type: string
ssl_timeout:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2852,6 +2852,8 @@ spec:
type:
type: string
type: object
compress:
type: string
content_type:
type: string
endpoint:
Expand Down Expand Up @@ -2879,6 +2881,10 @@ spec:
additionalProperties:
type: string
type: object
headers_from_placeholders:
additionalProperties:
type: string
type: object
http_method:
type: string
json_array:
Expand All @@ -2893,6 +2899,8 @@ spec:
items:
type: integer
type: array
reuse_connection:
type: boolean
slow_flush_log_threshold:
type: string
ssl_timeout:
Expand Down Expand Up @@ -10291,6 +10299,8 @@ spec:
type:
type: string
type: object
compress:
type: string
content_type:
type: string
endpoint:
Expand Down Expand Up @@ -10318,6 +10328,10 @@ spec:
additionalProperties:
type: string
type: object
headers_from_placeholders:
additionalProperties:
type: string
type: object
http_method:
type: string
json_array:
Expand All @@ -10332,6 +10346,8 @@ spec:
items:
type: integer
type: array
reuse_connection:
type: boolean
slow_flush_log_threshold:
type: string
ssl_timeout:
Expand Down
16 changes: 16 additions & 0 deletions charts/logging-operator/crds/logging.banzaicloud.io_outputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2848,6 +2848,8 @@ spec:
type:
type: string
type: object
compress:
type: string
content_type:
type: string
endpoint:
Expand Down Expand Up @@ -2875,6 +2877,10 @@ spec:
additionalProperties:
type: string
type: object
headers_from_placeholders:
additionalProperties:
type: string
type: object
http_method:
type: string
json_array:
Expand All @@ -2889,6 +2895,8 @@ spec:
items:
type: integer
type: array
reuse_connection:
type: boolean
slow_flush_log_threshold:
type: string
ssl_timeout:
Expand Down Expand Up @@ -9561,6 +9569,8 @@ spec:
type:
type: string
type: object
compress:
type: string
content_type:
type: string
endpoint:
Expand Down Expand Up @@ -9588,6 +9598,10 @@ spec:
additionalProperties:
type: string
type: object
headers_from_placeholders:
additionalProperties:
type: string
type: object
http_method:
type: string
json_array:
Expand All @@ -9602,6 +9616,8 @@ spec:
items:
type: integer
type: array
reuse_connection:
type: boolean
slow_flush_log_threshold:
type: string
ssl_timeout:
Expand Down
16 changes: 16 additions & 0 deletions config/crd/bases/logging.banzaicloud.io_clusteroutputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2852,6 +2852,8 @@ spec:
type:
type: string
type: object
compress:
type: string
content_type:
type: string
endpoint:
Expand Down Expand Up @@ -2879,6 +2881,10 @@ spec:
additionalProperties:
type: string
type: object
headers_from_placeholders:
additionalProperties:
type: string
type: object
http_method:
type: string
json_array:
Expand All @@ -2893,6 +2899,8 @@ spec:
items:
type: integer
type: array
reuse_connection:
type: boolean
slow_flush_log_threshold:
type: string
ssl_timeout:
Expand Down Expand Up @@ -10291,6 +10299,8 @@ spec:
type:
type: string
type: object
compress:
type: string
content_type:
type: string
endpoint:
Expand Down Expand Up @@ -10318,6 +10328,10 @@ spec:
additionalProperties:
type: string
type: object
headers_from_placeholders:
additionalProperties:
type: string
type: object
http_method:
type: string
json_array:
Expand All @@ -10332,6 +10346,8 @@ spec:
items:
type: integer
type: array
reuse_connection:
type: boolean
slow_flush_log_threshold:
type: string
ssl_timeout:
Expand Down
16 changes: 16 additions & 0 deletions config/crd/bases/logging.banzaicloud.io_outputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2848,6 +2848,8 @@ spec:
type:
type: string
type: object
compress:
type: string
content_type:
type: string
endpoint:
Expand Down Expand Up @@ -2875,6 +2877,10 @@ spec:
additionalProperties:
type: string
type: object
headers_from_placeholders:
additionalProperties:
type: string
type: object
http_method:
type: string
json_array:
Expand All @@ -2889,6 +2895,8 @@ spec:
items:
type: integer
type: array
reuse_connection:
type: boolean
slow_flush_log_threshold:
type: string
ssl_timeout:
Expand Down Expand Up @@ -9561,6 +9569,8 @@ spec:
type:
type: string
type: object
compress:
type: string
content_type:
type: string
endpoint:
Expand Down Expand Up @@ -9588,6 +9598,10 @@ spec:
additionalProperties:
type: string
type: object
headers_from_placeholders:
additionalProperties:
type: string
type: object
http_method:
type: string
json_array:
Expand All @@ -9602,6 +9616,8 @@ spec:
items:
type: integer
type: array
reuse_connection:
type: boolean
slow_flush_log_threshold:
type: string
ssl_timeout:
Expand Down
17 changes: 17 additions & 0 deletions docs/configuration/plugins/outputs/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ spec:
[Buffer](../buffer/)
### compress (string, optional) {#output config-compress}
The option to compress HTTP request body. [text,gzip]
Default: text
### content_type (string, optional) {#output config-content_type}
Content-Profile for HTTP request.
Expand Down Expand Up @@ -66,6 +72,11 @@ Default: post
Additional headers for HTTP request.
### headers_from_placeholders (map[string]string, optional) {#output config-headers_from_placeholders}
Additional headers from placeholders for HTTP request.
### json_array (bool, optional) {#output config-json_array}
Using array format of JSON. This parameter is used and valid only for json format. When json_array as true, Content-Profile should be application/json and be able to use JSON data for the HTTP request body.
Expand Down Expand Up @@ -93,6 +104,12 @@ List of retryable response codes. If the response code is included in this list,
Default: [503]
### reuse_connection (bool, optional) {#output config-reuse_connection}
Try to reuse connection. This will improve performance.
Default: false
### ssl_timeout (int, optional) {#output config-ssl_timeout}
TLS timeout in seconds.
Expand Down
Loading

0 comments on commit 19d1ebb

Please sign in to comment.