Documentation
¶
Overview ¶
Package text writes Prometheus metrics in the text exposition format.
frp uses it for frpc, which only exposes Go runtime metrics. Implementing that subset here keeps client_golang and its protobuf dependency out of the frpc binary; frps keeps using client_golang, which also gives it the business metrics and the HTTP handler instrumentation.
Index ¶
Constants ¶
View Source
const ContentType = "text/plain; version=0.0.4; charset=utf-8"
ContentType is the content type of the text exposition format.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry holds the collectors exposed on one listener.
func (*Registry) RegisterRuntime ¶
func (r *Registry) RegisterRuntime()
RegisterRuntime registers the Go runtime collector.
Click to show internal directories.
Click to hide internal directories.