Configuration options

Table 1. Optional configuration options
key type default value description

batch-delay

long

1

Sets the delay interval if metrics are posted in batches (defaults to DEFAULT_BATCH_DELAY).

batch-size

int

50

Sets the maximum no. of metrics to send in a batch (defaults to DEFAULT_BATCH_SIZE).

compartment-id

string

 

Sets the compartment ID.

delay

long

60

Sets the delay interval between metric posting (defaults to DEFAULT_SCHEDULER_DELAY).

description-enabled

boolean

true

Sets whether the description should be enabled or not.

Defaults to `true`.

enabled

boolean

true

Sets whether metrics transmission to OCI is enabled.

Defaults to `true`.

initial-delay

long

1

Sets the initial delay before metrics are sent to OCI (defaults to DEFAULT_SCHEDULER_INITIAL_DELAY).

namespace

string

 

Sets the namespace.

resource-group

string

 

Sets the resource group.

scheduling-time-unit

TimeUnit (NANOSECONDS, MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS)

TimeUnit.SECONDS

Sets the time unit applied to the initial delay and delay values (defaults to TimeUnit.SECONDS).

scopes

String[]

All scopes

Sets which metrics scopes (e.g., base, vendor, application) should be sent to OCI.

If this method is never invoked, defaults to all scopes.