This is a custom InSpec resource for DataDog.
For more information, please refer to https://docs.chef.io/inspec/dsl_resource/.
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
If api_key and application_key are absent, the DD_API_KEY and DD_APP_KEY env vars will automatically be used.
Copyright 2021 HG Insights, Inc.