We are running grafana agent in k8s. Data gets from the agent to the cloud account. We have dotnet applications manually configured with opentelemetry SDK.
Cannot get telemetry data from the dotnet application to the agent other than using a console exporter. When using the otlp exporter nothing gets sent.
The pod has the env OTEL_EXPORTER_OTLP_ENDPOINT
. It’s unclear what value this should have.
I have tried
- grafana-agent-k8s.monitoring.svc.cluster.local
- grafana-agent-k8s.monitoring.svc.cluster.local/v1/logs
There are several endpoints deployed using the agent helm-chart
kubectl -n monitoring get ep
NAME ENDPOINTS AGE
grafana-agent-k8s 11.3.0.58:80 28h
grafana-agent-k8s-cluster 11.3.0.58:80 28h
grafana-agent-k8s-grafana-agent-logs 11.3.0.17:80,11.3.0.59:80 28h
grafana-agent-k8s-kube-state-metrics 11.3.0.54:8080 28h
grafana-agent-k8s-prometheus-node-exporter 11.3.0.34:9100,11.3.0.5:9100 28h
I can’t seem to find any clear docs or even a single example what must be a very typical setup. What might I be missing?
All the endpoints are exposed on port 80, eg:
k -n monitoring describe ep/grafana-agent-k8s
Name: grafana-agent-k8s
Namespace: monitoring
Labels: app.kubernetes.io/instance=grafana-agent-k8s
app.kubernetes.io/managed-by=Helm
app.kubernetes.io/name=grafana-agent
app.kubernetes.io/version=v0.38.1
argocd.argoproj.io/instance=grafana-agent-k8s
helm.sh/chart=grafana-agent-0.29.0
Annotations: endpoints.kubernetes.io/last-change-trigger-time: 2024-01-02T18:41:28Z
Subsets:
Addresses: 11.3.0.58
NotReadyAddresses: <none>
Ports:
Name Port Protocol
---- ---- --------
http-metrics 80 TCP