Documentation ¶
Overview ¶
metrics implements a metrics reporter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Prometheus represents a Prometheus metrics exporter configuration. Prometheus *prometheus.Config `yaml:"prometheus"` // FlushInterval represents the time interval in seconds at which to flush metrics to the internal registry. FlushInterval int `yaml:"flush_interval"` // WithRuntimeMetrics represents a flag indicating whether Go runtime metrics should be included to the registered // metrics. WithRuntimeMetrics bool `yaml:"runtime_metrics"` // Debug represents a flags indicating whether to enable internal reporter activity logging. // This is mainly for debug purposes. Debug bool `yaml:"debug"` }
Config represents a metrics reporter configuration.
type Reporter ¶
type Reporter struct { Prometheus *prometheus.Exporter *debug.D // contains filtered or unexported fields }
Reporter represents a metrics reporter instance.
Directories ¶
Path | Synopsis |
---|---|
prometheus implements a Prometheus-compatible metrics exporter.
|
prometheus implements a Prometheus-compatible metrics exporter. |
Click to show internal directories.
Click to hide internal directories.