Documentation ¶
Index ¶
- Variables
- func InitMetricsExporter(metricsBackend string, port int) error
- func ReportAADExchangeDuration(ctx context.Context, duration int64, resourceType string)
- func ReportACRExchangeDuration(ctx context.Context, duration int64, repository string)
- func ReportAKVCertificateDuration(ctx context.Context, duration int64, certificateName string)
- func ReportBlobCacheCount(ctx context.Context, hit bool)
- func ReportMutationRequest(ctx context.Context, duration int64)
- func ReportRegistryRequestCount(ctx context.Context, statusCode int, registryHost string)
- func ReportSystemError(ctx context.Context, errorString string)
- func ReportVerificationRequest(ctx context.Context, duration int64)
- func ReportVerifierDuration(ctx context.Context, duration int64, veriferName string, ...)
Constants ¶
This section is empty.
Variables ¶
var MetricReader metric.Reader
Functions ¶
func InitMetricsExporter ¶
InitMetricsExporter initializes the metrics exporter for the specified metrics backend and port
func ReportAADExchangeDuration ¶
ReportAADExchangeDuration reports the duration of an AAD exchange Attributes: resourceType: the scope of resource being exchanged (AKV or ACR)
func ReportACRExchangeDuration ¶
ReportACRExchangeDuration reports the duration of an ACR exchange (AAD token for ACR refresh token) Attributes: repository: the repository being accessed
func ReportAKVCertificateDuration ¶
ReportAKVCertificateDuration reports the duration of an AKV certificate fetch Attributes: certificateName: the object name of the certificate
func ReportBlobCacheCount ¶
ReportBlobCacheCount reports a blob cache hit or miss Attributes: hit: whether the blob was found in the cache
func ReportMutationRequest ¶
ReportMutationRequest reports the duration of a mutation request
func ReportRegistryRequestCount ¶
ReportRegistryRequestCount reports a registry request Attributes: statusCode: the status code of the request registryHost: the host name of the registry
func ReportSystemError ¶
ReportSystemError reports a system error from the server handler Attributes: errorString: the error message
func ReportVerificationRequest ¶
ReportVerificationRequest reports the duration of a verification request
func ReportVerifierDuration ¶
func ReportVerifierDuration(ctx context.Context, duration int64, veriferName string, subjectReference string, success bool, isError bool)
ReportVerifierDuration reports the duration of a single verifier's execution Attributes: verifierName: the name of the verifier subjectReference: the subject reference of the verification success: whether the verification succeeded isError: whether the verification failed due to an error
Types ¶
This section is empty.