Contributors Forks Stargazers Issues MIT License LinkedIn


Datadog Usage tracking

This is a Terrafom repository that generates dashboards and monitors to track your Datadog usage based on your commit
Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Terraform Doc
  4. Roadmap
  5. Contributing
  6. License
  7. Contact

About The Project

Built With

  • Terraform

(back to top)

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

You will need Terrafom installed, and Datadog API key and APP key

Installation

  1. Clone the repo
    git clone https://github.com/abruneau/datadog_usage_monitoring.git
  2. Create a .tfvars file with you API Key, APP Key and Datadog commit informations
    datadog_api_key="<API Key>"
    datadog_app_key="<APP Key>"
    datadog_api_url="https://api.datadoghq.eu/"
    commited_hosts=12
    host_type="enterprise"
    commited_apm_hosts=12
    apm_type="enterprise"
    ...
    
  3. Init Terraform and apply with your .tfvars file
    terraform init
    terraform apply -var-file="my.tfvars"

(back to top)

Terraform Doc

Requirements

No requirements.

Providers

No providers.

Modules

Name Source Version
dashboards ./modules/dashboards n/a
monitors ./modules/monitors n/a

Resources

No resources.

Inputs

Name Description Type Default Required
apm_type n/a string "standard" no
commited_additional_indexed_spans value in million spans number 0 no
commited_apm_hosts n/a number 0 no
commited_asm_sca_hosts n/a number 0 no
commited_ci_visibility_pipeline_committers n/a number 0 no
commited_ci_visibility_test_committers n/a number 0 no
commited_container_apps n/a number 0 no
commited_dbm_hosts n/a number 0 no
commited_hosts n/a number 0 no
commited_indexed_logs value in million events number 0 no
commited_ingested_logs value in Gb number 0 no
commited_network_devices n/a number 0 no
commited_network_hosts n/a number 0 no
commited_op_ingested_logs value in Gb number 0 no
commited_profiling_hosts leave to 0 if subscribed through apm enterprise number 0 no
commited_rum_replay number of 1K sessions number 0 no
commited_rum_sessions number of 1K sessions number 0 no
commited_sds_logs value in Gb number 0 no
commited_serverless_asm_invocations n/a number 0 no
commited_serverless_workload_lambda_invocations n/a number 0 no
commited_serverless_workload_monitoring_lambda n/a number 0 no
commited_siem_logs n/a number 0 no
commited_synthetics_api number of 10K test runs number 0 no
commited_synthetics_browser number of 1K test runs number 0 no
commited_synthetics_mobile number of 100 test runs number 0 no
datadog_api_key n/a string n/a yes
datadog_api_url n/a string "https://api.datadoghq.com/" no
datadog_app_key n/a string n/a yes
host_type n/a string "pro" no
monitors_tags n/a set(string)
[
"service:datadog_usage",
"terraform:true",
"team:datadog_support",
"env:usage"
]
no

Outputs

No outputs.

(back to top)

Roadmap

  • Add monitors for more features
  • Add support for bundles

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

Antonin Bruneau - abruneau.me - antonin.bruneau@gmail.com

Project Link: https://github.com/abruneau/datadog_usage_monitoring

(back to top)