Skip to content

Commit

Permalink
Merge pull request #978 from newrelic/feat/local-validation
Browse files Browse the repository at this point in the history
feat: Local validation
  • Loading branch information
noahmmcgivern authored Oct 3, 2023
2 parents 095d908 + 7ca85ed commit 2724395
Show file tree
Hide file tree
Showing 34 changed files with 202 additions and 25 deletions.
8 changes: 6 additions & 2 deletions recipes/newrelic/infrastructure/ohi/apache/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ logMatch:
- name: apache error
file: /var/log/apache2/error.log

# NRQL the newrelic-cli will use to validate the agent/integration this recipe
# installed is successfully sending data to New Relic
# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: apache

# DEPRECATED
validationNrql: "SELECT count(*) from ApacheSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

preInstall:
Expand Down
8 changes: 6 additions & 2 deletions recipes/newrelic/infrastructure/ohi/apache/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ logMatch:
- name: apache error
file: /var/log/httpd/*error_log

# NRQL the newrelic-cli will use to validate the agent/integration this recipe
# installed is successfully sending data to New Relic
# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: apache

# DEPRECATED
validationNrql: "SELECT count(*) from ApacheSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

preInstall:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/cassandra/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ logMatch:
- name: cassandra-debug
file: /var/log/cassandra/debug.log*

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: cassandra

# DEPRECATED
validationNrql: "SELECT count(*) from CassandraSample SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

successLinkConfig:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/cassandra/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ logMatch:
- name: cassandra-debug
file: /var/log/cassandra/debug.log*

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: cassandra

# DEPRECATED
validationNrql: "SELECT count(*) from CassandraSample SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

successLinkConfig:
Expand Down
8 changes: 6 additions & 2 deletions recipes/newrelic/infrastructure/ohi/consul/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ keywords:
processMatch:
- consul

# NRQL the newrelic-cli will use to validate the agent/integration this recipe
# installed is successfully sending data to New Relic
# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: consul

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

# Prompts for input from the user. These variables then become
Expand Down
6 changes: 5 additions & 1 deletion recipes/newrelic/infrastructure/ohi/consul/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ keywords:
processMatch:
- consul

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

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

inputVars:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/couchbase/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ logMatch:
- name: Couchbase General
file: /opt/couchbase/var/lib/couchbase/logs/couchdb.log

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: couchbase

# DEPRECATED
validationNrql: "SELECT count(*) from CouchbaseNodeSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

inputVars:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/couchbase/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ logMatch:
- name: Couchbase General
file: /opt/couchbase/var/lib/couchbase/logs/couchdb.log

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: couchbase

# DEPRECATED
validationNrql: "SELECT count(*) from CouchbaseNodeSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

inputVars:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/elasticsearch/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ logMatch:
- name: elasticsearch
file: /var/log/elasticsearch/elasticsearch*.log

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: elasticsearch

# DEPRECATED
validationNrql: "SELECT count(*) from ElasticsearchClusterSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

successLinkConfig:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/elasticsearch/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ logMatch:
- name: elasticsearch
file: /var/log/elasticsearch/elasticsearch*.log

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: elasticsearch

# DEPRECATED
validationNrql: "SELECT count(*) from ElasticsearchClusterSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

successLinkConfig:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/elasticsearch/suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ logMatch:
- name: elasticsearch
file: /var/log/elasticsearch/elasticsearch*.log

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: elasticsearch

# DEPRECATED
validationNrql: "SELECT count(*) from ElasticsearchClusterSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

successLinkConfig:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/haproxy/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ logMatch:
- name: haproxy
file: /var/log/haproxy.log

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: haproxy

# DEPRECATED
validationNrql: "SELECT count(*) from HAProxyBackendSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

inputVars:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/haproxy/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ logMatch:
- name: haproxy
file: /var/log/haproxy.log

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: haproxy

# DEPRECATED
validationNrql: "SELECT count(*) from HAProxyBackendSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

inputVars:
Expand Down
8 changes: 6 additions & 2 deletions recipes/newrelic/infrastructure/ohi/memcached/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ logMatch:
- name: memcached
file: /var/log/memcached.log

# NRQL the newrelic-cli will use to validate the agent/integration this recipe
# installed is successfully sending data to New Relic
# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: memcached

# DEPRECATED
validationNrql: "SELECT count(*) from MemcachedSample FACET entityGuid SINCE 10 minutes ago"

preInstall:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/memcached/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ processMatch:
# - name: memcached
# file: /var/log/memcached/*access_log

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: memcached

# DEPRECATED
validationNrql: "SELECT count(*) from MemcachedSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

preInstall:
Expand Down
8 changes: 6 additions & 2 deletions recipes/newrelic/infrastructure/ohi/mongodb/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@ logMatch:
- name: MongoDB log
file: /var/log/mongodb/mongod.log

# NRQL the newrelic-cli will use to validate the agent/integration this recipe
# installed is successfully sending data to New Relic
# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: mongodb3

# DEPRECATED
validationNrql: "SELECT count(*) FROM Metric WHERE entity.type = 'MONGODB_INSTANCE' SINCE 10 minutes ago WHERE targetName LIKE '{{.INFRA_KEY}}%'"

preInstall:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/mongodb/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ logMatch:
- name: MongoDB log
file: /var/log/mongodb/mongod.log

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: mongodb3

# DEPRECATED
validationNrql: "SELECT count(*) FROM Metric WHERE entity.type = 'MONGODB_INSTANCE' SINCE 10 minutes ago WHERE targetName LIKE '{{.INFRA_KEY}}%'"

successLinkConfig:
Expand Down
8 changes: 6 additions & 2 deletions recipes/newrelic/infrastructure/ohi/mysql/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@ logMatch:
attributes:
logtype: mysql-error

# NRQL the newrelic-cli will use to validate the agent/integration this recipe
# installed is successfully sending data to New Relic
# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: mysql

# DEPRECATED
validationNrql: "SELECT count(*) from MysqlSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

successLinkConfig:
Expand Down
8 changes: 6 additions & 2 deletions recipes/newrelic/infrastructure/ohi/mysql/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ logMatch:
- name: mysql
file: /var/log/mysqld.log

# NRQL the newrelic-cli will use to validate the agent/integration this recipe
# installed is successfully sending data to New Relic
# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: mysql

# DEPRECATED
validationNrql: "SELECT count(*) from MysqlSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

successLinkConfig:
Expand Down
8 changes: 6 additions & 2 deletions recipes/newrelic/infrastructure/ohi/mysql/suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ logMatch:
attributes:
logtype: mysql-error

# NRQL the newrelic-cli will use to validate the agent/integration this recipe
# installed is successfully sending data to New Relic
# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: mysql

# DEPRECATED
validationNrql: "SELECT count(*) from MysqlSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

successLinkConfig:
Expand Down
8 changes: 6 additions & 2 deletions recipes/newrelic/infrastructure/ohi/nagios/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ logMatch:
- name: nagios
file: /usr/local/nagios/var/nagios.log

# NRQL the newrelic-cli will use to validate the agent/integration this recipe
# installed is successfully sending data to New Relic
# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: nagios

# DEPRECATED
validationNrql: "SELECT count(*) from NagiosServiceCheckSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

preInstall:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/nagios/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ logMatch:
- name: nagios
file: /usr/local/nagios/var/nagios.log

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: nagios

# DEPRECATED
validationNrql: "SELECT count(*) from NagiosServiceCheckSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

preInstall:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/nginx/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ logMatch:
attributes:
logtype: nginx-error

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: nginx

# DEPRECATED
validationNrql: "SELECT count(*) from NginxSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

successLinkConfig:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/nginx/suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ logMatch:
attributes:
logtype: nginx-error

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: nginx

# DEPRECATED
validationNrql: "SELECT count(*) from NginxSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

successLinkConfig:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/postgres/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ logMatch:
- name: postgresql
file: /var/log/postgresql/postgresql*.log

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: postgres

# DEPRECATED
validationNrql: "SELECT count(*) from PostgresqlDatabaseSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

successLinkConfig:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/postgres/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ logMatch:
- name: postgresql
file: /var/log/postgresql/postgresql*.log

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: postgres

# DEPRECATED
validationNrql: "SELECT count(*) from PostgresqlDatabaseSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

successLinkConfig:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/rabbitmq/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ logMatch:
- name: Logs
file: /var/log/rabbitmq/*.log

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: rabbitmq

# DEPRECATED
validationNrql: "SELECT count(*) from RabbitmqVhostSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

preInstall:
Expand Down
6 changes: 6 additions & 0 deletions recipes/newrelic/infrastructure/ohi/rabbitmq/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ logMatch:
- name: rabbitmq
file: /var/log/rabbitmq/*.log

# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: rabbitmq

# DEPRECATED
validationNrql: "SELECT count(*) from RabbitmqNodeSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

preInstall:
Expand Down
8 changes: 6 additions & 2 deletions recipes/newrelic/infrastructure/ohi/redis/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ logMatch:
attributes:
logtype: redis

# NRQL the newrelic-cli will use to validate the agent/integration this recipe
# installed is successfully sending data to New Relic
# The newrelic-cli will use this integration name to check the config file(s)
# that were setup during the installation to ensure the integration
# runs properly with the defined environment variables
validationIntegration: redis

# DEPRECATED
validationNrql: "SELECT count(*) from RedisSample FACET entityGuid SINCE 10 minutes ago WHERE reportingAgent = '{{.INFRA_KEY}}'"

successLinkConfig:
Expand Down
Loading

0 comments on commit 2724395

Please sign in to comment.