add new-relic monitoring

This commit is contained in:
2024-07-13 11:09:22 +10:00
parent 43c4267968
commit 97780e8c04
5 changed files with 104 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ resources:
- ./minio/minio.yaml - ./minio/minio.yaml
# - ./mongodb/mongodb.yaml # - ./mongodb/mongodb.yaml
- ./namespaces/namespaces.yaml - ./namespaces/namespaces.yaml
- ./new-relic/new-relic.yaml
- ./postgresql/postgresql.yaml - ./postgresql/postgresql.yaml
- ./prometheus/prometheus.yaml - ./prometheus/prometheus.yaml
- ./prometheus-alertmanager/prometheus-alertmanager.yaml - ./prometheus-alertmanager/prometheus-alertmanager.yaml

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: new-relic

View File

@@ -0,0 +1,39 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: new-relic
namespace: new-relic
spec:
releaseName: new-relic
chart:
spec:
chart: new-relic
sourceRef:
kind: HelmRepository
name: new-relic
namespace: flux-system
interval: 1h
values:
global:
cluster: RPi5 Cluster
licenseKey: ${nr_license_key}
lowDataMode: true
newrelic-infrastructure:
privileged: true
kube-state-metrics:
enabled: true
image:
tag: v2.10.0
kubeEvents:
enabled: true
newrelic-prometheus-agent:
enabled: true
lowDataMode: true
config:
kubernetes:
integrations_filter:
enabled: false
logging:
enabled: true
newrelic-logging:
lowDataMode: true

View File

@@ -0,0 +1,52 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: new-relic-secrets
namespace: flux-system
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
targetNamespace: new-relic
path: ./new-relic
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: home-cluster-ops-secrets
dependsOn:
- name: repositories
namespace: flux-system
decryption:
provider: sops
secretRef:
name: sops-age
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: new-relic
namespace: new-relic
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/infrastructure/new-relic/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: namespaces
namespace: flux-system
- name: repositories
namespace: flux-system
- name: new-relic-secrets
namespace: flux-system
- name: local-path-provisioner
namespace: local-path-storage
postBuild:
substituteFrom:
- kind: Secret
name: new-relic-secrets

View File

@@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: new-relic
namespace: flux-system
spec:
interval: 6h
url: https://helm-charts.newrelic.com