Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrometheusDiscovery ¶
type PrometheusDiscovery struct {
// contains filtered or unexported fields
}
func NewPrometheusDiscovery ¶
func NewPrometheusDiscovery(name string, options PrometheusDiscoveryOptions, observability *common.Observability) *PrometheusDiscovery
func (*PrometheusDiscovery) Discover ¶
func (pd *PrometheusDiscovery) Discover()
type PrometheusDiscoveryOptions ¶
type PrometheusDiscoveryOptions struct {
Names string
URL string
Timeout int
Insecure bool
Query string
QueryPeriod string
QueryStep string
Metric string
Service string
Field string
Disabled []string
Schedule string
BaseTemplate string
Vars string
Files string
TelegrafLabels string
TelegrafTemplate string
TelegrafChecksum bool
TelegrafOptions common.TelegrafConfigOptions
}
type PrometheusDiscoveryResponse ¶
type PrometheusDiscoveryResponse struct {
Status string `json:"status"`
Data *PrometheusDiscoveryResponseData `json:"data"`
}
type PrometheusDiscoveryResponseData ¶
type PrometheusDiscoveryResponseData struct {
ResultType string `json:"resultType"`
Result []*PrometheusDiscoveryResponseDataVector `json:"result"`
}
Click to show internal directories.
Click to hide internal directories.