prometheus

package
v0.0.2-0...-4ce78c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	core.CheckBase
	// contains filtered or unexported fields
}

Check doesn't need additional fields

func (*Check) Configure

func (c *Check) Configure(rawInstance integration.Data, rawInitConfig integration.Data, source string) error

Configure the Prom check

func (*Check) Run

func (c *Check) Run() error

Run executes the check

type PromInitConfig

type PromInitConfig struct {
}

type PromInstanceConfig

type PromInstanceConfig struct {
	PrometheusUrl           string            `json:"prometheusUrl"`           // prometheus_url
	Namespace               string            `json:"namespace"`               // namespace
	Metrics                 []string          `json:"metrics"`                 // metrics
	PrometheusMetricsPrefix string            `json:"prometheusMetricsPrefix"` // prometheus_metrics_prefix
	HealthServiceCheck      bool              `json:"healthServiceCheck"`      // health_service_check
	LabelToHostname         string            `json:"labelToHostname"`         // label_to_hostname
	LabelJoins              interface{}       `json:"labelJoins"`              // label_joins
	LabelsMapper            map[string]string `json:"labelsMapper"`            // labels_mapper
	TypeOverrides           map[string]string `json:"typeOverrides"`           // type_overrides
	Tags                    []string          `json:"tags"`                    // tags
	SendHistogramsBuckets   bool              `json:"sendHistogramsBuckets"`   // send_histograms_buckets
	SendMonotonicCounter    bool              `json:"sendMonotonicCounter"`    // send_monotonic_counter
	ExcludeLabels           []string          `json:"excludeLabels"`           // exclude_labels
	SslCert                 string            `json:"sslCert"`                 // ssl_cert
	SslPrivateKey           string            `json:"sslPrivateKey"`           // ssl_private_key
	SslCaCert               string            `json:"sslCaCert"`               // ssl_ca_cert
	PrometheusTimeout       time.Duration     `json:"prometheusTimeout"`       // prometheus_timeout
	MaxReturnedMetrics      int               `json:"maxReturnedMetrics"`      // max_returned_metrics
	tls.ClientConfig        `json:"-"`
	PromInitConfig          `json:"-"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL