clusteragent

package
v0.0.0-...-1d9613f Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterAgentAuthToken

func GetClusterAgentAuthToken() (string, error)

GetClusterAgentAuthToken load the authentication token from: 1srt. the configuration value of "cluster_agent_auth_token" in datadog.yaml 2nd. from the filesystem If using the token from the filesystem, the token file must be next to the datadog.yaml with the filename: dca_auth_token

Types

type DCAClient

type DCAClient struct {
	// contains filtered or unexported fields
}

DCAClient is required to query the API of Datadog cluster agent

func GetClusterAgentClient

func GetClusterAgentClient() (*DCAClient, error)

GetClusterAgentClient returns or init the DCAClient

func (*DCAClient) GetKubernetesServiceNames

func (c *DCAClient) GetKubernetesServiceNames(nodeName, podName string) ([]string, error)

GetKubernetesServiceNames queries the datadog cluster agent to get nodeName/podName registered Kubernetes services.

Jump to

Keyboard shortcuts

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