Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds generated recipes for missing checks #730

Merged
merged 6 commits into from
Sep 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -627,3 +627,18 @@ suites:
attributes:
datadog:
<<: *DATADOG

# Autogenerated monitor
- name: datadog_ignite
run_list:
- recipe[datadog::ignite]
attributes:
datadog:
<<: *DATADOG
ignite:
init_config:
is_jmx: true
instances:
- host: localhost
port: 49112

62 changes: 62 additions & 0 deletions recipes/active_directory.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
include_recipe 'datadog::dd-agent'

# Monitor Active Directory
#
# Here is the description of acceptable attributes:
# node.datadog.active_directory = {
# # init_config - required: false
# "init_config" => {
# # service - required: false - string
# "service" => nil,
# },
# # instances - required: false
# "instances" => [
# {
# # host - required: true - string
# "host" => ".",
# # username - required: false - string
# "username" => nil,
# # password - required: false - string
# "password" => nil,
# # additional_metrics - required: false - array of array of string
# "additional_metrics" => [
# "NTDS",
# "none",
# "DS % Writes from LDAP",
# "active_directory.ds.writes_from_ldap",
# "gauge",
# ],
# # counter_data_types - required: false - array of string
# "counter_data_types" => [
# "<METRIC_NAME>",
# "<DATA_TYPE>",
# "active_directory.dra.inbound.bytes.total",
# "int",
# "active_directory.ldap.bind_time",
# "float",
# ],
# # tags - required: false - array of string
# "tags" => [
# "<KEY_1>:<VALUE_1>",
# "<KEY_2>:<VALUE_2>",
# ],
# # service - required: false - string
# "service" => nil,
# # min_collection_interval - required: false - number
# "min_collection_interval" => 15,
# # empty_default_hostname - required: false - boolean
# "empty_default_hostname" => false,
# },
# ],
# # logs - required: false
# "logs" => nil,
# }

datadog_monitor 'active_directory' do
init_config node['datadog']['active_directory']['init_config']
instances node['datadog']['active_directory']['instances']
logs node['datadog']['active_directory']['logs']
use_integration_template true
action :add
notifies :restart, 'service[datadog-agent]' if node['datadog']['agent_start']
end
142 changes: 142 additions & 0 deletions recipes/activemq_xml.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
include_recipe 'datadog::dd-agent'

# Monitor ActiveMQ XML
#
# Here is the description of acceptable attributes:
# node.datadog.activemq_xml = {
# # init_config - required: false
# "init_config" => {
# # proxy - required: false - object
# "proxy" => {
# "http" => "http://<PROXY_SERVER_FOR_HTTP>:<PORT>",
# "https" => "https://<PROXY_SERVER_FOR_HTTPS>:<PORT>",
# "no_proxy" => [
# "<HOSTNAME_1>",
# "<HOSTNAME_2>",
# ],
# },
# # skip_proxy - required: false - boolean
# "skip_proxy" => false,
# # timeout - required: false - number
# "timeout" => 10,
# # service - required: false - string
# "service" => nil,
# },
# # instances - required: false
# "instances" => [
# {
# # url - required: true - string
# "url" => "http://localhost:8161",
# # suppress_errors - required: false - boolean
# "suppress_errors" => false,
# # detailed_queues - required: false - array of string
# "detailed_queues" => [
# "<QUEUE_1>",
# "<QUEUE_2>",
# ],
# # detailed_topics - required: false - array of string
# "detailed_topics" => [
# "<TOPIC_1>",
# "<TOPIC_2>",
# ],
# # detailed_subscribers - required: false - array of string
# "detailed_subscribers" => [
# "<SUBSCRIBER_1>",
# "<SUBSCRIBER_2>",
# ],
# # proxy - required: false - object
# "proxy" => {
# "http" => "http://<PROXY_SERVER_FOR_HTTP>:<PORT>",
# "https" => "https://<PROXY_SERVER_FOR_HTTPS>:<PORT>",
# "no_proxy" => [
# "<HOSTNAME_1>",
# "<HOSTNAME_2>",
# ],
# },
# # skip_proxy - required: false - boolean
# "skip_proxy" => false,
# # auth_type - required: false - string
# "auth_type" => "basic",
# # use_legacy_auth_encoding - required: false - boolean
# "use_legacy_auth_encoding" => true,
# # username - required: false - string
# "username" => nil,
# # password - required: false - string
# "password" => nil,
# # ntlm_domain - required: false - string
# "ntlm_domain" => "<NTLM_DOMAIN>\\<USERNAME>",
# # kerberos_auth - required: false - string
# "kerberos_auth" => "disabled",
# # kerberos_cache - required: false - string
# "kerberos_cache" => nil,
# # kerberos_delegate - required: false - boolean
# "kerberos_delegate" => false,
# # kerberos_force_initiate - required: false - boolean
# "kerberos_force_initiate" => false,
# # kerberos_hostname - required: false - string
# "kerberos_hostname" => nil,
# # kerberos_principal - required: false - string
# "kerberos_principal" => nil,
# # kerberos_keytab - required: false - string
# "kerberos_keytab" => "<KEYTAB_FILE_PATH>",
# # aws_region - required: false - string
# "aws_region" => nil,
# # aws_host - required: false - string
# "aws_host" => nil,
# # aws_service - required: false - string
# "aws_service" => nil,
# # tls_verify - required: false - boolean
# "tls_verify" => true,
# # tls_use_host_header - required: false - boolean
# "tls_use_host_header" => false,
# # tls_ignore_warning - required: false - boolean
# "tls_ignore_warning" => false,
# # tls_cert - required: false - string
# "tls_cert" => "<CERT_PATH>",
# # tls_private_key - required: false - string
# "tls_private_key" => "<PRIVATE_KEY_PATH>",
# # tls_ca_cert - required: false - string
# "tls_ca_cert" => "<CA_CERT_PATH>",
# # headers - required: false - object
# "headers" => {
# "Host" => "<ALTERNATIVE_HOSTNAME>",
# "X-Auth-Token" => "<AUTH_TOKEN>",
# },
# # extra_headers - required: false - object
# "extra_headers" => {
# "Host" => "<ALTERNATIVE_HOSTNAME>",
# "X-Auth-Token" => "<AUTH_TOKEN>",
# },
# # timeout - required: false - number
# "timeout" => 10,
# # connect_timeout - required: false - number
# "connect_timeout" => nil,
# # read_timeout - required: false - number
# "read_timeout" => nil,
# # log_requests - required: false - boolean
# "log_requests" => false,
# # persist_connections - required: false - boolean
# "persist_connections" => false,
# # tags - required: false - array of string
# "tags" => [
# "<KEY_1>:<VALUE_1>",
# "<KEY_2>:<VALUE_2>",
# ],
# # service - required: false - string
# "service" => nil,
# # min_collection_interval - required: false - number
# "min_collection_interval" => 15,
# # empty_default_hostname - required: false - boolean
# "empty_default_hostname" => false,
# },
# ],
# }

datadog_monitor 'activemq_xml' do
init_config node['datadog']['activemq_xml']['init_config']
instances node['datadog']['activemq_xml']['instances']
logs node['datadog']['activemq_xml']['logs']
use_integration_template true
action :add
notifies :restart, 'service[datadog-agent]' if node['datadog']['agent_start']
end
Loading