Files
2026-09-21 09:12:53 +01:00

1.6 KiB

metricskey

import "github.com/effective-security/xpki/metricskey"

Package metricskey defines the metrics.Describe descriptors emitted by the crypto providers (perf_crypto) and the certificate authority (perf_ca, perf_ca_signreq), and the Metrics list used to register them.

Index

Variables

Perf

var (
    // PerfCryptoOperation is perf metric
    PerfCryptoOperation = metrics.Describe{
        Type:         metrics.TypeSample,
        Name:         "perf_crypto",
        Help:         "perf_crypto provides the sample metrics of crypto operations",
        RequiredTags: []string{"provider", "action"},
    }

    // PerfCAOperation is perf metric
    PerfCAOperation = metrics.Describe{
        Type:         metrics.TypeSample,
        Name:         "perf_ca",
        Help:         "perf_ca provides the sample metrics of CA operations by issuer and action",
        RequiredTags: []string{"issuer", "action"},
    }

    // PerfCASignRequest is perf metric
    PerfCASignRequest = metrics.Describe{
        Type:         metrics.TypeSample,
        Name:         "perf_ca_signreq",
        Help:         "perf_ca_signreq provides the sample metrics of certificate sign requests by issuer and profile",
        RequiredTags: []string{"issuer", "profile"},
    }
)

Metrics returns slice of metrics from this repo

var Metrics = []*metrics.Describe{
    &PerfCryptoOperation,
    &PerfCAOperation,
    &PerfCASignRequest,
}

Generated by gomarkdoc