Skip to content
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

Add mechanism to map a processes env variable to a Prometheus metric #1471

Open
nfisher opened this issue Dec 19, 2024 · 0 comments
Open

Add mechanism to map a processes env variable to a Prometheus metric #1471

nfisher opened this issue Dec 19, 2024 · 0 comments

Comments

@nfisher
Copy link

nfisher commented Dec 19, 2024

Given a PyTorch process with PID 1234 has the environment variables:

  • RANK=9
  • LOCAL_RANK=0

When I configure Beyla to map the env var RANK to rank and LOCAL_RANK to local_rank
And I request the Beyla metrics endpoint
Then all metrics for PID 1234 should have rank=9, local_rank=0.

Note: OTEL_RESOURCE_ATTRIBUTES cannot be used as these processes are forked and assigned their env vars by a parent runner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant