Documentation ¶
Index ¶
Constants ¶
View Source
const (
OpenMetricsMIMEType = "application/openmetrics-text"
)
View Source
const (
PrometheusMetricFormat = "prometheus"
)
Variables ¶
This section is empty.
Functions ¶
func FormatFromRequest ¶
Types ¶
type MetricsHelper ¶
type MetricsHelper struct { PrometheusEnabled bool // contains filtered or unexported fields }
func NewMetricsHelper ¶
func NewMetricsHelper(inMem *metrics.InmemSink, enablePrometheus bool) *MetricsHelper
func (*MetricsHelper) GenericResponse ¶
func (m *MetricsHelper) GenericResponse() (*logical.Response, error)
func (*MetricsHelper) PrometheusResponse ¶
func (m *MetricsHelper) PrometheusResponse() (*logical.Response, error)
func (*MetricsHelper) ResponseForFormat ¶
func (m *MetricsHelper) ResponseForFormat(format string) (*logical.Response, error)
Click to show internal directories.
Click to hide internal directories.