openstack

package
v0.0.0-...-0fce7b6 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 28 Imported by: 0

README

# Openstack plugin
This plugin provide metric about cloud build on openstack. Call openstack api to get metric of cloud control plane.
Here is it's flows:
* Call openstack keystone service to authenticate, get token identity and all openstack's endpoint
* Call openstack [keystone,nova,cinder,neutron] endpoint to get metric.

## Metric:

... About more than 100 metrics, you can get it when run unit test. I'm too lazy to list it here.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenStack

type OpenStack struct {
	// Configuration variables
	IdentityEndpoint string
	ProjectDomainID  string
	UserDomainID     string
	Project          string
	Username         string
	Password         string
	Region           string
	Cloud            string
	ServicesGather   []string
	tls.ClientConfig
	// contains filtered or unexported fields
}

OpenStack is the main structure associated with a collection instance.

func (*OpenStack) Description

func (o *OpenStack) Description() string

Description returns a description string of the input plugin and implements the Input interface.

func (*OpenStack) Gather

func (o *OpenStack) Gather(acc telegraf.Accumulator) error

main func

func (*OpenStack) SampleConfig

func (o *OpenStack) SampleConfig() string

SampleConfig return a sample configuration file for auto-generation and implements the Input interface.

Jump to

Keyboard shortcuts

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