Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding optional new relic agents to eks #2966

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions helmfile/getContext.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions helmfile/getContext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 14 additions & 1 deletion helmfile/helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }}
Expand Down Expand Up @@ -174,4 +176,15 @@ releases:
chart: okgolove/aws-xray
version: 4.0.8
values:
- ./overrides/system/xray-daemon.yaml.gotmpl
- ./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
23 changes: 23 additions & 0 deletions helmfile/overrides/system/newrelic.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -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
Loading