···
credentials = mkOpt types.str ''
+
Sets the credentials. It is mutually exclusive with <literal>credentials_file</literal>.
credentials_file = mkOpt types.str ''
Sets the credentials to the credentials read from the configured file.
+
It is mutually exclusive with <literal>credentials</literal>.
+
Optional <literal>Authorization</literal> header configuration.
oauth2 = mkOpt promtypes.oauth2 ''
···
client_secret_file = mkOpt types.str ''
+
Read the client secret from a file. It is mutually exclusive with <literal>client_secret</literal>.
scopes = mkOpt (types.listOf types.str) ''
···
basic_auth = mkOpt promTypes.basic_auth ''
+
Sets the <literal>Authorization</literal> header on every scrape request with the
configured username and password.
password and password_file are mutually exclusive.
bearer_token = mkOpt types.str ''
+
Sets the <literal>Authorization</literal> header on every scrape request with
the configured bearer token. It is mutually exclusive with
<option>bearer_token_file</option>.
bearer_token_file = mkOpt types.str ''
+
Sets the <literal>Authorization</literal> header on every scrape request with
the bearer token read from the configured file. It is mutually
exclusive with <option>bearer_token</option>.
···
port = mkDefOpt types.int "80" ''
+
The port to scrape metrics from, when <literal>role</literal> is nodes, and for discovered
tasks and services that don't have published ports.
···
secret_key = mkOpt types.str ''
Secret key to use when listing targets. https://console.scaleway.com/project/credentials
+
It is mutually exclusive with <literal>secret_key_file</literal>.
secret_key_file = mkOpt types.str ''
Sets the secret key with the credentials read from the configured file.
+
It is mutually exclusive with <literal>secret_key</literal>.
···
basic_auth = mkOpt promTypes.basic_auth ''
+
Sets the <literal>Authorization</literal> header on every remote write request with the
configured username and password.
password and password_file are mutually exclusive.
bearer_token = mkOpt types.str ''
+
Sets the <literal>Authorization</literal> header on every remote write request with
+
the configured bearer token. It is mutually exclusive with <literal>bearer_token_file</literal>.
bearer_token_file = mkOpt types.str ''
+
Sets the <literal>Authorization</literal> header on every remote write request with the bearer token
+
read from the configured file. It is mutually exclusive with <literal>bearer_token</literal>.
tls_config = mkOpt promTypes.tls_config ''
Configures the remote write request's TLS settings.
···
the local storage should have complete data for.
basic_auth = mkOpt promTypes.basic_auth ''
+
Sets the <literal>Authorization</literal> header on every remote read request with the
configured username and password.
password and password_file are mutually exclusive.
bearer_token = mkOpt types.str ''
+
Sets the <literal>Authorization</literal> header on every remote read request with
+
the configured bearer token. It is mutually exclusive with <literal>bearer_token_file</literal>.
bearer_token_file = mkOpt types.str ''
+
Sets the <literal>Authorization</literal> header on every remote read request with the bearer token
+
read from the configured file. It is mutually exclusive with <literal>bearer_token</literal>.
tls_config = mkOpt promTypes.tls_config ''
Configures the remote read request's TLS settings.