vault: github.com/hashicorp/vault/helper/metricsutil Index | Files

package metricsutil

import "github.com/hashicorp/vault/helper/metricsutil"

Index

Package Files

metricsutil.go

Constants

const (
    OpenMetricsMIMEType = "application/openmetrics-text"

    // ErrorContentType is the content type returned by an error response.
    ErrorContentType = "text/plain"
)
const (
    PrometheusMetricFormat = "prometheus"
)

func FormatFromRequest Uses

func FormatFromRequest(req *logical.Request) string

type MetricsHelper Uses

type MetricsHelper struct {
    PrometheusEnabled bool
    // contains filtered or unexported fields
}

func NewMetricsHelper Uses

func NewMetricsHelper(inMem *metrics.InmemSink, enablePrometheus bool) *MetricsHelper

func (*MetricsHelper) GenericResponse Uses

func (m *MetricsHelper) GenericResponse() *logical.Response

func (*MetricsHelper) PrometheusResponse Uses

func (m *MetricsHelper) PrometheusResponse() *logical.Response

func (*MetricsHelper) ResponseForFormat Uses

func (m *MetricsHelper) ResponseForFormat(format string) *logical.Response

Package metricsutil imports 9 packages (graph) and is imported by 4 packages. Updated 2019-10-10. Refresh now. Tools for package owners.