Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrometheusCollector ¶
type PrometheusCollector struct {
// contains filtered or unexported fields
}
func (PrometheusCollector) Reset ¶
func (c PrometheusCollector) Reset()
Reset is a noop operation in this collector.
func (PrometheusCollector) Update ¶
func (c PrometheusCollector) Update(r metricCollector.MetricResult)
type PrometheusCollectorClient ¶
type PrometheusCollectorClient struct {
// contains filtered or unexported fields
}
func InitializePrometheusCollector ¶
func InitializePrometheusCollector(config PrometheusCollectorConfig) *PrometheusCollectorClient
func (*PrometheusCollectorClient) NewPrometheusCollector ¶
func (client *PrometheusCollectorClient) NewPrometheusCollector(subsystem string) metricCollector.MetricCollector
NewPrometheusCollector creates a collector for a specific circuit. The prefix given to this circuit will be {config.Prefix}_{subsystem}_{metric}. Circuits with "/", ":", and "." in their names will have them replaced with "_".
type PrometheusCollectorConfig ¶
type PrometheusCollectorConfig struct { // Namespace is the prefix that will be prepended to all metrics sent from this collector. Namespace string }
PrometheusCollectorConfig provides configuration for the prometheus client
Click to show internal directories.
Click to hide internal directories.