-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[processor/resourcedetection, receiver/hostmetrics] Report total memory and CPU capacity numbers as resource attributes #22099
Comments
Pinging code owners for receiver/hostmetrics: @dmitryax. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Pinging code owners for processor/resourcedetection: @Aneurysm9 @dashpole. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Do you have a use case of metrics coming from another receiver that would need that attribute? |
I guess I am thinking of something like debugging an issue by filtering a telemetry signal (say, traces) based on the total capacity on a given metric (similar to the use case for something like |
I believe these can be optional resource attributes on both host metrics receiver and resource detection receiver, so user can decide what scope to apply it to. Another thing I would like to clarify is if putting that information in resource attributes is a good approach. Do we have anything in the OTel specification/semconv to guide here? If not, we probably should start there. |
Would it also be an option to provide this info as a metric? I would be interested in something like update cc @chambridge |
Actually, I like this more than putting it into the resource attribute because this metric can be used in computations on the backends, while it's hard to do with the resource attribute. But I still would like to see any guidance from the OTel spec regarding this. It's be great if someone can look into that and start an issue if it's not specified anywhere. cc @mx-psi |
Let's continue the discussion on the semantic-conventions repository first to clear up both the name and whether this should be a metric or a resource attribute. I will mark this as 'on hold' in the meanwhile. |
…and physical CPUs (#23231) **Link to tracking Issue:** #22099 Signed-off-by: Benedikt Bongartz <[email protected]> Co-authored-by: Pablo Baeyens <[email protected]>
@dmitryax, |
Component(s)
processor/resourcedetection, receiver/hostmetrics
Describe the issue you're reporting
As part of improving the infrastructure monitoring capabilities of the OpenTelemetry Collector, I want to report total memory and filesystem capacity as well as CPU cores.
Part of this information can already be retrieved by combining information from the hostmetrics receiver; for example if you count the number of
cpu
values onsystem.cpu.time
you can get the total number of cores. However, if you want to produce this information at the exporter, you then depend on all metrics reaching the same exporter and therefore you would make your deployment stateful.I want therefore to add this information as resource attributes to avoid stateful deployments.
My remaining open question is where to add this. I see two possibilities:
I am leaning towards (2), since that way this information can be leveraged by users that do not use the host metrics receiver but still want to have that kind of information, but I want some other opinions.
The text was updated successfully, but these errors were encountered: