Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter is a struct to organize operations of metrics Exporter
func (*Exporter) RegisterMetricsCollectors ¶
func (e *Exporter) RegisterMetricsCollectors(collectors ...prometheus.Collector) *Exporter
RegisterMetricsCollectors registes additional metrics collectors
func (*Exporter) StartMetricsExporterServer ¶
func (e *Exporter) StartMetricsExporterServer(address string, description SoftwareDescription)
StartMetricsExporterServer starts metrics exporter in background for gRPC metrics
type SoftwareDescription ¶
type SoftwareDescription struct { // Name specifies name of the software. Expected to be human-friendly. Ex.: collector Name string // Version specifies version of the software. Ex.: 1.2.3 Version string // Tag specifies git tag of the software sources which it is built from Tag string // Sha specifies git sha of the software commit which it is built from Sha string // Built specifies time when the software is built Built string }
SoftwareDescription describes piece of software
Click to show internal directories.
Click to hide internal directories.