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"
)
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, error)

func (*MetricsHelper) PrometheusResponse Uses

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

func (*MetricsHelper) ResponseForFormat Uses

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

Package metricsutil imports 8 packages (graph) and is imported by 2 packages. Updated 2019-04-13. Refresh now. Tools for package owners.