prometheus

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0, BSD-2-Clause Imports: 23 Imported by: 5 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 added in v0.7.4

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