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.
Click to show internal directories.
Click to hide internal directories.