Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitRouterMetrics ¶
func NewHandler ¶
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
func NewCounter ¶
func NewCounter(opts prometheus.CounterOpts, labels ...string) *Counter
func (*Counter) Collect ¶
func (c *Counter) Collect(ch chan<- prometheus.Metric)
func (*Counter) Describe ¶
func (c *Counter) Describe(ch chan<- *prometheus.Desc)
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
func (*Gauge) Collect ¶
func (g *Gauge) Collect(ch chan<- prometheus.Metric)
func (*Gauge) Describe ¶
func (g *Gauge) Describe(ch chan<- *prometheus.Desc)
type HTTPRouteMetricLabels ¶
type HTTPRouteMetricLabels struct {
Service, Method, Host, Visitor, Path string
}
type HealthMetricLabels ¶
type HealthMetricLabels string
type RouteMetrics ¶
type RouteMetrics struct { HTTPReqTotal, HTTP2xx3xx, HTTP4xx, HTTP5xx *Counter HTTPReqElapsed *Gauge }
func GetRouteMetrics ¶
func GetRouteMetrics() *RouteMetrics
func (*RouteMetrics) UnregisterService ¶
func (rm *RouteMetrics) UnregisterService(service string)
type ServiceMetrics ¶
type ServiceMetrics struct {
HealthStatus *Gauge
}
func GetServiceMetrics ¶
func GetServiceMetrics() *ServiceMetrics
type StreamRouteMetricLabels ¶
type StreamRouteMetricLabels struct {
Service, Visitor string
}
Click to show internal directories.
Click to hide internal directories.