mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 22:19:40 -08:00
Add missing Kubernetes doc strings
This commit is contained in:
parent
205d391409
commit
0f5022c091
|
@ -64,6 +64,7 @@ const (
|
|||
serviceEndpointsURL = apiPrefix + "/namespaces/%s/endpoints/%s"
|
||||
)
|
||||
|
||||
// KubernetesDiscovery implements a TargetProvider for Kubernetes services.
|
||||
type KubernetesDiscovery struct {
|
||||
client *http.Client
|
||||
Conf *config.KubernetesSDConfig
|
||||
|
@ -78,6 +79,7 @@ type KubernetesDiscovery struct {
|
|||
runDone chan struct{}
|
||||
}
|
||||
|
||||
// Initialize sets up the discovery for usage.
|
||||
func (kd *KubernetesDiscovery) Initialize() error {
|
||||
client, err := newKubernetesHTTPClient(kd.Conf)
|
||||
|
||||
|
|
Loading…
Reference in a new issue