···112112 http://tools.ietf.org/html/rfc4366#section-3.1
113113 '';
114114 };
115115- remote_timeout = mkDefOpt types.str "30s" ''
116116- Timeout for requests to the remote write endpoint.
117117- '';
118118- relabel_configs = mkOpt (types.listOf promTypes.relabel_config) ''
119119- List of remote write relabel configurations.
120120- List of relabel configurations.
121121- '';
122115 name = mkOpt types.string ''
123123- Name of the remote write config, which if specified must be unique among remote write configs.
116116+ Name of the remote read config, which if specified must be unique among remote read configs.
124117 The name will be used in metrics and logging in place of a generated value to help users distinguish between
125125- remote write configs.
118118+ remote read configs.
119119+ '';
120120+ required_matchers = mkOpt (types.attrsOf types.str) ''
121121+ An optional list of equality matchers which have to be
122122+ present in a selector to query the remote read endpoint.
123123+ '';
124124+ remote_timeout = mkOpt types.str ''
125125+ Timeout for requests to the remote read endpoint.
126126+ '';
127127+ read_recent = mkOpt types.bool ''
128128+ Whether reads should be made for queries for time ranges that
129129+ the local storage should have complete data for.
126130 '';
127131 basic_auth = mkOpt (types.submodule {
128132 options = {
···136140 password_file = mkOpt types.str "HTTP password file";
137141 };
138142 }) ''
139139- Sets the `Authorization` header on every remote write request with the
143143+ Sets the `Authorization` header on every remote read request with the
140144 configured username and password.
141145 password and password_file are mutually exclusive.
142146 '';
143147 bearer_token = mkOpt types.str ''
144144- Sets the `Authorization` header on every remote write request with
148148+ Sets the `Authorization` header on every remote read request with
145149 the configured bearer token. It is mutually exclusive with `bearer_token_file`.
146150 '';
147151 bearer_token_file = mkOpt types.str ''
148148- Sets the `Authorization` header on every remote write request with the bearer token
152152+ Sets the `Authorization` header on every remote read request with the bearer token
149153 read from the configured file. It is mutually exclusive with `bearer_token`.
150154 '';
151155 tls_config = mkOpt promTypes.tls_config ''
152152- Configures the remote write request's TLS settings.
156156+ Configures the remote read request's TLS settings.
153157 '';
154158 proxy_url = mkOpt types.str "Optional Proxy URL.";
155155- metadata_config = {
156156- send = mkDefOpt types.bool "true" ''
157157- Whether metric metadata is sent to remote storage or not.
158158- '';
159159- send_interval = mkDefOpt types.str "1m" ''
160160- How frequently metric metadata is sent to remote storage.
161161- '';
162162- };
163159 };
164160 };
165161···172168 http://tools.ietf.org/html/rfc4366#section-3.1
173169 '';
174170 };
175175- remote_timeout = mkDefOpt types.str "30s" ''
171171+ remote_timeout = mkOpt types.str ''
176172 Timeout for requests to the remote write endpoint.
177173 '';
178178- relabel_configs = mkOpt (types.listOf promTypes.relabel_config) ''
179179- List of remote write relabel configurations.
180180- List of relabel configurations.
181181- '';
174174+ write_relabel_configs = mkOpt (types.listOf promTypes.relabel_config) ''
175175+ List of remote write relabel configurations.
176176+ '';
182177 name = mkOpt types.string ''
183178 Name of the remote write config, which if specified must be unique among remote write configs.
184179 The name will be used in metrics and logging in place of a generated value to help users distinguish between
···212207 Configures the remote write request's TLS settings.
213208 '';
214209 proxy_url = mkOpt types.str "Optional Proxy URL.";
215215- metadata_config = {
216216- send = mkDefOpt types.bool "true" ''
217217- Whether metric metadata is sent to remote storage or not.
218218- '';
219219- send_interval = mkDefOpt types.str "1m" ''
220220- How frequently metric metadata is sent to remote storage.
221221- '';
222222- };
210210+ queue_config = mkOpt (types.submodule {
211211+ options = {
212212+ capacity = mkOpt types.int ''
213213+ Number of samples to buffer per shard before we block reading of more
214214+ samples from the WAL. It is recommended to have enough capacity in each
215215+ shard to buffer several requests to keep throughput up while processing
216216+ occasional slow remote requests.
217217+ '';
218218+ max_shards = mkOpt types.int ''
219219+ Maximum number of shards, i.e. amount of concurrency.
220220+ '';
221221+ min_shards = mkOpt types.int ''
222222+ Minimum number of shards, i.e. amount of concurrency.
223223+ '';
224224+ max_samples_per_send = mkOpt types.int ''
225225+ Maximum number of samples per send.
226226+ '';
227227+ batch_send_deadline = mkOpt types.str ''
228228+ Maximum time a sample will wait in buffer.
229229+ '';
230230+ min_backoff = mkOpt types.str ''
231231+ Initial retry delay. Gets doubled for every retry.
232232+ '';
233233+ max_backoff = mkOpt types.str ''
234234+ Maximum retry delay.
235235+ '';
236236+ };
237237+ }) ''
238238+ Configures the queue used to write to remote storage.
239239+ '';
240240+ metadata_config = mkOpt (types.submodule {
241241+ options = {
242242+ send = mkOpt types.bool ''
243243+ Whether metric metadata is sent to remote storage or not.
244244+ '';
245245+ send_interval = mkOpt types.str ''
246246+ How frequently metric metadata is sent to remote storage.
247247+ '';
248248+ };
249249+ }) ''
250250+ Configures the sending of series metadata to remote storage.
251251+ Metadata configuration is subject to change at any point
252252+ or be removed in future releases.
253253+ '';
223254 };
224255 };
225256