Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
Option represents prometheus options update method
func ListenAddress ¶
ListenAddress represents exposing metrics address.
func MetricsPath ¶
MetricsPath represents exposing metrics path
func ServiceVersion ¶
ServiceVersion represents service version
type Options ¶
type Options struct { ServiceID string ServiceName string ServiceVersion string Subsystem string ListenAddress string MetricsPath string }
Options represents prometheus metrics options
type Prometheus ¶
type Prometheus interface { NewClientWrapper() client.Wrapper NewCallWrapper() client.CallWrapper NewHandlerWrapper() server.HandlerWrapper NewSubscriberWrapper() server.SubscriberWrapper }
Prometheus represents go micro monitoring plugin for prometheus
func NewPrometheus ¶
func NewPrometheus(opts ...Option) Prometheus
NewPrometheus generates a new set of metrics with a certain subsystem name
Click to show internal directories.
Click to hide internal directories.