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.MetricsExportRules, reg prometheus.Registerer) (*MetricsExporter, error)
NewExporter validates configuration and creates a new prometheus MetricsExporter. It is safe to initialize MetricsExporter without rules, then registry can be nil, Evaluate call will be a noop.
func (MetricsExporter) Evaluate ¶ added in v0.2.1
func (e MetricsExporter) Evaluate(input *storage.PutInput) (storage.SampleObserver, bool)
Click to show internal directories.
Click to hide internal directories.