Skip to content

fix(prom): remove unused PROM_ configs #515

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

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

sthaha
Copy link
Contributor

@sthaha sthaha commented Oct 22, 2024

This commit removes the following

  • PROM_QUERY_START_TIME, PROM_QUERY_END_TIME since the config is only used in kepler_model main.py to be used as default values.

  • PROM_HEADERS: since the current format is a str and the expected format for headers is dict[str, str] for header: value to be set in http requests. This is removed until get_config can handle parsing str -> dict[str, str]

Checklist for PR Author


In addition to approval, the author must confirm the following check list:

  • Run the following command to format your code:

    make fmt
  • Create issues for unresolved comments and link them to this PR. Use one of the following labels:

    • must-fix: The logic appears incorrect and must be addressed.
    • minor: Typos, minor issues, or potential refactoring for better readability.
    • nit: Trivial issues like extra spaces, commas, etc.

@sthaha sthaha requested a review from sunya-ch October 22, 2024 06:37
@sthaha sthaha marked this pull request as ready for review October 22, 2024 06:37
@sthaha sthaha force-pushed the remove-prom-headers branch from bbc0972 to 45eccd8 Compare October 22, 2024 06:38
This commit removes the following
* PROM_QUERY_START_TIME, PROM_QUERY_END_TIME since the config is only
  used in kepler_model main.py to be used as default values.

* PROM_HEADERS: since the current format is a `str` and the expected
  format for headers is `dict[str, str]` for header: value to be set in
  http requests.
  This is removed until get_config can handle parsing str -> dict[str, str]

Signed-off-by: Sunil Thaha <sthaha@redhat.com>
@sthaha sthaha force-pushed the remove-prom-headers branch from 45eccd8 to 9012b70 Compare October 22, 2024 06:50
@rootfs rootfs merged commit 7b4721e into sustainable-computing-io:main Oct 22, 2024
18 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.

2 participants