metrics

package
v0.0.0-...-f839e32 Latest Latest
Warning

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

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

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 NewExporter

func NewExporter() *Exporter

NewExporter is a constructor

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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