Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricExporter ¶
type MetricExporter struct { Metrics *metrics.Prometheus // contains filtered or unexported fields }
MetricExporter holds the web endpoint for prometheus this implements the interface MonitorEndpoint
func GetInstance ¶
func GetInstance() *MetricExporter
GetInstance initializes the instance exactly once and returns it
func (*MetricExporter) Register ¶
func (m *MetricExporter) Register(collector prometheus.Collector)
Register registers a prometheus collector
type MonitorEndpoint ¶
type MonitorEndpoint interface {
Register(collector prometheus.Collector)
}
MonitorEndpoint defines the monitoring handler
Click to show internal directories.
Click to hide internal directories.