prometheus

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HTTPRequestsTotal records the total number of HTTP requests, partitioned by hostname.
	HTTPRequestsTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: namespace,
			Name:      "http_requests_total",
			Help:      "Total number of HTTP requests, partitioned by hostname.",
		},
		[]string{"host"},
	)
)

Additional metrics to expose, prometheus.DefaultGatherer includes runtime metrics by default.

Functions

func WriteMetrics

func WriteMetrics(writer io.Writer, acceptHeader string) (string, error)

WriteMetrics writes data to the supplied io.Writer in the format specified by the `Accept` header (where possible). The `Content-Type` of the response is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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