Metrics Backend

Note: this component is designated "advanced", which means that objects of this type are not expected to be created or altered in most environments. If you believe that such a change is necessary, you may want to contact support in order to understand the potential impact of that change.

The Metrics Backend provides a Directory Server backend implementation that provides access to current blocks of metric samples.

The metrics Collector is responsible for caching and persisting blocks of performance data as they are captured. This backend provides a way to fetch the blocks from the local server using LDAP. The format of the performance data is private.

Parent Component Relations from This Component Properties dsconfig Usage

Parent Component

The Metrics Backend component inherits from the Backend

Relations from This Component

The following components have a direct aggregation relation from Metrics Backends:

Properties

The properties supported by this managed object are as follows:


General Configuration Basic Properties: Advanced Properties:
 description  backend-id
 enabled  return-unavailable-when-disabled
 writability-mode  notification-manager
Metrics Configuration Basic Properties: Advanced Properties:
 storage-dir  sample-flush-interval
 metrics-dir
 retention-policy

Basic Properties

description

Property Group
General Configuration
Description
A description for this Backend
Default Value
None
Allowed Values
A string
Multi-Valued
No
Required
No
Admin Action Required
None. Modification requires no further action

enabled

Property Group
General Configuration
Description
Indicates whether the backend is enabled in the server. If a backend is not enabled, then its contents are not accessible when processing operations.
Default Value
None
Allowed Values
true
false
Multi-Valued
No
Required
Yes
Admin Action Required
None. Modification requires no further action

writability-mode

Property Group
General Configuration
Description
Specifies the behavior that the backend should use when processing write operations.
Default Value
None
Allowed Values
enabled - Allows write operations to be performed in that backend (if the requested operation is valid, the user has permission to perform the operation, the backend supports that type of write operation, and the global writability-mode property is also enabled).

disabled - Causes all write attempts to fail.

internal-only - Causes external write attempts to fail but allows writes by replication and internal operations.
Multi-Valued
No
Required
Yes
Admin Action Required
None. Modification requires no further action

storage-dir (Read-Only)

Property Group
Metrics Configuration
Description
Specifies the path to the directory that will be used to store queued samples. It may be either an absolute path or a path relative to the base of the Directory Server instance.
Default Value
collector
Allowed Values
A filesystem path
Multi-Valued
No
Required
Yes
Admin Action Required
None. Modification requires no further action

metrics-dir (Read-Only)

Property Group
Metrics Configuration
Description
Specifies the path to the directory that contains metric definitions. It may be either an absolute path or a path relative to the base of the Directory Server instance.
Default Value
metrics
Allowed Values
A filesystem path
Multi-Valued
No
Required
Yes
Admin Action Required
None. Modification requires no further action

retention-policy

Property Group
Metrics Configuration
Description
The retention policy to use for the Metrics Backend . When multiple policies are used, log files are cleaned when any of the policy's conditions are met.
Default Value
No retention policy is used and log files are never cleaned.
Allowed Values
The DN of any Log Retention Policy.
Multi-Valued
Yes
Required
Yes
Admin Action Required
None. Modification requires no further action


Advanced Properties

backend-id (Advanced Property, Read-Only)

Property Group
General Configuration
Description
Specifies a name to identify the associated backend. The name must be unique among all backends in the server. The backend ID may not be altered after the backend is created in the server.
Default Value
metrics
Allowed Values
A string
Multi-Valued
No
Required
Yes
Admin Action Required
None. Modification requires no further action

return-unavailable-when-disabled (Advanced Property)

Property Group
General Configuration
Description
Determines whether any LDAP operation that would use this Backend is to return UNAVAILABLE when this Backend is disabled.
Default Value
true
Allowed Values
true
false
Multi-Valued
No
Required
No
Admin Action Required
None. Modification requires no further action

notification-manager (Advanced Property)

Property Group
General Configuration
Description
Specifies a notification manager for changes resulting from operations processed through this Backend
Default Value
None
Allowed Values
The DN of any Notification Manager.
Multi-Valued
No
Required
No
Admin Action Required
None. Modification requires no further action

sample-flush-interval (Advanced Property)

Property Group
Metrics Configuration
Description
Period when samples are flushed to disk. Samples will be buffered in memory until a non-configurable buffer size is reached or until the oldest sample is this age. The combination of this value and the retention-policies determine how many files will be present in the storage-dir directory. The size of each file is determined by the sample-interval in the Stats Collector plugin, the number of samples being captured, and this variable. Searches of the Metrics Backend will result in enumerating all of the files in storage-dir.
Default Value
30 seconds
Allowed Values
A duration. Lower limit is 3 seconds. Upper limit is 60 seconds.
Multi-Valued
No
Required
No
Admin Action Required
None. Modification requires no further action


dsconfig Usage

To list the configured Backends:

dsconfig list-backends
     [--property {propertyName}] ...

To view the configuration for an existing Backend:

dsconfig get-backend-prop
     --backend-name {name}
     [--tab-delimited]
     [--script-friendly]
     [--property {propertyName}] ...

To update the configuration for an existing Backend:

dsconfig set-backend-prop
     --backend-name {name}
     (--set|--add|--remove) {propertyName}:{propertyValue}
     [(--set|--add|--remove) {propertyName}:{propertyValue}] ...