Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultPrometheusPort = 9181 DefaultPrometheusConnectionTimeout time.Duration = time.Second * 60 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrometheusExporter ¶
type PrometheusExporter struct { *metrics.BaseService Addr string Port int // contains filtered or unexported fields }
PrometheusExporter is a prometheus exporter service.
func NewService ¶
func NewService() *PrometheusExporter
NewService returns a new prometheus exporter service.
func (*PrometheusExporter) ServiceName ¶
func (exp *PrometheusExporter) ServiceName() string
ServiceName returns the plug-in service name.
func (*PrometheusExporter) SetPort ¶
func (exp *PrometheusExporter) SetPort(port int)
SetPort sets a port number of the exp.
func (*PrometheusExporter) Start ¶
func (exp *PrometheusExporter) Start() error
Start starts the exp.
func (*PrometheusExporter) Stop ¶
func (exp *PrometheusExporter) Stop() error
Stop stops the Grpc exp.
Click to show internal directories.
Click to hide internal directories.