Splunk Observability Cloud

DNS name of otel-collector in k8s

mwestin
New Member

Hello. I'm using the trial and following the instructions for sending to APM with a manually instrumented Python app as seen below:

 

 

 

apiVersion: apps/v1
kind: Deployment
spec:
  selector:
    matchLabels:
      app: your-application
  template:
    spec:
      containers:
        - name: myapp
          env:
            - name: SPLUNK_OTEL_AGENT
              valueFrom:
                fieldRef:
                  fieldPath: status.hostIP
            - name: OTEL_EXPORTER_OTLP_ENDPOINT
              value: "http://$(SPLUNK_OTEL_AGENT):4317"
            - name: OTEL_SERVICE_NAME
              value: "blah"
            - name: OTEL_RESOURCE_ATTRIBUTES
              value: "service.version=1"

 

 

 

 

If I'm using the Splunk distribution of the otel collector, how can I get the dns name of the `OTEL_EXPORTER_OTLP_ENDPOINT` without having to use `status.HostIp`? 

Labels (1)
0 Karma

bishida
Splunk Employee
Splunk Employee

Hi,

Is using status.hostIP not working for some reason? 
I haven't tried it, but you might be able to just use spec.nodeName instead?

0 Karma
Get Updates on the Splunk Community!

New This Month in Splunk Observability Cloud - Metrics Usage Analytics, Enhanced K8s ...

The latest enhancements across the Splunk Observability portfolio deliver greater flexibility, better data and ...

Alerting Best Practices: How to Create Good Detectors

At their best, detectors and the alerts they trigger notify teams when applications aren’t performing as ...

Discover Powerful New Features in Splunk Cloud Platform: Enhanced Analytics, ...

Hey Splunky people! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2408. In this ...