You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using logsEngine = "otel" and enabling journald in logsCollection, the agent pod logs have error messages with:
"error": "evaluate value_expr: reflect: call of reflect.Value.Call on map Value (1:1)\n | env(\"K8S_NODE_NAME\")\n | ^"
The EXPR(env("K8S_NODE_NAME")) is used here (_otel-agent.tpl). However, a recent change in the opentelemetry-collector-contrib project (commit) has updated this from env to os_env_func.
I've manually modified the config map to use EXPR(os_env_func("K8S_NODE_NAME")) and the errors no longer exist.
Steps to Reproduce
Use logsEngine = "otel" and enable journald logging.
Expected Result
No errors in agent logs.
Actual Result
Error log entries show up in the agent logs (reformatted for easier viewing, also redacted sensitive info):
This doesn't look like a change that was made explicitly. It is a bug from the filelog receiver introduced in the commit you point out. The workaround you found can help for now. I will also offer a fix to upstream, so your workaround will no longer work once the fix is made. I'll link the issue to this issue.
What happened?
Description
When using
logsEngine = "otel"
and enablingjournald
inlogsCollection
, the agent pod logs have error messages with:The
EXPR(env("K8S_NODE_NAME"))
is used here (_otel-agent.tpl). However, a recent change in theopentelemetry-collector-contrib
project (commit) has updated this fromenv
toos_env_func
.I've manually modified the config map to use
EXPR(os_env_func("K8S_NODE_NAME"))
and the errors no longer exist.Steps to Reproduce
Use
logsEngine = "otel"
and enablejournald
logging.Expected Result
No errors in agent logs.
Actual Result
Error log entries show up in the agent logs (reformatted for easier viewing, also redacted sensitive info):
Chart version
0.83.0
Environment information
Environment
Cloud: EKS
k8s version: 1.27
OS: Amazon Linux 2
Chart configuration
logsEngine = "otel"
and enablingjournald
inlogsCollection
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: