Documentation ¶
Overview ¶
Package metrics provides Prometheus metrics support
Index ¶
- func AddLoginAttempt(authMethod string)
- func AddLoginResult(authMethod string, err error)
- func AddMetricsEndpoint(metricsPath string, handler chi.Router)
- func AddNoAuthTryed()
- func GCSCopyObjectCompleted(err error)
- func GCSDeleteObjectCompleted(err error)
- func GCSHeadBucketCompleted(err error)
- func GCSListObjectsCompleted(err error)
- func GCSTransferCompleted(bytes int64, transferKind int, err error)
- func HTTPRequestServed(status int)
- func S3CopyObjectCompleted(err error)
- func S3DeleteObjectCompleted(err error)
- func S3HeadBucketCompleted(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)
- func UpdateActiveConnectionsSize(size int)
- func UpdateDataProviderAvailability(err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLoginAttempt ¶
func AddLoginAttempt(authMethod string)
AddLoginAttempt increments the metrics for login attempts
func AddLoginResult ¶
AddLoginResult increments the metrics for login results
func AddMetricsEndpoint ¶
AddMetricsEndpoint exposes metrics to the specified endpoint
func AddNoAuthTryed ¶ added in v1.1.0
func AddNoAuthTryed()
AddNoAuthTryed 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 GCSHeadBucketCompleted ¶
func GCSHeadBucketCompleted(err error)
GCSHeadBucketCompleted updates metrics after a GCS head bucket 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 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 S3HeadBucketCompleted ¶
func S3HeadBucketCompleted(err error)
S3HeadBucketCompleted updates metrics after an S3 head bucket 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.