-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
resource_attribute not emerging with metrics #21477
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
By default, resource attributes are not enabled. You will need to add a configuration entry:
Please try it out and let us know if it works. |
This has been my config for testing, the
I do get the metrics, just not the resource_attribute with them. |
So I am looking back at the image you shared in the other issue. What's interesting is that I'm not sure why that is but maybe it's worth digging into. |
I found the issue: the scraper doesn't emit resource attributes. There's a bug. You need this change: You will need a test for it and so on. Codeowners can help from there. |
A couple of questions... I queried the IM's API for MTS on sshcheck.status and this is what I got back:
Out of curiosity, would you expect But to the issue of the bug and your fork that attempts to address it, can you advise how I'd go about testing? I've not built the contrib distribution nor am I a Go developer, though I'm not afraid to jump in and help. I'm an ops/infra guy with just enough understanding of these things to be dangerous. :) |
I took a stab at building splunk-otel-collector but this time pointing to a local sshcheckreceiver module that was modified based on your example. In go.mod I included:
To me this seemed to make sense, but instead I think it highlights a lack of understanding on my part how these things come together, if not a fundamental understanding of Go. It doesn't build, the output being:
|
I shouldn't sell myself too short. I got it to build- in my local sshcheckreceiver's Once built, I get the dimension:
@atoulme Can you advise me what should happen next? I've done little more than to help test the outcome of your code change. I don't think any code I've changed to package this up meets contribution standards. |
We have 2 codeowners on this thread: @nslaughter and @codeboten . As humanely as possible, you can try to exert gentle pressure on them such as promising them a frosty beverage if they follow up on this matter. Alternatively, if you are a Splunk customer, you can try to open a support case, state your need, open an idea ticket and work with our folks to identify your use case, see how to best adopt this receiver, and we'll try to satisfy you however we can. Given that this bug is identified and is a simple code change, I might get around to fixing it in my copious spare time if nothing else happens, but I cannot make guarantees from there. |
Thank you for your help. I will open a support case and reach out to my account team. Maybe I can catch @nslaughter and @codeboten as we head into the weekend to make good on that frosty beverage. |
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. |
Reopening to close with good news. This was fixed with issue #24441 |
Component(s)
receiver/sshcheck
Describe the issue you're reporting
I'm appealing to splunk-otel-collector to include sshcheck in that release. In my testing of the code to include sshcheck, I've noticed that the resouce_attribute
ssh.endpoint
does not emerge with the metrics being collected- the net effect being is I have successful collection of metrics but I don't know for what machines/endpoints.Please let me know if I've misinterpreted the available documentation, if I have a flaw in my testing, or could improve the quality of this issue. Thank you.
https://github.com/signalfx/splunk-otel-collector/issues/3050#issuecomment-1532787623
edit: typos, clarification.
The text was updated successfully, but these errors were encountered: