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

updated query! #272

Merged
merged 2 commits into from
May 21, 2024
Merged

updated query! #272

merged 2 commits into from
May 21, 2024

Conversation

wtfsayo
Copy link
Contributor

@wtfsayo wtfsayo commented May 21, 2024

No description provided.

@wtfsayo wtfsayo requested a review from plor May 21, 2024 17:35
Copy link
Contributor

@plor plor left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -38,8 +38,8 @@ export class UsageService {
step: number | string,
): Promise<Response> {

const url = `https://api.fly.io/prometheus/porters-staging/api/v1/query_range?query=sum(${query})&start=${start}&end=now&step=${step}`;

const url = process.env.PROM_URL +`query_range?query=sum(increase(${query}))&start=${start}&end=now&step=${step}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for this. looks pretty good.

@wtfsayo wtfsayo merged commit 854be50 into develop May 21, 2024
@wtfsayo wtfsayo deleted the prom-query-fix branch May 21, 2024 17:43
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