@newskit-render/core 2.44.0-alpha.4 → 2.44.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -205,7 +205,6 @@ resource "newrelic_nrql_alert_condition" "pod_failed_unknown" {
205
205
  name = "${var.prefix} - Pod Status Failed/Unknown"
206
206
  enabled = "true"
207
207
  violation_time_limit_seconds = 86400
208
- value_function = "single_value"
209
208
  description = "Any pods with status Failed/Unknown"
210
209
 
211
210
  nrql {
@@ -234,7 +233,6 @@ resource "newrelic_nrql_alert_condition" "pod_pending" {
234
233
  name = "${var.prefix} - Pod Status Pending"
235
234
  enabled = "true"
236
235
  violation_time_limit_seconds = 86400
237
- value_function = "single_value"
238
236
  description = "Warn if any containers are pending after 3 minutes, critical if any containers are pending after 5 minutes"
239
237
  expiration_duration = 120
240
238
  close_violations_on_expiration = true
@@ -268,7 +266,6 @@ resource "newrelic_nrql_alert_condition" "restart_count" {
268
266
  name = "${var.prefix} - Container Restarts"
269
267
  enabled = "true"
270
268
  violation_time_limit_seconds = 86400
271
- value_function = "single_value"
272
269
  description = "Any services with restarts > 5 over all pods for 1 minute -> warning"
273
270
 
274
271
  nrql {
@@ -1,12 +1,11 @@
1
- resource "newrelic_synthetics_monitor" "lighthouse-monitor" {
2
- name = "${data.newrelic_entity.render_app.name} Lighthouse Monitor"
3
- type = "SCRIPT_API"
4
- frequency = 30
5
- status = "ENABLED"
6
- locations = ["AWS_EU_WEST_2"]
7
- }
8
-
9
- resource "newrelic_synthetics_monitor_script" "lighthouse-script" {
10
- monitor_id = newrelic_synthetics_monitor.lighthouse-monitor.id
11
- text = "${var.environment}" == "prod" ? file("${path.module}/lighthouse-script-prod.js") : file("${path.module}/lighthouse-script.js")
1
+ resource "newrelic_synthetics_script_monitor" "lighthouse-monitor" {
2
+ name = "${data.newrelic_entity.render_app.name} Lighthouse Monitor"
3
+ type = "SCRIPT_API"
4
+ locations_public = ["EU_WEST_2"]
5
+ period = "EVERY_30_MINUTES"
6
+ status = "ENABLED"
7
+ script = var.environment == "prod" ? file("${path.module}/lighthouse-script-prod.js") : file("${path.module}/lighthouse-script.js")
8
+ script_language = "JAVASCRIPT"
9
+ runtime_type = "NODE_API"
10
+ runtime_type_version = "16.13"
12
11
  }
@@ -2,7 +2,7 @@ terraform {
2
2
  required_providers {
3
3
  newrelic = {
4
4
  source = "newrelic/newrelic"
5
- version = "2.50.2"
5
+ version = "3.13.0"
6
6
  }
7
7
  template = {
8
8
  source = "hashicorp/template"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/core",
3
- "version": "2.44.0-alpha.4",
3
+ "version": "2.44.0-alpha.5",
4
4
  "description": "Newskit Render - Core package",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",