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 ¶
- func AddControllerAddressFlag(cmd *cobra.Command, value *string)
- func AddListenAddressFlag(cmd *cobra.Command, value *string)
- func AddMetricsPathFlag(cmd *cobra.Command, value *string)
- func Entrypoint(options *VolumeExporterOptions)
- func NewCmdVolumeExporter() *cobra.Command
- func Run(cmd *cobra.Command, options *VolumeExporterOptions) error
- type VolumeExporterOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddListenAddressFlag ¶
func AddMetricsPathFlag ¶
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 ¶
NewCmdVolumeExporter is used to create command monitoring and it initialize monitoring flags also.
Types ¶
type VolumeExporterOptions ¶
type VolumeExporterOptions struct { ListenAddress string MetricsPath string ControllerAddress string }
VolumeExporterOptions is used to create flags for the monitoring command