prometheus

package
v1.29.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package prometheus provides Prometheus metrics for Mailpit

Index

Constants

This section is empty.

Variables

View Source
var (
	// Registry is the Prometheus registry for Mailpit metrics
	Registry = prometheus.NewRegistry()
)

Functions

func GetHandler

func GetHandler() http.Handler

GetHandler returns the Prometheus handler & disables double compression in middleware

func GetMode

func GetMode() string

GetMode returns the Prometheus run mode

func StartSeparateServer

func StartSeparateServer()

StartSeparateServer starts a separate HTTP server for Prometheus metrics

func StartUpdater

func StartUpdater()

StartUpdater starts the periodic metrics update routine

Types

This section is empty.

Jump to

Keyboard shortcuts

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