[sender.http] Sub-Sectionurl - server address, in the form "http[s]://host[:port][/path][?query]"
[fe80::1]?param1=value1¶m2=value2), but it’s recommended to specify them in query (see the notes there)method - HTTP request method, a.k.a. verb, for sending data
"POST""PATCH", "POST", "PUT"query - HTTP query parameters
url, but it’s recommended to specify them here:
query override values in url, if they have the same parameter namesquery are allowed to contain dynamic expressions which are evaluated during runtime (although this is not implemented yet), while url must be staticThe TOML file format supports multiple representation options for key-value pairs:
[sender.http]
# ...
query = { param1 = "value1", param2 = "value2" }
[sender.http]
# ...
query = {
param1 = "value1",
param2 = "value2",
}
[sender.http]
# ...
query.param1 = "value1"
query.param2 = "value2"
[sender.http]
# ...
[sender.http.query]
param1 = "value1"
param2 = "value2"
headers - HTTP request headers
The TOML file format does not allow multiple instances of the same field, so if you want to specify a header with multiple values, specify them as a single comma-separated string:
accept = "text/plain, application/json, application/xml"
The TOML file format supports multiple representation options for key-value pairs:
[sender.http]
# ...
headers = { header1 = "value1", header2 = "value2" }
[sender.http]
# ...
headers = {
header1 = "value1",
header2 = "value2",
}
[sender.http]
# ...
headers.header1 = "value1"
headers.header2 = "value2"
[sender.http]
# ...
[sender.http.headers]
header1 = "value1"
header2 = "value2"
timeout - maximum amount of time for each HTTP client request to complete
"5s" (5 seconds)m (minutes), and s (seconds)"0" and negative values (e.g., "-1s") = no client-side timeoutformat - convert structured data into a specific content type
format setting, if it has one, otherwise "ndjson""json" (an array if the data contains multiple objects, otherwise an object)"json_array" (always an array, even when there are fewer than 2 objects)"ndjson" (NDJSON, a.k.a. JSONL)format setting of the source collector or receiverContent-Type automatically, unless you override it in headersconcurrency_limit - how many requests are allowed to be in progress at any time
1001 (no concurrency) and 200[!WARNING]
- Concurrency limit (at any time, unrelated to duration or retries) ≠ requests per second
- Data that is still blocked when a shutdown begins is dropped, instead of delaying the shutdown
(data that doesn’t exceed the concurrency limit, including the last pending batch, is still sent)
[sender.http.tls] Sub-Section[sender.http.retries] Sub-Section[sender.http.batch] Sub-Section