Skip to content

ImproveDigital/datadog-formula

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Datadog Formula

SaltStack Formula to install the Datadog Agent and the Agent based integrations, also called Checks. See the full Salt Formulas installation and usage instructions.

Available States

Installs, configures and starts the Datadog Agent service.

Configure the right repo and installs the Agent.

Configures Agent and Integrations using pillar data. See pillar.example.

NOTE: in order to split a single check type's configuration among multiple pillar files (eg. to configure different check instances on different machines), the pillar_merge_lists option must be set to True in the Salt master config (or the salt minion config if running masterless) (see https://docs.saltstack.com/en/latest/ref/configuration/master.html#pillar-merge-lists).

Runs the Datadog Agent service, watching for changes to the config files for the Agent itself and the checks.

Stops the service and uninstall Datadog Agent.

Development

To ease the development of the formula, you can use Docker and Docker Compose with the compose file in test/docker-compose.yaml:

# cd test/
# docker-compose run masterless /bin/bash
$ salt-call --local state.highstate -l debug

Testing

A proper integration test suite is still a Work in Progress, in the meantime you can use the Docker Compose file provided in the test directory to easily check out the formula in action.

Requirements

  • Docker
  • Docker Compose

Run the formula

# cd test/
# docker-compose up

You should be able to see from the logs if all the states completed successfully.

About

A saltstack formula for Datadog

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • SaltStack 79.8%
  • HTML 18.4%
  • Shell 1.8%