Documentation
¶
Index ¶
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 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
func (*Reporter) Metric ¶
Metric appends a new metric to the reporter. The value v must be either an int64 or float64, otherwise an error is returned
func (*Reporter) Sample ¶
func (r *Reporter) Sample(name string, tags []string, dist instruments.Distribution) error
Sample implements instruments.Reporter
Click to show internal directories.
Click to hide internal directories.