Skip to content

csongnr/otel-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

Installation:

1. Download source code

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" 

[Optional] Enable node-exporter (not required for New Relic Kubernetes monitoring experience)

  1. Run:
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install nodeexporter prometheus-community/prometheus-node-exporter 
  1. Comment out these lines in the configuration.

3. From root directory of this repository, run:

cd ~/otel-agent 
helm install otel-agent-release nr-k8s-otel-collector -n newrelic --create-namespace

Confirm installation

Watch pods spin up:

kubectl get pods -A --watch 

Check logs of opentelemetry pod that spins up:

kubectl logs <otel-pod-name>

Confirm data coming through in New Relic

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 * 

Development notes

Iterating on otel config:

  1. Make changes to the opentelemetry configuration
  2. Upgrade the release:
helm upgrade otel-agent-release nr-k8s-otel-collector

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages