Skip to content

InSpec resource for DataDog

Notifications You must be signed in to change notification settings

HGData/inspec-datadog

Repository files navigation

inspec-datadog

This is a custom InSpec resource for DataDog.

For more information, please refer to https://docs.chef.io/inspec/dsl_resource/.

Usage

control 'datadog' do
  title 'this is a datadog test'
  describe datadog_monitor(name: 'my_monitor_name') do
    it { should exist }
    its('type') { should eq 'service check' }
    its('query') { should eq 'avg:aws.rds.cpuutilization{*} by {dbclusteridentifier} > 90' }
  end
end

Authentication

If api_key and application_key are absent, the DD_API_KEY and DD_APP_KEY env vars will automatically be used.

License

Copyright 2021 HG Insights, Inc.