Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Closer ¶
type Closer interface {
Close() error
}
Closer is an interface for backends that need to dispose of resources
type CloudWatchBackend ¶
type CloudWatchBackend struct {
// contains filtered or unexported fields
}
CloudWatchBackend sends metrics to AWS CloudWatch
func NewCloudWatchBackend ¶
func NewCloudWatchBackend(region string, dimensions []CloudWatchDimension) *CloudWatchBackend
NewCloudWatchBackend returns a new CloudWatchBackend with optional dimensions
type CloudWatchDimension ¶
CloudWatchDimension is a dimension to add to metrics
func ParseCloudWatchDimensions ¶
func ParseCloudWatchDimensions(ds string) ([]CloudWatchDimension, error)
type NewRelicBackend ¶
type NewRelicBackend struct {
// contains filtered or unexported fields
}
NewRelicBackend sends metrics to New Relic Insights
func NewNewRelicBackend ¶
func NewNewRelicBackend(appName string, licenseKey string) (*NewRelicBackend, error)
NewNewRelicBackend returns a backend for New Relic Where appName is your desired application name in New Relic
and licenseKey is your New Relic license key
func (*NewRelicBackend) Close ¶
func (nr *NewRelicBackend) Close() error
Close by shutting down NR client
type Prometheus ¶
type Prometheus struct {
// contains filtered or unexported fields
}
func NewPrometheusBackend ¶
func NewPrometheusBackend() *Prometheus
func (*Prometheus) Serve ¶
func (p *Prometheus) Serve(path, addr string)
Serve runs a Prometheus metrics HTTP server.
type StackDriverBackend ¶
type StackDriverBackend struct {
// contains filtered or unexported fields
}
StackDriverBackend sends metrics to GCP Stackdriver
func NewStackDriverBackend ¶
func NewStackDriverBackend(gcpProjectID string) (*StackDriverBackend, error)
NewStackDriverBackend returns a new StackDriverBackend for the specified project
Click to show internal directories.
Click to hide internal directories.