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

Implement prometheus metrics #499

Merged
merged 2 commits into from
Feb 8, 2024
Merged

Implement prometheus metrics #499

merged 2 commits into from
Feb 8, 2024

Conversation

gruuya
Copy link
Contributor

@gruuya gruuya commented Feb 8, 2024

Current limitations:

  • only metrics for the HTTP frontend
  • no authN

@gruuya gruuya requested a review from mildbyte February 8, 2024 09:26
src/frontend/http.rs Outdated Show resolved Hide resolved
vec![
"# HELP http_requests Counter tracking HTTP request information",
"# TYPE http_requests counter",
"http_requests{method=\"GET\",path=\"/q/SELECT%201\",status=\"200\"} 1",
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we shouldn't log at this kind of granularity underneath /q, since it creates a new Prometheus timeseries for each new query, just /q is good enough

@gruuya gruuya merged commit 0106590 into main Feb 8, 2024
1 check passed
@gruuya gruuya deleted the metrics branch February 8, 2024 11:58
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