mpgcpcomputeengine

package
v0.41.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do()

Do the plugin

Types

type ComputeEnginePlugin

type ComputeEnginePlugin struct {
	Project           string
	InstanceName      string
	MonitoringService *monitoring.Service
	Option            *Option
	Tempfile          string
}

ComputeEnginePlugin is mackerel plugin for Google Compute Engine

func (ComputeEnginePlugin) FetchMetrics

func (p ComputeEnginePlugin) FetchMetrics() (map[string]interface{}, error)

FetchMetrics fetches metrics from Google Monitoring API

func (ComputeEnginePlugin) GraphDefinition

func (p ComputeEnginePlugin) GraphDefinition() map[string]mp.Graphs

GraphDefinition is return graphdef

type Option

type Option struct {
	Key string
}

Option is optional argument to an API call

func (Option) Get

func (c Option) Get() (string, string)

Get returns key and value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL