Documentation ¶
Overview ¶
Package metric provides Prometheus metrics support
Index ¶
- func AZCopyObjectCompleted(err error)
- func AZDeleteObjectCompleted(err error)
- func AZHeadObjectCompleted(err error)
- func AZListObjectsCompleted(err error)
- func AZTransferCompleted(bytes int64, transferKind int, err error)
- func AddLoginAttempt(authMethod string)
- func AddLoginResult(authMethod string, err error)
- func AddMetricsEndpoint(metricsPath string, handler chi.Router)
- func AddNoAuthTried()
- func GCSCopyObjectCompleted(err error)
- func GCSDeleteObjectCompleted(err error)
- func GCSHeadObjectCompleted(err error)
- func GCSListObjectsCompleted(err error)
- func GCSTransferCompleted(bytes int64, transferKind int, err error)
- func HTTPFsTransferCompleted(bytes int64, transferKind int, err error)
- func HTTPRequestServed(status int)
- func S3CopyObjectCompleted(err error)
- func S3DeleteObjectCompleted(err error)
- func S3HeadObjectCompleted(err error)
- func S3ListObjectsCompleted(err error)
- func S3TransferCompleted(bytes int64, transferKind int, err error)
- func SSHCommandCompleted(err error)
- func TransferCompleted(bytesSent, bytesReceived int64, transferKind int, err error, isSFTPFs bool)
- func UpdateActiveConnectionsSize(size int)
- func UpdateDataProviderAvailability(err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AZCopyObjectCompleted ¶
func AZCopyObjectCompleted(err error)
AZCopyObjectCompleted updates metrics after a Azure copy object request terminates
func AZDeleteObjectCompleted ¶
func AZDeleteObjectCompleted(err error)
AZDeleteObjectCompleted updates metrics after a Azure delete object request terminates
func AZHeadObjectCompleted ¶
func AZHeadObjectCompleted(err error)
AZHeadObjectCompleted updates metrics after a Azure head object request terminates
func AZListObjectsCompleted ¶
func AZListObjectsCompleted(err error)
AZListObjectsCompleted updates metrics after a Azure list objects request terminates
func AZTransferCompleted ¶
AZTransferCompleted updates metrics after a Azure upload or a download
func AddLoginAttempt ¶
func AddLoginAttempt(authMethod string)
AddLoginAttempt increments the metrics for login attempts
func AddLoginResult ¶
AddLoginResult increments the metrics for login results
func AddMetricsEndpoint ¶
func AddMetricsEndpoint(metricsPath string, handler chi.Router)
AddMetricsEndpoint publishes metrics to the specified endpoint
func AddNoAuthTried ¶ added in v2.5.1
func AddNoAuthTried()
AddNoAuthTried increments the metric for clients disconnected for inactivity before trying to login
func GCSCopyObjectCompleted ¶
func GCSCopyObjectCompleted(err error)
GCSCopyObjectCompleted updates metrics after a GCS copy object request terminates
func GCSDeleteObjectCompleted ¶
func GCSDeleteObjectCompleted(err error)
GCSDeleteObjectCompleted updates metrics after a GCS delete object request terminates
func GCSHeadObjectCompleted ¶
func GCSHeadObjectCompleted(err error)
GCSHeadObjectCompleted updates metrics after a GCS head object request terminates
func GCSListObjectsCompleted ¶
func GCSListObjectsCompleted(err error)
GCSListObjectsCompleted updates metrics after a GCS list objects request terminates
func GCSTransferCompleted ¶
GCSTransferCompleted updates metrics after a GCS upload or a download
func HTTPFsTransferCompleted ¶
HTTPFsTransferCompleted updates metrics after an HTTPFs upload or a download
func HTTPRequestServed ¶
func HTTPRequestServed(status int)
HTTPRequestServed increments the metrics for HTTP requests
func S3CopyObjectCompleted ¶
func S3CopyObjectCompleted(err error)
S3CopyObjectCompleted updates metrics after an S3 copy object request terminates
func S3DeleteObjectCompleted ¶
func S3DeleteObjectCompleted(err error)
S3DeleteObjectCompleted updates metrics after an S3 delete object request terminates
func S3HeadObjectCompleted ¶
func S3HeadObjectCompleted(err error)
S3HeadObjectCompleted updates metrics after a S3 head object request terminates
func S3ListObjectsCompleted ¶
func S3ListObjectsCompleted(err error)
S3ListObjectsCompleted updates metrics after an S3 list objects request terminates
func S3TransferCompleted ¶
S3TransferCompleted updates metrics after an S3 upload or a download
func SSHCommandCompleted ¶
func SSHCommandCompleted(err error)
SSHCommandCompleted update metrics after an SSH command terminates
func TransferCompleted ¶
TransferCompleted updates metrics after an upload or a download
func UpdateActiveConnectionsSize ¶
func UpdateActiveConnectionsSize(size int)
UpdateActiveConnectionsSize sets the metric for active connections
func UpdateDataProviderAvailability ¶
func UpdateDataProviderAvailability(err error)
UpdateDataProviderAvailability updates the metric for the data provider availability
Types ¶
This section is empty.