Module observe
Expand description
OpenDAL Observability Layer
This module offers essential components to facilitate the implementation of observability in OpenDAL.
§Prometheus Metrics
These metrics are essential for understanding the behavior and performance of our applications.
Metric Name | Type | Description | Labels |
---|---|---|---|
operation_duration_seconds | Histogram | Histogram of time spent during opendal operations | scheme, namespace, root, operation, path |
operation_bytes. | Histogram | Histogram of the bytes transferred during opendal operations | scheme, operation, root, operation, path |
operation_errors_total | Counter | Error counter during opendal operations | scheme, operation, root, operation, path, error |
Structs§
- Metric
Metadata - The metric metadata which contains the metric name and help.
- Metrics
Accessor - The metrics accessor for opendal.
- Metrics
Layer - The metrics layer for opendal.
Statics§
- LABEL_
ERROR - The metric label for the error kind.
- LABEL_
NAMESPACE - The metric label for the namespace like bucket name in s3.
- LABEL_
OPERATION - The metric label for the operation like read, write, list.
- LABEL_
PATH - The metric label for the path used by request.
- LABEL_
ROOT - The metric label for the root path.
- LABEL_
SCHEME - The metric label for the scheme like s3, fs, cos.
- METRIC_
OPERATION_ BYTES - The metric metadata for the operation bytes.
- METRIC_
OPERATION_ DURATION_ SECONDS - The metric metadata for the operation duration in seconds.
- METRIC_
OPERATION_ ERRORS_ TOTAL - The metric metadata for the operation errors total.
Traits§
- Metrics
Intercept - The interceptor for metrics.
Functions§
- path_
label_ value - Return the path label value according to the given
path
andlevel
.