Documentation ¶
Index ¶
- type CustomCollector
- type PrometheusConfig
- func (c *PrometheusConfig) UpdatePrometheusMetrics()
- func (c *PrometheusConfig) UpdatePrometheusMetricsOnce() error
- func (c *PrometheusConfig) WithHistogramBuckets(b []float64) *PrometheusConfig
- func (c *PrometheusConfig) WithMetricsHistogramBuckets(histogramBuckets map[string][]float64)
- func (c *PrometheusConfig) WithMetricsWhitelist(metricsWhitelist map[string]bool)
- func (c *PrometheusConfig) WithTimerBuckets(b []float64) *PrometheusConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomCollector ¶
type CustomCollector struct { prometheus.Collector // contains filtered or unexported fields }
for collecting prometheus.constHistogram objects
func (*CustomCollector) Collect ¶
func (c *CustomCollector) Collect(ch chan<- prometheus.Metric)
func (*CustomCollector) Describe ¶
func (p *CustomCollector) Describe(ch chan<- *prometheus.Desc)
type PrometheusConfig ¶
type PrometheusConfig struct {
// contains filtered or unexported fields
}
func NewPrometheusProvider ¶
func NewPrometheusProvider(r metrics.Registry, namespace string, subsystem string, promRegistry prometheus.Registerer, flushInterval time.Duration) *PrometheusConfig
func (*PrometheusConfig) UpdatePrometheusMetrics ¶
func (c *PrometheusConfig) UpdatePrometheusMetrics()
func (*PrometheusConfig) UpdatePrometheusMetricsOnce ¶
func (c *PrometheusConfig) UpdatePrometheusMetricsOnce() error
func (*PrometheusConfig) WithHistogramBuckets ¶
func (c *PrometheusConfig) WithHistogramBuckets(b []float64) *PrometheusConfig
func (*PrometheusConfig) WithMetricsHistogramBuckets ¶ added in v0.3.0
func (c *PrometheusConfig) WithMetricsHistogramBuckets(histogramBuckets map[string][]float64)
func (*PrometheusConfig) WithMetricsWhitelist ¶ added in v0.2.0
func (c *PrometheusConfig) WithMetricsWhitelist(metricsWhitelist map[string]bool)
func (*PrometheusConfig) WithTimerBuckets ¶
func (c *PrometheusConfig) WithTimerBuckets(b []float64) *PrometheusConfig
Click to show internal directories.
Click to hide internal directories.