Help us shape the future of Go! Take the 2026 Go Developer Survey

handler

package
v0.4.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstrumentMetricHandler

func InstrumentMetricHandler(registry *prometheus.Registry, handler http.Handler) http.Handler

InstrumentMetricHandler is a middleware that wraps the provided http.Handler to observe requests sent to the exporter

func RegisterCustomResourceMuxHandlers

func RegisterCustomResourceMuxHandlers(mux *http.ServeMux, customResourceRegistry *prometheus.Registry, exporterRegistry *prometheus.Registry)

RegisterCustomResourceMuxHandlers registers the handlers needed to serve metrics about Custom Resources

func RegisterExporterMuxHandlers

func RegisterExporterMuxHandlers(mux *http.ServeMux, exporterRegistry *prometheus.Registry)

RegisterExporterMuxHandlers registers the handlers needed to serve the exporter self metrics

func RegisterRBDMirrorMuxHandlers added in v0.4.11

func RegisterRBDMirrorMuxHandlers(mux *http.ServeMux, rbdRegistry *prometheus.Registry)

RegisterRBDMirrorMuxHandlers registers handlers needed to serve RBD mirror metrics

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL