Documentation ¶
Index ¶
Constants ¶
View Source
const MetricsNamespace = "prom_agg_gateway"
Variables ¶
View Source
var ErrOddNumberOfLabelParts = errors.New("labels must be defined in pairs")
View Source
var MetricCountByFamily = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: MetricsNamespace, Name: "metrics_by_family", Help: "Metric count by family", }, []string{ "family", }, )
View Source
var MetricCountByType = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: MetricsNamespace, Name: "metrics_by_type", Help: "Metric count by type", }, []string{ "metric_type", }, )
View Source
var MetricPushes = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: MetricsNamespace, Name: "metric_pushes", Help: "Total number of metric push requests, per job", }, []string{ "push_job", }, )
View Source
var PromRegistry = prometheus.NewRegistry()
View Source
var TotalFamiliesGauge = prometheus.NewGauge( prometheus.GaugeOpts{ Namespace: MetricsNamespace, Name: "total_families", Help: "Total number of metric families", }, )
Functions ¶
func AddIgnoredLabels ¶
func AddIgnoredLabels(ignoredLabels ...string) aggregateOptionsFunc
func SetTTLMetricTime ¶
Types ¶
type Aggregate ¶
type Aggregate struct {
// contains filtered or unexported fields
}
func NewAggregate ¶
func NewAggregate(opts ...aggregateOptionsFunc) *Aggregate
func (*Aggregate) HandleInsert ¶
func (*Aggregate) HandleRender ¶
Click to show internal directories.
Click to hide internal directories.