 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- func Handler() goHttp.HandlerFunc
- func WithDuration[T FactoryTypeGauge](f FactoryGauge[T], v T) func()
- type Collector
- type Counter
- type DCollector
- type Description
- type Error
- type FactoryCounter
- type FactoryGauge
- type FactoryTypeCounter
- type FactoryTypeGauge
- type Gauge
- type MCollector
- type Metric
- type MetricPushFilter
- type Producer
- type PushDescription
- type PushMetric
Constants ¶
      View Source
      
  
const MaxMetricsBufferedSize = 1024 * 1024
    Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler() goHttp.HandlerFunc
func WithDuration ¶
func WithDuration[T FactoryTypeGauge](f FactoryGauge[T], v T) func()
Types ¶
type Collector ¶
type Collector interface {
	MCollector
	DCollector
}
    type DCollector ¶
type DCollector interface {
	CollectDescriptions(in PushDescription)
}
    type Description ¶
type Description interface {
	Desc() *prometheus.Desc
	Labels(labels ...string) []*dto.LabelPair
	Collect(out chan<- prometheus.Metric, collect func(p Producer) error)
	Gauge(value float64, labels ...string) Metric
	Counter(value float64, labels ...string) Metric
}
    func NewDescription ¶
func NewDescription(fqName, help string, variableLabels []string, constLabels prometheus.Labels) Description
type FactoryCounter ¶
type FactoryCounter[T FactoryTypeCounter] interface { Collector Items() []T Get(v T) float64 Remove(v T) Add(v T, value float64) Inc(v T) }
func NewFactoryCounter ¶
func NewFactoryCounter[T FactoryTypeCounter]() FactoryCounter[T]
type FactoryGauge ¶
type FactoryGauge[T FactoryTypeGauge] interface { Collector Items() []T Get(v T) float64 Remove(v T) Set(v T, value float64) Add(v T, value float64) }
func NewFactoryGauge ¶
func NewFactoryGauge[T FactoryTypeGauge]() FactoryGauge[T]
type FactoryTypeCounter ¶
type FactoryTypeCounter interface {
	comparable
	Desc() Description
	Counter(value float64) Metric
}
    type FactoryTypeGauge ¶
type FactoryTypeGauge interface {
	comparable
	Desc() Description
	Gauge(value float64) Metric
}
    type MCollector ¶
type MCollector interface {
	CollectMetrics(in PushMetric)
}
    type Metric ¶
type Metric interface {
	prometheus.Metric
}
    type MetricPushFilter ¶
func MergeMetricPushFilter ¶
func MergeMetricPushFilter(filters ...MetricPushFilter) MetricPushFilter
func NegateMetricPushFilter ¶
func NegateMetricPushFilter(in MetricPushFilter) MetricPushFilter
func NewPrefixMetricPushFilter ¶
func NewPrefixMetricPushFilter(prefixes ...string) MetricPushFilter
type PushDescription ¶
type PushDescription interface {
	Push(desc ...Description) PushDescription
}
    func NewPushDescription ¶
func NewPushDescription(out chan<- *prometheus.Desc) PushDescription
type PushMetric ¶
type PushMetric interface {
	Push(desc ...Metric) PushMetric
}
    func NewMetricsPushFilter ¶
func NewMetricsPushFilter(out PushMetric, filter MetricPushFilter) PushMetric
func NewPushMetric ¶
func NewPushMetric(out chan<- prometheus.Metric) PushMetric
 Click to show internal directories. 
   Click to hide internal directories.