vault: Index | Files

package metricsutil

import ""


Package Files



const (
    OpenMetricsMIMEType = "application/openmetrics-text"

    PrometheusSchemaMIMEType = "prometheus/telemetry"

    // 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 5 packages. Updated 2020-01-10. Refresh now. Tools for package owners.