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

Create a prometheus client #73

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

naved001
Copy link
Collaborator

Part of the refactoring to organize the codebase. This moves the methods to talk to prometheus into a class in its own module.

The unit tests have also been moved to a separate file.

closes #69

@naved001 naved001 force-pushed the refactor/prometheus_client branch 2 times, most recently from fd05bb9 to d587557 Compare September 13, 2024 00:40
@naved001 naved001 requested a review from hakasapl September 23, 2024 18:16
Copy link
Contributor

@knikolla knikolla left a comment

Choose a reason for hiding this comment

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

Minus the typo seems pretty straightforward and looks good.


class PrometheusClient:
def __init__(self, prometheus_url: str, token: str, step_min: int=15):
self.proemtheus_url = prometheus_url
Copy link
Contributor

Choose a reason for hiding this comment

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

you have a typo here :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch! thanks.

Part of the refactoring to organize the codebase. This moves the methods to
talk to prometheus into a class in its own module.

The unit tests have also been moved to a separate file.

closes CCI-MOC#69
@naved001 naved001 force-pushed the refactor/prometheus_client branch from d587557 to 49ba5d6 Compare September 24, 2024 01:30
@naved001 naved001 merged commit 6d18860 into CCI-MOC:main Sep 24, 2024
2 checks passed
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.

Refactor: move prometheus client into its own class/module
2 participants