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

Log prometheus queries #1417

Merged
merged 1 commit into from
Sep 26, 2024
Merged

Log prometheus queries #1417

merged 1 commit into from
Sep 26, 2024

Conversation

michaeljguarino
Copy link
Member

Might help w/ prometheus troubleshooting

Test Plan

n/a

Checklist

  • If required, I have updated the Plural documentation accordingly.
  • I have added tests to cover my changes.
  • I have added a meaningful title and summary to convey the impact of this PR to a user.

@michaeljguarino michaeljguarino added the enhancement New feature or request label Sep 26, 2024
@michaeljguarino michaeljguarino requested a review from a team September 26, 2024 14:56
Might help w/ prometheus troubleshooting
@michaeljguarino michaeljguarino merged commit f676ad2 into master Sep 26, 2024
8 checks passed
@michaeljguarino michaeljguarino deleted the log-prom-queries branch September 26, 2024 16:07
@@ -17,6 +18,7 @@ defmodule Prometheus.Client do

def query(client \\ nil, query, start, end_t, step, variables) do
query = variable_subst(query, variables)
Logger.info "Issuing prometheus query: #{query}"
Copy link
Member

Choose a reason for hiding this comment

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

We should probably remove this log not to generate obsolete log lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants