From 64b0d8f2131b7e605c8faac053e07573ed992b20 Mon Sep 17 00:00:00 2001 From: NRhzhao Date: Thu, 14 Dec 2023 15:19:45 -0800 Subject: [PATCH] fix: Add unit to intervals attribute (#1003) --- recipes/newrelic/infrastructure/ohi/apache/debian.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/apache/rhel.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/cassandra/debian.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/cassandra/rhel.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/consul/debian.yml | 8 ++++---- recipes/newrelic/infrastructure/ohi/consul/rhel.yml | 8 ++++---- recipes/newrelic/infrastructure/ohi/couchbase/debian.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/couchbase/rhel.yml | 4 ++-- .../newrelic/infrastructure/ohi/elasticsearch/debian.yml | 4 ++-- .../newrelic/infrastructure/ohi/elasticsearch/rhel.yml | 4 ++-- .../newrelic/infrastructure/ohi/elasticsearch/suse.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/haproxy/debian.yml | 2 +- recipes/newrelic/infrastructure/ohi/haproxy/rhel.yml | 2 +- recipes/newrelic/infrastructure/ohi/memcached/debian.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/memcached/rhel.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/mysql/debian.yml | 2 +- recipes/newrelic/infrastructure/ohi/mysql/rhel.yml | 2 +- recipes/newrelic/infrastructure/ohi/mysql/suse.yml | 2 +- recipes/newrelic/infrastructure/ohi/nginx/linux.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/nginx/suse.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/postgres/debian.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/postgres/rhel.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/rabbitmq/debian.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/rabbitmq/rhel.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/redis/debian.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/redis/rhel.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/varnish/debian.yml | 4 ++-- recipes/newrelic/infrastructure/ohi/varnish/rhel.yml | 4 ++-- 28 files changed, 55 insertions(+), 55 deletions(-) diff --git a/recipes/newrelic/infrastructure/ohi/apache/debian.yml b/recipes/newrelic/infrastructure/ohi/apache/debian.yml index 0daadad3b..b6371536f 100644 --- a/recipes/newrelic/infrastructure/ohi/apache/debian.yml +++ b/recipes/newrelic/infrastructure/ohi/apache/debian.yml @@ -118,7 +118,7 @@ install: # versus remote entities: # https://github.com/newrelic/infra-integrations-sdk/blob/master/docs/entity-definition.md REMOTE_MONITORING: true - interval: 15 + interval: 15s - name: nri-apache env: @@ -134,7 +134,7 @@ install: # https://github.com/newrelic/infra-integrations-sdk/blob/master/docs/entity-definition.md REMOTE_MONITORING: true inventory_source: config/apache - interval: 60 + interval: 60s EOT restart: diff --git a/recipes/newrelic/infrastructure/ohi/apache/rhel.yml b/recipes/newrelic/infrastructure/ohi/apache/rhel.yml index 6cc521130..2ddd48330 100644 --- a/recipes/newrelic/infrastructure/ohi/apache/rhel.yml +++ b/recipes/newrelic/infrastructure/ohi/apache/rhel.yml @@ -174,7 +174,7 @@ install: # versus remote entities: # https://github.com/newrelic/infra-integrations-sdk/blob/master/docs/entity-definition.md REMOTE_MONITORING: true - interval: 15 + interval: 15s - name: nri-apache env: @@ -190,7 +190,7 @@ install: # https://github.com/newrelic/infra-integrations-sdk/blob/master/docs/entity-definition.md REMOTE_MONITORING: true inventory_source: config/apache - interval: 60 + interval: 60s EOT diff --git a/recipes/newrelic/infrastructure/ohi/cassandra/debian.yml b/recipes/newrelic/infrastructure/ohi/cassandra/debian.yml index faf3747e8..1ab96492e 100644 --- a/recipes/newrelic/infrastructure/ohi/cassandra/debian.yml +++ b/recipes/newrelic/infrastructure/ohi/cassandra/debian.yml @@ -114,7 +114,7 @@ install: USERNAME: {{.NR_CLI_DB_USERNAME}} PASSWORD: {{.NR_CLI_DB_PASSWORD}} REMOTE_MONITORING: true - interval: 30 + interval: 30s - name: nri-cassandra env: INVENTORY: true @@ -122,7 +122,7 @@ install: CONFIG_PATH: /etc/cassandra/cassandra.yaml REMOTE_MONITORING: true inventory_source: config/cassandra - interval: 60 + interval: 60s EOT restart: diff --git a/recipes/newrelic/infrastructure/ohi/cassandra/rhel.yml b/recipes/newrelic/infrastructure/ohi/cassandra/rhel.yml index 3cbcc9888..7abd865a0 100644 --- a/recipes/newrelic/infrastructure/ohi/cassandra/rhel.yml +++ b/recipes/newrelic/infrastructure/ohi/cassandra/rhel.yml @@ -117,7 +117,7 @@ install: USERNAME: {{.NR_CLI_DB_USERNAME}} PASSWORD: {{.NR_CLI_DB_PASSWORD}} REMOTE_MONITORING: true - interval: 30 + interval: 30s - name: nri-cassandra env: INVENTORY: true @@ -125,7 +125,7 @@ install: CONFIG_PATH: /etc/cassandra/conf/cassandra.yaml REMOTE_MONITORING: true inventory_source: config/cassandra - interval: 60 + interval: 60s EOT restart: diff --git a/recipes/newrelic/infrastructure/ohi/consul/debian.yml b/recipes/newrelic/infrastructure/ohi/consul/debian.yml index 10f0e8aa5..4e7a412bb 100644 --- a/recipes/newrelic/infrastructure/ohi/consul/debian.yml +++ b/recipes/newrelic/infrastructure/ohi/consul/debian.yml @@ -107,7 +107,7 @@ install: PORT: {{.NR_CLI_PORT}} ENABLE_SSL: {{.NR_CLI_ENABLE_SSL}} inventory_source: config/consul - interval: 15 + interval: 15s EOT else sudo tee /etc/newrelic-infra/integrations.d/consul-config.yml > /dev/null <<"EOT" @@ -121,7 +121,7 @@ install: CA_BUNDLE_DIR: {{.NR_CLI_BUNDLE_DIR}} CA_BUNDLE_FILE: {{.NR_CLI_FILE_DIR}} inventory_source: config/consul - interval: 15 + interval: 15s EOT fi else @@ -135,7 +135,7 @@ install: TOKEN: {{.NR_CLI_TOKEN}} ENABLE_SSL: {{.NR_CLI_ENABLE_SSL}} inventory_source: config/consul - interval: 15 + interval: 15s EOT else sudo tee /etc/newrelic-infra/integrations.d/consul-config.yml > /dev/null <<"EOT" @@ -150,7 +150,7 @@ install: CA_BUNDLE_DIR: {{.NR_CLI_BUNDLE_DIR}} CA_BUNDLE_FILE: {{.NR_CLI_FILE_DIR}} inventory_source: config/consul - interval: 15 + interval: 15s EOT fi fi diff --git a/recipes/newrelic/infrastructure/ohi/consul/rhel.yml b/recipes/newrelic/infrastructure/ohi/consul/rhel.yml index 4b8f664ea..4ed7e8499 100644 --- a/recipes/newrelic/infrastructure/ohi/consul/rhel.yml +++ b/recipes/newrelic/infrastructure/ohi/consul/rhel.yml @@ -107,7 +107,7 @@ install: PORT: {{.NR_CLI_PORT}} ENABLE_SSL: {{.NR_CLI_ENABLE_SSL}} inventory_source: config/consul - interval: 15 + interval: 15s EOT else sudo tee /etc/newrelic-infra/integrations.d/consul-config.yml > /dev/null <<"EOT" @@ -121,7 +121,7 @@ install: CA_BUNDLE_DIR: {{.NR_CLI_BUNDLE_DIR}} CA_BUNDLE_FILE: {{.NR_CLI_FILE_DIR}} inventory_source: config/consul - interval: 15 + interval: 15s EOT fi else @@ -135,7 +135,7 @@ install: TOKEN: {{.NR_CLI_TOKEN}} ENABLE_SSL: {{.NR_CLI_ENABLE_SSL}} inventory_source: config/consul - interval: 15 + interval: 15s EOT else sudo tee /etc/newrelic-infra/integrations.d/consul-config.yml > /dev/null <<"EOT" @@ -150,7 +150,7 @@ install: CA_BUNDLE_DIR: {{.NR_CLI_BUNDLE_DIR}} CA_BUNDLE_FILE: {{.NR_CLI_FILE_DIR}} inventory_source: config/consul - interval: 15 + interval: 15s EOT fi fi diff --git a/recipes/newrelic/infrastructure/ohi/couchbase/debian.yml b/recipes/newrelic/infrastructure/ohi/couchbase/debian.yml index 59985048e..b4e24b923 100644 --- a/recipes/newrelic/infrastructure/ohi/couchbase/debian.yml +++ b/recipes/newrelic/infrastructure/ohi/couchbase/debian.yml @@ -114,7 +114,7 @@ install: PASSWORD: {{.NR_CLI_DB_PASSWORD}} USE_SSL: {{.NR_CLI_API_USE_SSL}} inventory_source: config/couchbase - interval: 15 + interval: 15s EOT else sudo tee -a /etc/newrelic-infra/integrations.d/couchbase-config.yml > /dev/null <<"EOT" @@ -130,7 +130,7 @@ install: CA_BUNDLE_DIR: {{.NR_CLI_API_CA_BUNDLE_DIR}} CA_BUNDLE_FILE: {{.NR_CLI_API_CA_BUNDLE_FILE}} inventory_source: config/couchbase - interval: 15 + interval: 15s EOT fi diff --git a/recipes/newrelic/infrastructure/ohi/couchbase/rhel.yml b/recipes/newrelic/infrastructure/ohi/couchbase/rhel.yml index 277c0f7f3..da997e331 100644 --- a/recipes/newrelic/infrastructure/ohi/couchbase/rhel.yml +++ b/recipes/newrelic/infrastructure/ohi/couchbase/rhel.yml @@ -118,7 +118,7 @@ install: PASSWORD: {{.NR_CLI_DB_PASSWORD}} USE_SSL: {{.NR_CLI_API_USE_SSL}} inventory_source: config/couchbase - interval: 15 + interval: 15s EOT else sudo tee -a /etc/newrelic-infra/integrations.d/couchbase-config.yml > /dev/null <<"EOT" @@ -134,7 +134,7 @@ install: CA_BUNDLE_DIR: {{.NR_CLI_API_CA_BUNDLE_DIR}} CA_BUNDLE_FILE: {{.NR_CLI_API_CA_BUNDLE_FILE}} inventory_source: config/couchbase - interval: 15 + interval: 15s EOT fi diff --git a/recipes/newrelic/infrastructure/ohi/elasticsearch/debian.yml b/recipes/newrelic/infrastructure/ohi/elasticsearch/debian.yml index f95434023..482568038 100644 --- a/recipes/newrelic/infrastructure/ohi/elasticsearch/debian.yml +++ b/recipes/newrelic/infrastructure/ohi/elasticsearch/debian.yml @@ -138,7 +138,7 @@ install: COLLECT_INDICES: true COLLECT_PRIMARIES: true inventory_source: config/elasticsearch - interval: 15 + interval: 15s EOT else sudo tee -a /etc/newrelic-infra/integrations.d/elasticsearch-config.yml > /dev/null <<"EOT" @@ -158,7 +158,7 @@ install: COLLECT_INDICES: true COLLECT_PRIMARIES: true inventory_source: config/elasticsearch - interval: 15 + interval: 15s EOT fi diff --git a/recipes/newrelic/infrastructure/ohi/elasticsearch/rhel.yml b/recipes/newrelic/infrastructure/ohi/elasticsearch/rhel.yml index 30f0eb887..a62dea671 100644 --- a/recipes/newrelic/infrastructure/ohi/elasticsearch/rhel.yml +++ b/recipes/newrelic/infrastructure/ohi/elasticsearch/rhel.yml @@ -140,7 +140,7 @@ install: COLLECT_INDICES: true COLLECT_PRIMARIES: true inventory_source: config/elasticsearch - interval: 15 + interval: 15s EOT else sudo tee -a /etc/newrelic-infra/integrations.d/elasticsearch-config.yml > /dev/null <<"EOT" @@ -160,7 +160,7 @@ install: COLLECT_INDICES: true COLLECT_PRIMARIES: true inventory_source: config/elasticsearch - interval: 15 + interval: 15s EOT fi diff --git a/recipes/newrelic/infrastructure/ohi/elasticsearch/suse.yml b/recipes/newrelic/infrastructure/ohi/elasticsearch/suse.yml index db5bc7b4a..4d3729bf5 100644 --- a/recipes/newrelic/infrastructure/ohi/elasticsearch/suse.yml +++ b/recipes/newrelic/infrastructure/ohi/elasticsearch/suse.yml @@ -134,7 +134,7 @@ install: COLLECT_INDICES: true COLLECT_PRIMARIES: true inventory_source: config/elasticsearch - interval: 15 + interval: 15s EOT else sudo tee -a /etc/newrelic-infra/integrations.d/elasticsearch-config.yml > /dev/null <<"EOT" @@ -154,7 +154,7 @@ install: COLLECT_INDICES: true COLLECT_PRIMARIES: true inventory_source: config/elasticsearch - interval: 15 + interval: 15s EOT fi diff --git a/recipes/newrelic/infrastructure/ohi/haproxy/debian.yml b/recipes/newrelic/infrastructure/ohi/haproxy/debian.yml index 5a0e75bbe..7d43f1f0b 100644 --- a/recipes/newrelic/infrastructure/ohi/haproxy/debian.yml +++ b/recipes/newrelic/infrastructure/ohi/haproxy/debian.yml @@ -103,7 +103,7 @@ install: PASSWORD: {{.NR_CLI_DB_PASSWORD}} CLUSTER_NAME: {{.NR_CLI_CLUSTER_NAME}} inventory_source: config/haproxy - interval: 15 + interval: 15s EOT restart: diff --git a/recipes/newrelic/infrastructure/ohi/haproxy/rhel.yml b/recipes/newrelic/infrastructure/ohi/haproxy/rhel.yml index 9a79255bd..83674baef 100644 --- a/recipes/newrelic/infrastructure/ohi/haproxy/rhel.yml +++ b/recipes/newrelic/infrastructure/ohi/haproxy/rhel.yml @@ -104,7 +104,7 @@ install: PASSWORD: {{.NR_CLI_DB_PASSWORD}} CLUSTER_NAME: {{.NR_CLI_CLUSTER_NAME}} inventory_source: config/haproxy - interval: 15 + interval: 15s EOT - | sudo systemctl restart newrelic-infra.service diff --git a/recipes/newrelic/infrastructure/ohi/memcached/debian.yml b/recipes/newrelic/infrastructure/ohi/memcached/debian.yml index fcafa8d79..6b554cba5 100644 --- a/recipes/newrelic/infrastructure/ohi/memcached/debian.yml +++ b/recipes/newrelic/infrastructure/ohi/memcached/debian.yml @@ -108,7 +108,7 @@ install: HOST: {{.NR_CLI_DB_HOSTNAME}} PORT: $NR_CLI_DB_PORT inventory_source: config/memcached - interval: 15 + interval: 15s EOT else sudo tee /etc/newrelic-infra/integrations.d/memcached-config.yml > /dev/null < /dev/null < /dev/null < /dev/null < /dev/null <<"EOT" @@ -104,7 +104,7 @@ install: INSTANCE_NAME: {{.NR_CLI_INSTANCE_NAME}} PARAMS_CONFIG_FILE: {{.NR_CLI_PARAMS_CONFIG_FILE}} inventory_source: config/varnish - interval: 15 + interval: 15s EOT fi diff --git a/recipes/newrelic/infrastructure/ohi/varnish/rhel.yml b/recipes/newrelic/infrastructure/ohi/varnish/rhel.yml index a3765dfa3..782ce3029 100644 --- a/recipes/newrelic/infrastructure/ohi/varnish/rhel.yml +++ b/recipes/newrelic/infrastructure/ohi/varnish/rhel.yml @@ -98,7 +98,7 @@ install: env: INSTANCE_NAME: {{.NR_CLI_INSTANCE_NAME}} inventory_source: config/varnish - interval: 15 + interval: 15s EOT else sudo tee -a /etc/newrelic-infra/integrations.d/varnish-config.yml > /dev/null <<"EOT" @@ -108,7 +108,7 @@ install: INSTANCE_NAME: {{.NR_CLI_INSTANCE_NAME}} PARAMS_CONFIG_FILE: {{.NR_CLI_PARAMS_CONFIG_FILE}} inventory_source: config/varnish - interval: 15 + interval: 15s EOT fi