Documentation
¶
Index ¶
- Constants
- type Client
- type Metric
- type Reporter
- func (r *Reporter) Discrete(name string, tags []string, inst instruments.Discrete) error
- func (r *Reporter) Flush() error
- func (r *Reporter) Metric(name string, tags []string, v interface{})
- func (r *Reporter) Prep() error
- func (r *Reporter) Sample(name string, tags []string, inst instruments.Sample) error
Constants ¶
View Source
const DefaultURL = "https://app.datadoghq.com/api/v1/series"
DefaultURL is the default series URL the client sends metric data to
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// URL is the series URL to push data to.
// Default: DefaultURL
URL string
// contains filtered or unexported fields
}
type Metric ¶
type Metric struct {
Name string `json:"metric"`
Points [][2]interface{} `json:"points"`
Host string `json:"host,omitempty"`
Tags []string `json:"tags,omitempty"`
}
Metric represents a flushed metric
type Reporter ¶
type Reporter struct {
// Client is a customisable reporter client
Client *Client
// Hostname can be customised.
// Default: set via os.Hostname()
Hostname string
// contains filtered or unexported fields
}
Reporter implements instruments.Reporter and simply logs metrics
Click to show internal directories.
Click to hide internal directories.