Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( /* * An MQL query that will return data from Google Cloud with the * - Instance Name * - Region * - Zone * - Machine Type * - Reserved CPUs * - Utilization * NOTE: Using reserved CPUs as vCPUs, because they are equivalent for visible * vCPUs within a guest instance, except for shared-core machines: * https://cloud.google.com/monitoring/api/metrics_gcp */ CPUQuery = `` /* 465-byte string literal not displayed */ /* * An MQL query that will return memory data from Google Cloud with the * - Instance Name * - Region * - Zone * - Machine Type * - Memory Usage * NOTE: According to Google the 'ram_used' metric is only available for * e2-xxxx instances, which means that we can get memory usage for other types * of VM's */ MEMQuery = `` /* 309-byte string literal not displayed */ )
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the structure used as the provider for Google Cloud Platform
func New ¶
func New( ctx context.Context, account *config.Account, opts ...options, ) (c *Client, teardown func(), err error)
New returns a new instance of the GCP provider as well as a function to cleanup connections once done
func (*Client) GetMetricsForInstances ¶
GetMetricsForInstances retrieves all the metrics for a given instance And updates the cached instance with the metrics
type Source ¶
type Source struct { // Google Client *Client // The Project that Client is setup for Project *string // Teardown functionality Shutdown func() }
Source is a configured google source that adheres to Aethers source interface
Click to show internal directories.
Click to hide internal directories.