Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prometheus ¶
type Prometheus struct { Client *prometheus.Prometheus Endpoint string MetricProfile []metricDefinition Step time.Duration UUID string ConfigSpec config.Spec // contains filtered or unexported fields }
Prometheus describes the prometheus connection
func NewPrometheusClient ¶
func NewPrometheusClient(configSpec config.Spec, url string, auth Auth, step time.Duration, metadata map[string]interface{}, embedConfig bool, indexers ...indexers.Indexer) (*Prometheus, error)
NewPrometheusClient creates a prometheus struct instance with the given parameters
func (*Prometheus) ReadProfile ¶
func (p *Prometheus) ReadProfile(metricsProfile string) error
ReadProfile reads, parses and validates metric profile configuration
func (*Prometheus) ScrapeJobsMetrics ¶
func (p *Prometheus) ScrapeJobsMetrics(jobList ...Job) error
ScrapeJobsMetrics gets all prometheus metrics required and handles them
Click to show internal directories.
Click to hide internal directories.