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

[ISSUE #4415] Add Promethus source connector #4492

Closed
wants to merge 7 commits into from
Closed

[ISSUE #4415] Add Promethus source connector #4492

wants to merge 7 commits into from

Conversation

willimpo
Copy link
Contributor

@willimpo willimpo commented Oct 17, 2023

Fixes #4415 .

Motivation

Add Promethus source connector

Modifications

Add new source connector module for prometheus

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

@willimpo
Copy link
Contributor Author

@xwm1992 @Alonexc please make a review, thanks


@Override
public void commit(ConnectRecord record) {
curStartTime += interval;
Copy link
Member

Choose a reason for hiding this comment

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

Do you need to add logic to update the offset in this method? Otherwise, it seems that the offset data read by offsetStorageReader has always been old.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I should save end_time in offsetStorage for each time. thanks

@willimpo willimpo closed this Oct 17, 2023
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

Successfully merging this pull request may close these issues.

[Feature] Add Promethus source connector
2 participants