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

[SPARK-36360][Spark Streaming] Remove appName from StreamingSource sourceName #33592

Closed
wants to merge 1 commit into from
Closed

[SPARK-36360][Spark Streaming] Remove appName from StreamingSource sourceName #33592

wants to merge 1 commit into from

Conversation

mrclneumann
Copy link

What changes were proposed in this pull request?

The MetricsSystem takes care of proper naming of all metrics. By default, the root namespace is the value of spark.app.id. A custom namespace can be specified for metrics reporting using spark.metrics.namespace configuration property.

A StreamingSource gets registered in the MetricsSystem, however, it additionally includes the appName in its sourceName. This makes it impossible to configure a common namespace excluding the appName.

This pull request proposes to exclude the appName from the sourceName in StreamingSource following the example of the other sources, e.g. ExecutorMetricsSource.

Why are the changes needed?

Homogeneous naming scheme across all metrics.

Does this PR introduce any user-facing change?

The proposed change conforms to the documentation. See here.

How was this patch tested?

No tests added.

@mrclneumann mrclneumann changed the title [SPARK-36360][Spark Core] Remove appName from StreamingSource sourceName [SPARK-36360][Streaming] Remove appName from StreamingSource sourceName Jul 30, 2021
@mrclneumann mrclneumann changed the title [SPARK-36360][Streaming] Remove appName from StreamingSource sourceName [SPARK-36360][Spark Streaming] Remove appName from StreamingSource sourceName Jul 30, 2021
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@mrclneumann mrclneumann closed this Aug 3, 2021
@mrclneumann mrclneumann deleted the Remove_appName_from_StreamingSource_sourceName branch August 3, 2021 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants