Documentation ¶
Index ¶
- func Context(ctx context.Context) func(*Publisher)
- func Debug(w io.Writer) func(*Publisher)
- func Dimensions(keysAndValues ...string) func(*Publisher)
- func Interval(interval time.Duration) func(*Publisher)
- func Log(w io.Writer) func(*Publisher)
- func Percentiles(percentiles []float64) func(*Publisher)
- func Publish(client PutMetricsClient, registry metrics.Registry, namespace string, ...)
- type Publisher
- type PutMetricsClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Context ¶
Context allows a context to be specified. When <-ctx.Done() returns; the Publisher will stop any internal go routines and return
func Dimensions ¶
Dimensions allows for user specified dimensions to be added to the post
func Interval ¶
Interval allows for a custom posting interval; by default, the interval is every 1 minute
func Percentiles ¶
Percentiles allows the reported percentiles for Histogram and Timer metrics to be customized
func Publish ¶
func Publish(client PutMetricsClient, registry metrics.Registry, namespace string, configs ...func(*Publisher))
Publish is the main entry point to publish metrics on a recurring basis to CloudWatch
Types ¶
type PutMetricsClient ¶
type PutMetricsClient interface {
PutMetricData(*cloudwatch.PutMetricDataInput) (*cloudwatch.PutMetricDataOutput, error)
}
Click to show internal directories.
Click to hide internal directories.