prometheus

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaddyService

type CaddyService struct {
	Handler caddyhttp.Handler
}

func (CaddyService) Handle

func (c CaddyService) Handle(w http.ResponseWriter, r *http.Request) (int, error)

type ErrorLogger

type ErrorLogger struct {
	// contains filtered or unexported fields
}

func NewErrorLogger

func NewErrorLogger(logger *zap.SugaredLogger) *ErrorLogger

func (*ErrorLogger) Println

func (l *ErrorLogger) Println(args ...interface{})

type PrometheusModule

type PrometheusModule struct {
	MetricsPath    string `json:"metrics_path,omitempty"`
	MetricsHandler http.Handler
	Logger         *zap.SugaredLogger
	// contains filtered or unexported fields
}

func (PrometheusModule) CaddyModule

func (PrometheusModule) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*PrometheusModule) Provision

func (m *PrometheusModule) Provision(ctx caddy.Context) error

Provision implements caddy.Provisioner.

func (PrometheusModule) ServeHTTP

func (*PrometheusModule) SetupMetrics

func (m *PrometheusModule) SetupMetrics()

func (*PrometheusModule) UnmarshalCaddyfile

func (m *PrometheusModule) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile implements caddyfile.Unmarshaler.

func (*PrometheusModule) Validate

func (m *PrometheusModule) Validate() error

Validate implements caddy.Validator.

type PrometheusResponseWriter

type PrometheusResponseWriter struct {
	// contains filtered or unexported fields
}

func NewPrometheusResponseWriter

func NewPrometheusResponseWriter(writer http.ResponseWriter) *PrometheusResponseWriter

func (PrometheusResponseWriter) Header

func (pw PrometheusResponseWriter) Header() http.Header

func (PrometheusResponseWriter) Write

func (pw PrometheusResponseWriter) Write(b []byte) (int, error)

func (PrometheusResponseWriter) WriteHeader

func (pw PrometheusResponseWriter) WriteHeader(statusCode int)

Jump to

Keyboard shortcuts

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