Skip to content

Commit 2724395

Browse files
authored
Merge pull request #978 from newrelic/feat/local-validation
feat: Local validation
2 parents 095d908 + 7ca85ed commit 2724395

File tree

34 files changed

+202
-25
lines changed

34 files changed

+202
-25
lines changed

recipes/newrelic/infrastructure/ohi/apache/debian.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@ logMatch:
3030
- name: apache error
3131
file: /var/log/apache2/error.log
3232

33-
# NRQL the newrelic-cli will use to validate the agent/integration this recipe
34-
# installed is successfully sending data to New Relic
33+
# The newrelic-cli will use this integration name to check the config file(s)
34+
# that were setup during the installation to ensure the integration
35+
# runs properly with the defined environment variables
36+
validationIntegration: apache
37+
38+
# DEPRECATED
3539
validationNrql: "SELECT count(*) from ApacheSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"
3640

3741
preInstall:

recipes/newrelic/infrastructure/ohi/apache/rhel.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@ logMatch:
3939
- name: apache error
4040
file: /var/log/httpd/*error_log
4141

42-
# NRQL the newrelic-cli will use to validate the agent/integration this recipe
43-
# installed is successfully sending data to New Relic
42+
# The newrelic-cli will use this integration name to check the config file(s)
43+
# that were setup during the installation to ensure the integration
44+
# runs properly with the defined environment variables
45+
validationIntegration: apache
46+
47+
# DEPRECATED
4448
validationNrql: "SELECT count(*) from ApacheSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"
4549

4650
preInstall:

recipes/newrelic/infrastructure/ohi/cassandra/debian.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ logMatch:
3636
- name: cassandra-debug
3737
file: /var/log/cassandra/debug.log*
3838

39+
# The newrelic-cli will use this integration name to check the config file(s)
40+
# that were setup during the installation to ensure the integration
41+
# runs properly with the defined environment variables
42+
validationIntegration: cassandra
43+
44+
# DEPRECATED
3945
validationNrql: "SELECT count(*) from CassandraSample SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"
4046

4147
successLinkConfig:

recipes/newrelic/infrastructure/ohi/cassandra/rhel.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ logMatch:
4040
- name: cassandra-debug
4141
file: /var/log/cassandra/debug.log*
4242

43+
# The newrelic-cli will use this integration name to check the config file(s)
44+
# that were setup during the installation to ensure the integration
45+
# runs properly with the defined environment variables
46+
validationIntegration: cassandra
47+
48+
# DEPRECATED
4349
validationNrql: "SELECT count(*) from CassandraSample SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"
4450

4551
successLinkConfig:

recipes/newrelic/infrastructure/ohi/consul/debian.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ keywords:
2525
processMatch:
2626
- consul
2727

28-
# NRQL the newrelic-cli will use to validate the agent/integration this recipe
29-
# installed is successfully sending data to New Relic
28+
# The newrelic-cli will use this integration name to check the config file(s)
29+
# that were setup during the installation to ensure the integration
30+
# runs properly with the defined environment variables
31+
validationIntegration: consul
32+
33+
# DEPRECATED
3034
validationNrql: "SELECT count(*) from ConsulAgentSample FACET entityGuid SINCE 20 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"
3135

3236
# Prompts for input from the user. These variables then become

recipes/newrelic/infrastructure/ohi/consul/rhel.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ keywords:
2828
processMatch:
2929
- consul
3030

31-
# Matches partial list of the Log forwarding parameters
31+
# The newrelic-cli will use this integration name to check the config file(s)
32+
# that were setup during the installation to ensure the integration
33+
# runs properly with the defined environment variables
34+
validationIntegration: consul
3235

36+
# DEPRECATED
3337
validationNrql: "SELECT count(*) from ConsulAgentSample FACET entityGuid SINCE 20 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"
3438

3539
inputVars:

recipes/newrelic/infrastructure/ohi/couchbase/debian.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ logMatch:
3131
- name: Couchbase General
3232
file: /opt/couchbase/var/lib/couchbase/logs/couchdb.log
3333

34+
# The newrelic-cli will use this integration name to check the config file(s)
35+
# that were setup during the installation to ensure the integration
36+
# runs properly with the defined environment variables
37+
validationIntegration: couchbase
38+
39+
# DEPRECATED
3440
validationNrql: "SELECT count(*) from CouchbaseNodeSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"
3541

3642
inputVars:

recipes/newrelic/infrastructure/ohi/couchbase/rhel.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ logMatch:
3535
- name: Couchbase General
3636
file: /opt/couchbase/var/lib/couchbase/logs/couchdb.log
3737

38+
# The newrelic-cli will use this integration name to check the config file(s)
39+
# that were setup during the installation to ensure the integration
40+
# runs properly with the defined environment variables
41+
validationIntegration: couchbase
42+
43+
# DEPRECATED
3844
validationNrql: "SELECT count(*) from CouchbaseNodeSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"
3945

4046
inputVars:

recipes/newrelic/infrastructure/ohi/elasticsearch/debian.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ logMatch:
3030
- name: elasticsearch
3131
file: /var/log/elasticsearch/elasticsearch*.log
3232

33+
# The newrelic-cli will use this integration name to check the config file(s)
34+
# that were setup during the installation to ensure the integration
35+
# runs properly with the defined environment variables
36+
validationIntegration: elasticsearch
37+
38+
# DEPRECATED
3339
validationNrql: "SELECT count(*) from ElasticsearchClusterSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"
3440

3541
successLinkConfig:

recipes/newrelic/infrastructure/ohi/elasticsearch/rhel.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ logMatch:
3333
- name: elasticsearch
3434
file: /var/log/elasticsearch/elasticsearch*.log
3535

36+
# The newrelic-cli will use this integration name to check the config file(s)
37+
# that were setup during the installation to ensure the integration
38+
# runs properly with the defined environment variables
39+
validationIntegration: elasticsearch
40+
41+
# DEPRECATED
3642
validationNrql: "SELECT count(*) from ElasticsearchClusterSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"
3743

3844
successLinkConfig:

0 commit comments

Comments
 (0)