open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
2.72k stars 2.15k forks source link

slurm processor #32312

Open luccabb opened 2 months ago

luccabb commented 2 months ago

Component(s)

No response

Is your feature request related to a problem? Please describe.

n/a

Describe the solution you'd like

open telemetry processor that enriches log, metrics, and traces with slurm metadata. Some of the metadata that would be helpful to include: jobid, jobname, nodelist, user

Describe alternatives you've considered

No response

Additional context

No response

JaredTan95 commented 2 months ago

jobid, jobname, nodelist, user

Sorry, I don't know about slurm, but I have a question,Does those metadata injected by slurm

The otel col collect logs with the pod's annnotation and labels, So I don't quite understand your description

luccabb commented 2 months ago

Does those metadata injected by slurm?

would need to shell out and query slurm info (assuming the environment has their binaries available, like sinfo).

my understanding is that it's possible to write a processor that shells out, grabs some metadata from slurm, and enriches metrics, traces, and logs

atoulme commented 2 months ago

Could this be part of the resourcedetectionprocessor? Seems like a natural fit for it.

github-actions[bot] commented 3 weeks ago

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 @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.