Documentation
¶
Index ¶
Constants ¶
View Source
const ( //HeaderUserName is a variable of type string HeaderUserName = "x-user-name" HeaderDomainName = "x-domain-name" ContentType = "Content-Type" Name = "monitor" )
constants for header parameters
Variables ¶
View Source
var IsMonitoringConnected bool
IsMonitoringConnected is a boolean to keep an check if there exsist any succeful connection to monitoring Server
Functions ¶
This section is empty.
Types ¶
type CseCollectorConfig ¶
type CseCollectorConfig struct {
// CseMonitorAddr is the http address of the csemonitor server
CseMonitorAddr string
// Headers for csemonitor server
Header http.Header
// TickInterval specifies the period that this collector will send metrics to the server.
TimeInterval time.Duration
// Config structure to configure a TLS client for sending Metric data
TLSConfig *tls.Config
Env string
}
CseCollectorConfig is a struct to keep monitoring information
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter is a struct to store the registry address and different monitoring information
func GetReporter ¶ added in v1.0.2
GetReporter get reporter singleton
func NewReporter ¶
func NewReporter(config *CseCollectorConfig) (*Reporter, error)
NewReporter creates a new monitoring object for CSE type collections
func (*Reporter) Send ¶ added in v1.0.2
func (reporter *Reporter) Send(cb *hystrix.CircuitBreaker)
Send send metrics to monitoring service
Click to show internal directories.
Click to hide internal directories.