diff --git a/alert-policies/hardware-sentry/battery-charge.yml b/alert-policies/hardware-sentry/battery-charge.yml index 5b65ead5f7..57dad06111 100644 --- a/alert-policies/hardware-sentry/battery-charge.yml +++ b/alert-policies/hardware-sentry/battery-charge.yml @@ -7,6 +7,9 @@ type: STATIC nrql: query: "FROM Metric SELECT latest(hw.battery.charge) FACET site, host.name" +# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE) +valueFunction: SINGLE_VALUE + # List of Critical and Warning thresholds for the condition terms: - priority: CRITICAL @@ -26,4 +29,4 @@ terms: # Time in seconds; 120 - 3600 thresholdDuration: 300 # How many data points must be in violation for the duration - thresholdOccurrences: ALL \ No newline at end of file + thresholdOccurrences: ALL diff --git a/alert-policies/hardware-sentry/connector-status.yml b/alert-policies/hardware-sentry/connector-status.yml index 5d172e0336..ddb595eb62 100644 --- a/alert-policies/hardware-sentry/connector-status.yml +++ b/alert-policies/hardware-sentry/connector-status.yml @@ -6,6 +6,9 @@ type: STATIC nrql: query: "FROM Metric SELECT latest(hardware_sentry.connector.status) WHERE state = 'degraded' FACET site, host.name" +# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE) +valueFunction: SINGLE_VALUE + # List of Critical and Warning thresholds for the condition terms: - priority: CRITICAL @@ -16,4 +19,4 @@ terms: # Time in seconds; 120 - 3600 thresholdDuration: 300 # How many data points must be in violation for the duration - thresholdOccurrences: ALL \ No newline at end of file + thresholdOccurrences: ALL diff --git a/alert-policies/hardware-sentry/device-status(crit).yml b/alert-policies/hardware-sentry/device-status(crit).yml index b474852610..ffd57f0058 100644 --- a/alert-policies/hardware-sentry/device-status(crit).yml +++ b/alert-policies/hardware-sentry/device-status(crit).yml @@ -7,6 +7,9 @@ type: STATIC nrql: query: "FROM Metric SELECT latest(hw.status) WHERE state IN ('failed') OR battery.state = 'failed' FACET site, host.name" +# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE) +valueFunction: SINGLE_VALUE + # List of Critical and Warning thresholds for the condition terms: - priority: CRITICAL @@ -17,4 +20,4 @@ terms: # Time in seconds; 120 - 3600 thresholdDuration: 300 # How many data points must be in violation for the duration - thresholdOccurrences: ALL \ No newline at end of file + thresholdOccurrences: ALL diff --git a/alert-policies/hardware-sentry/device-status(warn).yml b/alert-policies/hardware-sentry/device-status(warn).yml index 211486a10e..4d657f71e5 100644 --- a/alert-policies/hardware-sentry/device-status(warn).yml +++ b/alert-policies/hardware-sentry/device-status(warn).yml @@ -7,6 +7,9 @@ type: STATIC nrql: query: "FROM Metric SELECT latest(hw.battery.charge) FACET site, host.name" +# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE) +valueFunction: SINGLE_VALUE + # List of Critical and Warning thresholds for the condition terms: - priority: WARNING @@ -17,4 +20,4 @@ terms: # Time in seconds; 120 - 3600 thresholdDuration: 300 # How many data points must be in violation for the duration - thresholdOccurrences: ALL \ No newline at end of file + thresholdOccurrences: ALL diff --git a/alert-policies/hardware-sentry/host-nonresponsive.yml b/alert-policies/hardware-sentry/host-nonresponsive.yml index aefd5d7a18..3cd074ee0a 100644 --- a/alert-policies/hardware-sentry/host-nonresponsive.yml +++ b/alert-policies/hardware-sentry/host-nonresponsive.yml @@ -6,6 +6,9 @@ type: STATIC nrql: query: "SELECT latest(hardware_sentry.host.up) FROM Metric FACET host.id" +# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE) +valueFunction: SINGLE_VALUE + # List of Critical and Warning thresholds for the condition terms: - priority: CRITICAL @@ -16,4 +19,4 @@ terms: # Time in seconds; 120 - 3600 thresholdDuration: 300 # How many data points must be in violation for the duration - thresholdOccurrences: ALL \ No newline at end of file + thresholdOccurrences: ALL diff --git a/alert-policies/hardware-sentry/missing-devices.yml b/alert-policies/hardware-sentry/missing-devices.yml index ae0f0918f4..d54c215e41 100644 --- a/alert-policies/hardware-sentry/missing-devices.yml +++ b/alert-policies/hardware-sentry/missing-devices.yml @@ -6,6 +6,9 @@ type: STATIC nrql: query: "SELECT latest(hw.status) FROM Metric WHERE state = 'present' FACET host.name" +# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE) +valueFunction: SINGLE_VALUE + # List of Critical and Warning thresholds for the condition terms: - priority: CRITICAL @@ -16,4 +19,4 @@ terms: # Time in seconds; 120 - 3600 thresholdDuration: 300 # How many data points must be in violation for the duration - thresholdOccurrences: ALL \ No newline at end of file + thresholdOccurrences: ALL diff --git a/alert-policies/hardware-sentry/physical-disk-cap.yml b/alert-policies/hardware-sentry/physical-disk-cap.yml index 05355cf458..945600a749 100644 --- a/alert-policies/hardware-sentry/physical-disk-cap.yml +++ b/alert-policies/hardware-sentry/physical-disk-cap.yml @@ -6,6 +6,9 @@ type: STATIC nrql: query: "SELECT latest(hw.physical_disk.endurance_utilization) FROM Metric FACET host.id" +# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE) +valueFunction: SINGLE_VALUE + # List of Critical and Warning thresholds for the condition terms: - priority: CRITICAL @@ -25,4 +28,4 @@ terms: # Time in seconds; 120 - 3600 thresholdDuration: 300 # How many data points must be in violation for the duration - thresholdOccurrences: ALL \ No newline at end of file + thresholdOccurrences: ALL diff --git a/quickstarts/hardware-sentry/config.yml b/quickstarts/hardware-sentry/config.yml index 1c6e8ab9f6..72452b4799 100644 --- a/quickstarts/hardware-sentry/config.yml +++ b/quickstarts/hardware-sentry/config.yml @@ -6,7 +6,7 @@ description: | Hardware Sentry is Sentry Software's native OpenTelemetry solution which monitors the hardware health of almost any server, storage system, and network switch available on the market and exposes the collected metrics into New Relic. The solution also reports on power consumption, electricity costs and CO₂ emissions of on-prem IT infrastructures. The solution is free-to-use for New Relic users. [Support plans](https://sentrysoftware.com/pricing/) are available. - + ## About this integration This integration with New Relic & Hardware Sentry connects the native OpenTelemetry collector in Hardware Sentry's agent to New Relic's observability monitoring platform. @@ -36,11 +36,11 @@ dataSourceIds: - hardware-sentry dashboards: - hardware-sentry -alert-policies: +alertPolicies: - hardware-sentry documentation: - name: Hardware Sentry - New Relic integration url: https://www.sentrysoftware.com/docs/hws-doc/latest/integration/newrelic.html description: This documentation explains how to integrate Hardware Sentry with New Relic. icon: logo.png -website: https://www.sentrysoftware.com/ \ No newline at end of file +website: https://www.sentrysoftware.com/