Add docs for out of order ingestion (#11340)
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com> Signed-off-by: Ganesh Vernekar <15064823+codesome@users.noreply.github.com> Co-authored-by: Levi Harrison <levisamuelharrison@gmail.com>
This commit is contained in:
parent
f34aeefe6e
commit
f371d7f0fb
|
@ -1095,6 +1095,12 @@ var expectedConf = &Config{
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
StorageConfig: StorageConfig{
|
||||||
|
TSDBConfig: &TSDBConfig{
|
||||||
|
OutOfOrderTimeWindow: 30 * time.Minute.Milliseconds(),
|
||||||
|
OutOfOrderTimeWindowFlag: model.Duration(30 * time.Minute),
|
||||||
|
},
|
||||||
|
},
|
||||||
TracingConfig: TracingConfig{
|
TracingConfig: TracingConfig{
|
||||||
Endpoint: "localhost:4317",
|
Endpoint: "localhost:4317",
|
||||||
ClientType: TracingClientGRPC,
|
ClientType: TracingClientGRPC,
|
||||||
|
|
|
@ -391,6 +391,10 @@ alerting:
|
||||||
- "1.2.3.5:9093"
|
- "1.2.3.5:9093"
|
||||||
- "1.2.3.6:9093"
|
- "1.2.3.6:9093"
|
||||||
|
|
||||||
|
storage:
|
||||||
|
tsdb:
|
||||||
|
out_of_order_time_window: 30m
|
||||||
|
|
||||||
tracing:
|
tracing:
|
||||||
endpoint: "localhost:4317"
|
endpoint: "localhost:4317"
|
||||||
client_type: "grpc"
|
client_type: "grpc"
|
||||||
|
|
|
@ -99,6 +99,7 @@ remote_read:
|
||||||
|
|
||||||
# Storage related settings that are runtime reloadable.
|
# Storage related settings that are runtime reloadable.
|
||||||
storage:
|
storage:
|
||||||
|
[ tsdb: <tsdb> ]
|
||||||
[ exemplars: <exemplars> ]
|
[ exemplars: <exemplars> ]
|
||||||
|
|
||||||
# Configures exporting traces.
|
# Configures exporting traces.
|
||||||
|
@ -2994,38 +2995,6 @@ relabel_configs:
|
||||||
[ - <relabel_config> ... ]
|
[ - <relabel_config> ... ]
|
||||||
```
|
```
|
||||||
|
|
||||||
### `<tracing_config>`
|
|
||||||
|
|
||||||
`tracing_config` configures exporting traces from Prometheus to a tracing backend via the OTLP protocol. Tracing is currently an **experimental** feature and could change in the future.
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
# Client used to export the traces. Options are 'http' or 'grpc'.
|
|
||||||
[ client_type: <string> | default = grpc ]
|
|
||||||
|
|
||||||
# Endpoint to send the traces to. Should be provided in format <host>:<port>.
|
|
||||||
[ endpoint: <string> ]
|
|
||||||
|
|
||||||
# Sets the probability a given trace will be sampled. Must be a float from 0 through 1.
|
|
||||||
[ sampling_fraction: <float> | default = 0 ]
|
|
||||||
|
|
||||||
# If disabled, the client will use a secure connection.
|
|
||||||
[ insecure: <boolean> | default = false ]
|
|
||||||
|
|
||||||
# Key-value pairs to be used as headers associated with gRPC or HTTP requests.
|
|
||||||
headers:
|
|
||||||
[ <string>: <string> ... ]
|
|
||||||
|
|
||||||
# Compression key for supported compression types. Supported compression: gzip.
|
|
||||||
[ compression: <string> ]
|
|
||||||
|
|
||||||
# Maximum time the exporter will wait for each batch export.
|
|
||||||
[ timeout: <duration> | default = 10s ]
|
|
||||||
|
|
||||||
# TLS configuration.
|
|
||||||
tls_config:
|
|
||||||
[ <tls_config> ]
|
|
||||||
```
|
|
||||||
|
|
||||||
### `<remote_write>`
|
### `<remote_write>`
|
||||||
|
|
||||||
`write_relabel_configs` is relabeling applied to samples before sending them
|
`write_relabel_configs` is relabeling applied to samples before sending them
|
||||||
|
@ -3227,6 +3196,25 @@ There is a list of
|
||||||
[integrations](https://prometheus.io/docs/operating/integrations/#remote-endpoints-and-storage)
|
[integrations](https://prometheus.io/docs/operating/integrations/#remote-endpoints-and-storage)
|
||||||
with this feature.
|
with this feature.
|
||||||
|
|
||||||
|
### `<tsdb>`
|
||||||
|
|
||||||
|
`tsdb` lets you config the runtime reloadable configuration of the TSDB.
|
||||||
|
|
||||||
|
NOTE: Out of order ingestion is an experimental feature, but you do not need any additional flag to enable it. Setting `out_of_order_time_window` to a positive duration enables it.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Configures how old an out-of-order/out-of-bounds sample can be w.r.t. the TSDB max time.
|
||||||
|
# An out-of-order/out-of-bounds sample is ingested into TSDB as long as the timestamp
|
||||||
|
# of the sample is >= TSDB.MaxTime-out_of_order_time_window.
|
||||||
|
#
|
||||||
|
# When out_of_order_time_window is >0, the errors out-of-order and out-of-bounds are
|
||||||
|
# combined into a single error called 'too-old'; a sample is either (a) ingestible
|
||||||
|
# into TSDB, i.e. it is an in-order sample or an out-of-order/out-of-bound sample
|
||||||
|
# that is within the out-of-order window, or (b) too-old, i.e. not in-order
|
||||||
|
# and before the out-of-order window.
|
||||||
|
[ out_of_order_time_window: <duration> | default = 0s ]
|
||||||
|
```
|
||||||
|
|
||||||
### `<exemplars>`
|
### `<exemplars>`
|
||||||
|
|
||||||
Note that exemplar storage is still considered experimental and must be enabled via `--enable-feature=exemplar-storage`.
|
Note that exemplar storage is still considered experimental and must be enabled via `--enable-feature=exemplar-storage`.
|
||||||
|
@ -3235,3 +3223,35 @@ Note that exemplar storage is still considered experimental and must be enabled
|
||||||
# Configures the maximum size of the circular buffer used to store exemplars for all series. Resizable during runtime.
|
# Configures the maximum size of the circular buffer used to store exemplars for all series. Resizable during runtime.
|
||||||
[ max_exemplars: <int> | default = 100000 ]
|
[ max_exemplars: <int> | default = 100000 ]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### `<tracing_config>`
|
||||||
|
|
||||||
|
`tracing_config` configures exporting traces from Prometheus to a tracing backend via the OTLP protocol. Tracing is currently an **experimental** feature and could change in the future.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Client used to export the traces. Options are 'http' or 'grpc'.
|
||||||
|
[ client_type: <string> | default = grpc ]
|
||||||
|
|
||||||
|
# Endpoint to send the traces to. Should be provided in format <host>:<port>.
|
||||||
|
[ endpoint: <string> ]
|
||||||
|
|
||||||
|
# Sets the probability a given trace will be sampled. Must be a float from 0 through 1.
|
||||||
|
[ sampling_fraction: <float> | default = 0 ]
|
||||||
|
|
||||||
|
# If disabled, the client will use a secure connection.
|
||||||
|
[ insecure: <boolean> | default = false ]
|
||||||
|
|
||||||
|
# Key-value pairs to be used as headers associated with gRPC or HTTP requests.
|
||||||
|
headers:
|
||||||
|
[ <string>: <string> ... ]
|
||||||
|
|
||||||
|
# Compression key for supported compression types. Supported compression: gzip.
|
||||||
|
[ compression: <string> ]
|
||||||
|
|
||||||
|
# Maximum time the exporter will wait for each batch export.
|
||||||
|
[ timeout: <duration> | default = 10s ]
|
||||||
|
|
||||||
|
# TLS configuration.
|
||||||
|
tls_config:
|
||||||
|
[ <tls_config> ]
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue