Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
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
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:"-"`
}
Click to show internal directories.
Click to hide internal directories.