Documentation ¶
Index ¶
- func GetRegistry() *prometheus.Registry
- type PrometheusExporter
- func (e *PrometheusExporter) NewContainerCollector(containerMetrics map[string]*stats.ContainerStats)
- func (e *PrometheusExporter) NewNodeCollector(nodeMetrics *stats.NodeStats)
- func (e *PrometheusExporter) NewProcessCollector(processMetrics map[uint64]*stats.ProcessStats)
- func (e *PrometheusExporter) NewVMCollector(vmMetrics map[string]*stats.VMStats)
- func (e *PrometheusExporter) RegisterMetrics() *prometheus.Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRegistry ¶
func GetRegistry() *prometheus.Registry
Types ¶
type PrometheusExporter ¶
type PrometheusExporter struct { ProcessStatsCollector prometheus.Collector ContainerStatsCollector prometheus.Collector VMStatsCollector prometheus.Collector NodeStatsCollector prometheus.Collector // Lock to syncronize the collector update with prometheus exporter Mx sync.Mutex }
PrometheusExporter holds the list of prometheus metric collectors
func NewPrometheusExporter ¶
func NewPrometheusExporter() *PrometheusExporter
NewPrometheusExporter creates a new prometheus exporter
func (*PrometheusExporter) NewContainerCollector ¶
func (e *PrometheusExporter) NewContainerCollector(containerMetrics map[string]*stats.ContainerStats)
NewContainerCollector creates a new prometheus collector for container metrics
func (*PrometheusExporter) NewNodeCollector ¶
func (e *PrometheusExporter) NewNodeCollector(nodeMetrics *stats.NodeStats)
NewNodeCollector creates a new prometheus collector for node metrics
func (*PrometheusExporter) NewProcessCollector ¶
func (e *PrometheusExporter) NewProcessCollector(processMetrics map[uint64]*stats.ProcessStats)
NewProcessCollector creates a new prometheus collector for process metrics
func (*PrometheusExporter) NewVMCollector ¶
func (e *PrometheusExporter) NewVMCollector(vmMetrics map[string]*stats.VMStats)
NewVMCollector creates a new prometheus collector for vm metrics
func (*PrometheusExporter) RegisterMetrics ¶
func (e *PrometheusExporter) RegisterMetrics() *prometheus.Registry
Click to show internal directories.
Click to hide internal directories.