git clone https://github.com/csongnr/otel-agent.git
2. Update config here to add a cluster name, and New Relic Ingest - License key
Example:
licenseKey: "EXAMPLEINGESTLICENSEKEY345878592NRALL"
newRelicEndpoint: "https://otlp.nr-data.net"
cluster: "SampleApp"
- Run:
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install nodeexporter prometheus-community/prometheus-node-exporter
- Comment out these lines in the configuration.
cd ~/otel-agent
helm install otel-agent-release nr-k8s-otel-collector -n newrelic --create-namespace
kubectl get pods -A --watch
kubectl logs <otel-pod-name>
You should see data reporting into New Relic within a couple of seconds to the InfrastructureEvent
table, Metric
table, and Log
tables.
FROM Metric SELECT *
FROM InfrastructureEvent SELECT *
FROM Log SELECT *
- Make changes to the opentelemetry configuration
- Upgrade the release:
helm upgrade otel-agent-release nr-k8s-otel-collector