Documentation ¶
Index ¶
- func ServeHTTPRequests(addr string, path string)
- type Collector
- func (collector *Collector) DeleteThrottlingDelay(namespace string, podName string, containerName string) bool
- func (collector *Collector) IncrementHTTPRequestCount(podName, method, service, path string, status int)
- func (collector *Collector) IncrementHTTPRequestsTotalCount(service string)
- func (collector *Collector) IncrementLogMessageCount(namespace string, podName string, containerName string)
- func (collector *Collector) IncrementThrottlingDelay(namespace string, podName string, containerName string, value float64)
- func (collector *Collector) ObserveHTTPRequestTime(podName, method, service, path string, value float64)
- func (collector *Collector) ObserveHTTPUpstreamResponseTimeTotal(podName, method, service, path string, value float64)
- func (collector *Collector) Retrieve() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeHTTPRequests ¶
ServeHTTPRequests starts http service for handle metrics
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector provides interface for accessing and modification of metrics
func NewCollector ¶
NewCollector is a constructor for Collector singleton
func (*Collector) DeleteThrottlingDelay ¶
func (collector *Collector) DeleteThrottlingDelay(namespace string, podName string, containerName string) bool
DeleteThrottlingDelay should be used to delete gauge series with specified labels
func (*Collector) IncrementHTTPRequestCount ¶
func (collector *Collector) IncrementHTTPRequestCount(podName, method, service, path string, status int)
IncrementHTTPRequestCount i.golovchenko: don't like this interface actually, probably needs refactoring
func (*Collector) IncrementHTTPRequestsTotalCount ¶
IncrementHTTPRequestsTotalCount increments corresponding metric
func (*Collector) IncrementLogMessageCount ¶
func (collector *Collector) IncrementLogMessageCount( namespace string, podName string, containerName string)
IncrementLogMessageCount increments corresponding metric
func (*Collector) IncrementThrottlingDelay ¶
func (collector *Collector) IncrementThrottlingDelay(namespace string, podName string, containerName string, value float64)
IncrementThrottlingDelay increments value of corresponding metric
func (*Collector) ObserveHTTPRequestTime ¶
func (collector *Collector) ObserveHTTPRequestTime( podName, method, service, path string, value float64)
ObserveHTTPRequestTime should be used to make observations of corresponding metric
func (*Collector) ObserveHTTPUpstreamResponseTimeTotal ¶
func (collector *Collector) ObserveHTTPUpstreamResponseTimeTotal( podName, method, service, path string, value float64)
ObserveHTTPUpstreamResponseTimeTotal should be used to make observations of corresponding metric