Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsExporter ¶
type MetricsExporter struct {
// contains filtered or unexported fields
}
MetricsExporter exports profiling metrics via Prometheus. It is safe for concurrent use.
func NewExporter ¶
func NewExporter(rules config.MetricExportRules, reg prometheus.Registerer) (*MetricsExporter, error)
NewExporter validates configuration and creates a new prometheus MetricsExporter.
func (MetricsExporter) Observe ¶
Observe ingested segment key and tree.
The call evaluates export rules against the key k and creates prometheus counters for new time series, if required. Every export rule has an expression to evaluate a dimension key, and a filter, which allow to retrieve metric value for particular nodes.
Click to show internal directories.
Click to hide internal directories.