Documentation ¶
Overview ¶
Package monitoring implements the functionality to export timeseries data to the Cloud Monitoring service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client exports metrics to the Cloud Monitoring Service.
func NewClient ¶
func NewClient() *Client
NewClient returns a client that can be used for creating, incrementing, and retrieving metrics but not for exporting them.
func (*Client) NewInt64 ¶
NewInt64 creates a new cumulative int64 metric with the given name or does nothing if the client is nil. If the same name is used multiple times, only the last returned Metric is exported.
func (*Client) StartExport ¶
Run sends the metrics to the monitoring service roughly once a minute.
Click to show internal directories.
Click to hide internal directories.