Documentation ¶
Index ¶
Constants ¶
View Source
const (
Name = "prometheus"
)
Variables ¶
View Source
var DefaultConfig = Config{
ListenAddress: ":8082",
Path: "/metrics",
}
DefaultConfig is the default configuration.
Functions ¶
Types ¶
type Config ¶ added in v0.2.0
type Config struct { // ListenAddress is the address that the exporter will listen on. ListenAddress string `yaml:"listen_address"` // Path is the exporter url path. Path string `yaml:"path"` }
Config is the configuration for the prometheus plugin.
func (*Config) UnmarshalYAML ¶ added in v0.2.0
type Prometheus ¶
type Prometheus struct {
// contains filtered or unexported fields
}
Prometheus served as a prometheus exporter that exposes gmqtt metrics.
func (*Prometheus) Collect ¶
func (p *Prometheus) Collect(m chan<- prometheus.Metric)
func (*Prometheus) Describe ¶
func (p *Prometheus) Describe(desc chan<- *prometheus.Desc)
func (*Prometheus) HookWrapper ¶
func (p *Prometheus) HookWrapper() server.HookWrapper
func (*Prometheus) Name ¶
func (p *Prometheus) Name() string
func (*Prometheus) Unload ¶
func (p *Prometheus) Unload() error
Click to show internal directories.
Click to hide internal directories.