Documentation ¶
Index ¶
Constants ¶
View Source
const ( OpenMetricsMIMEType = "application/openmetrics-text" PrometheusSchemaMIMEType = "prometheus/telemetry" // ErrorContentType is the content type returned by an error response. ErrorContentType = "text/plain" )
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
func (*MetricsHelper) PrometheusResponse ¶
func (m *MetricsHelper) PrometheusResponse() *logical.Response
func (*MetricsHelper) ResponseForFormat ¶
func (m *MetricsHelper) ResponseForFormat(format string) *logical.Response
Click to show internal directories.
Click to hide internal directories.