exporter

package
v0.0.0-...-ec68995 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package exporter start an http server and display the collected metrics at "/metrics" endpoint. It collect metrics from collector.go You have to instantiates NewExporter by calling collector.NewExporter method and pass the Jiva volume controller IP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddControllerAddressFlag

func AddControllerAddressFlag(cmd *cobra.Command, value *string)

func AddListenAddressFlag

func AddListenAddressFlag(cmd *cobra.Command, value *string)

func AddMetricsPathFlag

func AddMetricsPathFlag(cmd *cobra.Command, value *string)

func Entrypoint

func Entrypoint(options *VolumeExporterOptions)

We need to run several instances of Exporter for each volume just like node exporter on every node. At a time one instance can gather only the metrics from the requested volume. You need to pass the controller IP using flag -c at runtime as a command line argument. Type maya-agent monitor -h for more info.

func NewCmdVolumeExporter

func NewCmdVolumeExporter() *cobra.Command

NewCmdVolumeExporter is used to create command monitoring and it initialize monitoring flags also.

func Run

func Run(cmd *cobra.Command, options *VolumeExporterOptions) error

run used to process commands,args and call openebs exporter and it returns nil on successful execution.

Types

type VolumeExporterOptions

type VolumeExporterOptions struct {
	ListenAddress     string
	MetricsPath       string
	ControllerAddress string
}

VolumeExporterOptions is used to create flags for the monitoring command

Directories

Path Synopsis
Package collector is used to collect metrics by implementing prometheus.Collector interface.
Package collector is used to collect metrics by implementing prometheus.Collector interface.

Jump to

Keyboard shortcuts

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