Documentation
¶
Index ¶
- type DCAClient
- func (c *DCAClient) GetClusterCheckConfigs(nodeName string) (types.ConfigResponse, error)
- func (c *DCAClient) GetKubernetesMetadataNames(nodeName, ns, podName string) ([]string, error)
- func (c *DCAClient) GetNodeLabels(nodeName string) (map[string]string, error)
- func (c *DCAClient) GetVersion() (string, error)
- func (c *DCAClient) PostClusterCheckStatus(nodeName string, status types.NodeStatus) (types.StatusResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DCAClient ¶
type DCAClient struct {
ClusterAgentAPIEndpoint string // ${SCHEME}://${clusterAgentHost}:${PORT}
ClusterAgentVersion string // Version of the cluster-agent we're connected to
// contains filtered or unexported fields
}
DCAClient is required to query the API of Datadog cluster agent
func GetClusterAgentClient ¶
GetClusterAgentClient returns or init the DCAClient
func (*DCAClient) GetClusterCheckConfigs ¶
func (c *DCAClient) GetClusterCheckConfigs(nodeName string) (types.ConfigResponse, error)
GetClusterCheckConfigs is called by the clustercheck config provider
func (*DCAClient) GetKubernetesMetadataNames ¶
GetKubernetesMetadataNames queries the datadog cluster agent to get nodeName/podName registered Kubernetes metadata.
func (*DCAClient) GetNodeLabels ¶
GetNodeLabels returns the node labels from the Cluster Agent.
func (*DCAClient) GetVersion ¶
GetVersion fetches the version of the Cluster Agent. Used in the agent status command.
func (*DCAClient) PostClusterCheckStatus ¶
func (c *DCAClient) PostClusterCheckStatus(nodeName string, status types.NodeStatus) (types.StatusResponse, error)
PostClusterCheckStatus is called by the clustercheck config provider
Click to show internal directories.
Click to hide internal directories.