prometheus

package module
v0.0.0-...-334d9b8 Latest Latest
Warning

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

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

README

prometheus

Test status Go Report Card GoDev

Prometheus plugin.

  • HTTP endpoint.

This library requires Go1.17 or later.

Install

go get github.com/atreugo/prometheus

Contributing

Feel free to contribute... 😉

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(s *atreugo.Atreugo, cfg Config)

Register registers the prometheus plugin to the server with the given configuration.

Types

type Config

type Config struct {
	// Method is the HTTP method to use for the metrics endpoint.
	//
	// Default: "GET"
	Method string

	// URL is the path to the metrics endpoint.
	//
	// Default: "/metrics"
	URL string
}

Config is the configuration for the Prometheus plugin.

Jump to

Keyboard shortcuts

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