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

WIP: Spark --app-id as container name #871

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jongy
Copy link
Contributor

@Jongy Jongy commented Dec 28, 2023

Description

This is a redo of the branch spark-app-id-as-container-name (from cf74924).

The idea is to allow using Spark application IDs as "container names" collected by gProfiler. Logically, a "container name" is just an identifier describing a process or a set of processes across (potentially) multiple nodes. For Docker/k8s/ecs etc, container names are logical. In Spark/YARN, application IDs or YARN application names can be used instead.

I turned ContainerNamesClient to a generic base ContainerNamesClientBase which is implemented by ContainerNamesClient (the old) and SparkContainerNamesClient (the new).

Related Issue

#869

How Has This Been Tested?

T.B.D

@Jongy Jongy added the enhancement New feature or request label Dec 28, 2023
Comment on lines +150 to +151
# container_names_client = ContainerNamesClient() if self._enrichment_options.container_names else None
container_names_client = SparkContainerNamesClient() if self._enrichment_options.container_names else None
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be made a CLI argument.

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

Successfully merging this pull request may close these issues.

1 participant