prometheus

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0, BSD-2-Clause Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "Prometheus"

PluginName is the name of the prometheus plugin.

Variables

View Source
var Parameters = &ParametersDefinition{}

Parameters contains the configuration used by the prometheus plugin.

View Source
var (
	// Plugin is the plugin instance of the prometheus plugin.
	Plugin = node.NewPlugin(PluginName, deps, node.Disabled, configure, run)
)

Plugin Prometheus

Functions

This section is empty.

Types

type ParametersDefinition

type ParametersDefinition struct {
	// BindAddress defines the bind address for the Prometheus exporter server.
	BindAddress string `default:"0.0.0.0:9311" usage:"bind address on which the Prometheus exporter server"`
	// GoMetrics defines whether to include Go metrics.
	GoMetrics bool `default:"false" usage:"include go metrics"`
	// ProcessMetrics defines whether to include process metrics.
	ProcessMetrics bool `default:"true" usage:"include process metrics"`
	// PromhttpMetrics defines whether to include promhttp metrics.
	PromhttpMetrics bool `default:"false" usage:"include promhttp metrics"`
	// WorkerpoolMetrics defines whether to include workerpool metrics.
	WorkerpoolMetrics bool `default:"false" usage:"include workerpool metrics"`
}

ParametersDefinition contains the definition of the parameters used by the prometheus plugin.

Jump to

Keyboard shortcuts

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