diff --git a/helmfile/getContext.ps1 b/helmfile/getContext.ps1 index fbc125545..17a924f90 100644 --- a/helmfile/getContext.ps1 +++ b/helmfile/getContext.ps1 @@ -65,6 +65,7 @@ GetValue "API_TARGET_GROUP_ARN" GetValue "AWS_REGION" GetValue "BASE_DOMAIN" GetValue "EKS_KARPENTER_AMI_ID" +GetValue "NEW_RELIC_LICENSE_KEY" if ($LOAD_IMAGE_VERSIONS) { LoadImageVersions diff --git a/helmfile/getContext.sh b/helmfile/getContext.sh index 768639701..7990dd846 100755 --- a/helmfile/getContext.sh +++ b/helmfile/getContext.sh @@ -70,6 +70,7 @@ getValue "API_TARGET_GROUP_ARN" getValue "AWS_REGION" getValue "BASE_DOMAIN" getValue "EKS_KARPENTER_AMI_ID" +getValue "NEW_RELIC_LICENSE_KEY" if [ "$LOAD_IMAGE_VERSIONS" = true ]; then diff --git a/helmfile/helmfile.yaml b/helmfile/helmfile.yaml index 7eae3d823..5f7a9e4f1 100644 --- a/helmfile/helmfile.yaml +++ b/helmfile/helmfile.yaml @@ -22,6 +22,8 @@ repositories: url: https://prometheus-community.github.io/helm-charts - name: okgolove url: https://okgolove.github.io/helm-charts +- name: newrelic + url: https://helm-charts.newrelic.com releases: {{ if eq .Environment.Name "dev" }} @@ -174,4 +176,15 @@ releases: chart: okgolove/aws-xray version: 4.0.8 values: - - ./overrides/system/xray-daemon.yaml.gotmpl \ No newline at end of file + - ./overrides/system/xray-daemon.yaml.gotmpl + + - name: newrelic + namespace: newrelic + installed: false + labels: + app: newrelic + tier: main + category: monitoring + chart: newrelic/nri-bundle + values: + - ./overrides/system/newrelic.yaml.gotmpl \ No newline at end of file diff --git a/helmfile/overrides/system/newrelic.yaml.gotmpl b/helmfile/overrides/system/newrelic.yaml.gotmpl new file mode 100644 index 000000000..3421d2a66 --- /dev/null +++ b/helmfile/overrides/system/newrelic.yaml.gotmpl @@ -0,0 +1,23 @@ +global: + licenseKey: {{ requiredEnv "NEW_RELIC_LICENSE_KEY" }} + cluster: notification-canada-ca-{{ .Environment.Name }}-eks-cluster + priorityClassName: system-node-critical + +newrelic-prometheus-agent: +# Automatically scrape prometheus metrics for annotated services in the cluster +# Collecting prometheus metrics for large clusters might impact data usage significantly + enabled: true +nri-metadata-injection: +# Deploy our webhook to link APM and Kubernetes entities + enabled: true +nri-kube-events: +# Report Kubernetes events + enabled: true +newrelic-logging: +# Report logs for containers running in the cluster + enabled: true + priorityClassName: system-node-critical +kube-state-metrics: +# Deploy kube-state-metrics in the cluster. +# Set this to true unless it is already deployed. + enabled: true \ No newline at end of file