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 session properties for prometheus connector #22368

Merged
merged 1 commit into from
Aug 24, 2024
Merged

Conversation

amitkharb
Copy link
Contributor

@amitkharb amitkharb commented Jun 12, 2024

Adding the session properties support for Prometheus Connector.

Additional context and related issues

Sizes of different metrics may differ, to run automated ETL pipelines efficiently we can set different values of session properties like query_chunk_size_duration and max_query_range_duration.

Fixes #22319

Release notes

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

@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
Copy link
Contributor Author

@ebyhr , could you please have a look, I have added the reason for session properties in the description and updated the branch to latest. Thank you

@amitkharb amitkharb changed the title Session properties support for Prometheus Connector. Adding session properties for prometheus connector Jul 29, 2024
@amitkharb
Copy link
Contributor Author

@ebyhr , please have a look, indentation is fixed. 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.

Please follow the commit message guideline: https://github.com/trinodb/trino/blob/master/.github/DEVELOPMENT.md#format-git-commit-messages

Adding session properties for prometheus connector
Sizes of different metrics may differ, to run automated ETL pipelines efficiently we can set different values of session properties like query_chunk_size_duration and max_query_range_duration.

Adding ... should be changed to Add .... Also, please wrap the commit body at 72 characters.

@amitkharb
Copy link
Contributor Author

@ebyhr , could you please have look at the changes. thank you

@amitkharb amitkharb changed the title Adding session properties for prometheus connector Add session properties for prometheus connector Aug 13, 2024
@amitkharb amitkharb marked this pull request as draft August 13, 2024 14:53
@amitkharb amitkharb self-assigned this Aug 13, 2024
@github-actions github-actions bot added the ui Web UI label Aug 13, 2024
@amitkharb amitkharb removed the ui Web UI label Aug 13, 2024
@amitkharb amitkharb marked this pull request as ready for review August 13, 2024 17:04
@amitkharb
Copy link
Contributor Author

@ebyhr , I will addd a TODO comment and also removed the testSessionProperties.
Thank you

@amitkharb
Copy link
Contributor Author

@ebyhr , I will addd a TODO comment and also removed the testSessionProperties. Thank you

@ebyhr DONE

Size of different metrics may differ hence adding the session properties
@ebyhr ebyhr merged commit 51efe2c into trinodb:master Aug 24, 2024
19 checks passed
@github-actions github-actions bot added this to the 455 milestone Aug 24, 2024
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.

Session properties support for Prometheus Connector
2 participants