Closed sudhirpandey closed 2 years ago
Hey @sudhirpandey, thanks for notifying the issue. Would you kindly answer these following questions:
service:
pipelines:
metrics:
receivers: [prometheus]
exporters: [logging, awsprometheusremotewrite]
metrics/ecs:
receivers: [awsecscontainermetrics]
processors: [filter]
exporters: [logging, awsprometheusremotewrite]
For the flag --log-level debug, I will notify my team about this option and thanks for your suggestion
The --log-level
CLI flag has been deprecated and removed upstream as part of an effort to move all configuration into the configuration system. There is an alternate method, which is what is ultimately used by the extracfg.txt
method, which is to use the --set
CLI flag:
--set=service.telemetry.logs.level=DEBUG
That said, we're currently tracking a report upstream that setting that configuration value is ineffective. You can follow this issue for more visibility there.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been marked as stall for 30 days with no activity.
Is your feature request related to a problem? Please describe. I am trying to get some debug logs to figure put why the metrics are not ending up in the managed prometheus in AWS. So far i have enabled debug on exporter side as
now realising that it might only show debug logs form exporter side, i wanted to get some debug logs in collector side, From upstream otel collector there is flag --log-level debug which is not supported in aws-otel-collector yet it seems , https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/troubleshooting.md
but we can enable debug logs using this file it seems /opt/aws/aws-otel-collector/etc/extracfg.txt
Hence i create a config map and mounted in the daemonset manifest like this
daemonset to have this excerpt in manifest
so far the file seems to be present as i am not getting logs like this 2021/10/06 17:33:26 find no extra config, skip it, err: open /opt/aws/aws-otel-collector/etc/extracfg.txt: no such file or directory,
but the logs genereated does not seem to be debug too
Describe the solution you'd like I wanted debug logs to figure out if otd collector is having trouble to scrape metrics from the application end points or if its actuallty having trouble pushing it to the managened prometheus. Form the logs generated now it just seems it runninng and processing data, but in reality i am not seeing any metrics data ending up in our managed prometheus
Describe alternatives you've considered Is there a possiblity to support the flag --log-level debug as in https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/troubleshooting.md in future versions, as current way of only supporting debug via config file is a bit too much to do , when we just wanted to quickly turn on loglevel verbosity for debugging purpose.