-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
process.uptime otel config feature failing on linux machine #31107
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
process: error details 'metrics' has invalid keys: process.uptime. collector server run finished with error: failed to get config: cannot unmarshal the confiuration: 1 error(s) decoding: |
Can you help on this |
My goal to config add process attributes in otel configuration for linux to find the top high process usage with pid. How I can configure this using with attributes, please advise |
Hello @krantishetty, can you share the full contents of your configuration file? Also, can you share the full error output? A good place to start may be to use the hostmetrics receiver, specifically the |
Pinging code owners for receiver/hostmetrics: @dmitryax @braydonk. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
receivers:
processors: resourcedetection: exporter: service: Error: failed to get config: cannot unmarshal the configuration: 1 errors(s) decoding:
otel version is .88 |
Please advise |
Hi @crobert-1 , please advise my query |
Hi @crobert-1 , can you please advise |
It is not good etiquette to tag people who have nothing to do with the issue. I would advise against doing that in the future.
|
Apologies, we are barely get the response and we are looking some help to get the system level process details and process owner when the high cpu memory usage triggered to find the exact process details which cause the problem |
A couple things to note. Firstly, GitHub Issues are intended for reporting problems with reproduction steps, not for getting support on usage. I would recommend instead joining the CNCF Slack and asking these sorts of questions in the #otel-collector channel. https://communityinviter.com/apps/cloud-native/cncf Secondly, when posting configuration files it is strongly recommended that you use GitHub's Markdown support to post the yaml in code blocks within your comments. yaml is indentation dependent, so it is important that the indentation is maintained. You can follow those instructions here: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks I will guide you to getting a working config, after which point I think this issue can be considered closed (I don't have the ability to actually close it but someone who is able to may do so). There are a few errors with the configuration you posted in the screenshot:
So the process config you want is: process:
metrics:
process.cpu.utilization:
enabled: true
process.cpu.time:
enabled: true
process.disk.io:
enabled: true
process.memory.utilization:
enabled: true
process.disk.operations:
enabled: true
resource_attributes:
process.pid:
enabled: true A few things you have enabled are already enabled by default and can be removed, so you can simplify it further: process:
metrics:
process.cpu.utilization:
enabled: true
process.memory.utilization:
enabled: true
process.disk.operations:
enabled: true With this |
Thank you very much @braydonk , i will test it with attributes config and will share it. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners: See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Component(s)
processor/metricsgeneration
Describe the issue you're reporting
We try to add the uptime metrics value under process, but its failing. could you please help to advise on this.
my config file:
process:
metrics:
process.uptime:
enabled: true
The text was updated successfully, but these errors were encountered: