Documentation ¶
Overview ¶
Package prom provides Prometheus emulation and translation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(blipDomain string, tr DomainTranslator) error
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API emulates a Prometheus exporter API. It uses an Exporter to scape metrics when GET /metrics is called.
type DomainTranslator ¶
type DomainTranslator interface { Translate(values []blip.MetricValue, ch chan<- prometheus.Metric) Names() (prefix, domain, shortDomin string) }
func Translator ¶
func Translator(domain string) DomainTranslator
Click to show internal directories.
Click to hide internal directories.