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

Session properties support for Prometheus Connector. #22368

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

Conversation

amitkharb
Copy link
Contributor

@amitkharb amitkharb commented Jun 12, 2024

Adding the session properties support for Prometheus Connector.

Additional context and related issues

Not all metrics are ingested equally, sizes of different metrics may differ.
When the size of a particular metric is significantly larger than other metrics, prometheus connector was not able to handle it and was throwing exception with the default prometheus_query_chunk_size_duration and prometheus_max_query_range_duration. Reducing the chunk size and query range duration helped.

Also for small size metrics, we want larger chunk size and query range duration. Creating the session properties is the best way to control those values in an automated ETL pipeline.

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( x) Release notes are required, with the following suggested text:

# Section
* Fix some things. ({issue}`22319`)

@cla-bot cla-bot bot added the cla-signed label Jun 12, 2024
@amitkharb amitkharb requested a review from zhaoyim June 12, 2024 10:31
@amitkharb amitkharb force-pushed the 22319 branch 2 times, most recently from e335e3f to afaea47 Compare June 12, 2024 10:51
@github-actions github-actions bot added docs hudi Hudi connector iceberg Iceberg connector delta-lake Delta Lake connector hive Hive connector bigquery BigQuery connector labels Jun 12, 2024
@amitkharb amitkharb removed hudi Hudi connector iceberg Iceberg connector delta-lake Delta Lake connector hive Hive connector bigquery BigQuery connector labels Jun 12, 2024
@amitkharb amitkharb requested a review from ebyhr June 12, 2024 10:57
@github-actions github-actions bot added jdbc Relates to Trino JDBC driver hudi Hudi connector iceberg Iceberg connector delta-lake Delta Lake connector hive Hive connector bigquery BigQuery connector mongodb MongoDB connector labels Jun 18, 2024
@amitkharb amitkharb removed jdbc Relates to Trino JDBC driver hudi Hudi connector iceberg Iceberg connector delta-lake Delta Lake connector labels Jun 18, 2024
@amitkharb amitkharb removed hive Hive connector bigquery BigQuery connector mongodb MongoDB connector labels Jun 18, 2024
@amitkharb
Copy link
Contributor Author

Hi @ebyhr, could you please review this PR. Thank you

Copy link
Member

@ebyhr ebyhr left a comment

Choose a reason for hiding this comment

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

Could you explain the motivation of these session properties in the PR description?

@amitkharb
Copy link
Contributor Author

Could you explain the motivation of these session properties in the PR description?

Updated the description, thank you

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

Successfully merging this pull request may close these issues.

None yet

2 participants