Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 655 Bytes

datadog_agent.md

File metadata and controls

19 lines (15 loc) · 655 Bytes

datadog_agent

The datadog_agent package binds features from the Go agent to python's check.

To import it:

import datadog_agent

Functions

  • datadog_agent.get_version(): returns the Agent version.
  • datadog_agent.get_hostname(): returns the hostname reported by the agent.
  • datadog_agent.headers(): returns basic HTTP headers, see function HTTPHeaders.
  • datadog_agent.get_config(key): returns the value associated to key (string) in the agent configuration.
  • datadog_agent.log(message): logs a message using the Go logger. From a python check, self.log should be used instead.