Documentation ¶
Overview ¶
package prometheuscollector allows to expose metrics for Prometheus.
Using the provided collector, you can easily expose metrics for tusd in the Prometheus exposition format (https://prometheus.io/docs/instrumenting/exposition_formats/):
handler, err := handler.NewHandler(…) collector := prometheuscollector.New(handler.Metrics) prometheus.MustRegister(collector)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func (Collector) Collect ¶
func (c Collector) Collect(metrics chan<- prometheus.Metric)
func (Collector) Describe ¶
func (Collector) Describe(descs chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.