prometheus

package
v7.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package prometheus provides a module which collects metrics and exposes them via an HTTP route.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prometheus

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

Prometheus is a module which collects metrics and exposes them via an HTTP route.

func (Prometheus) Descriptor

func (Prometheus) Descriptor() gotenberg.ModuleDescriptor

Descriptor returns a Prometheus's module descriptor.

func (*Prometheus) Provision

func (mod *Prometheus) Provision(ctx *gotenberg.Context) error

Provision sets the modules properties.

func (Prometheus) Routes

func (mod Prometheus) Routes() ([]api.Route, error)

Routes returns the HTTP route.

func (Prometheus) Start

func (mod Prometheus) Start() error

Start starts the collect.

func (Prometheus) StartupMessage

func (mod Prometheus) StartupMessage() string

StartupMessage returns a custom startup message.

func (Prometheus) Stop

func (mod Prometheus) Stop(_ context.Context) error

Stop does nothing.

func (Prometheus) Validate

func (mod Prometheus) Validate() error

Validate validates the module properties.

Jump to

Keyboard shortcuts

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