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

Add more metrics #6447

Merged
merged 14 commits into from Mar 8, 2024
Merged

Add more metrics #6447

merged 14 commits into from Mar 8, 2024

Conversation

fantix
Copy link
Member

@fantix fantix commented Nov 8, 2023

  • Current number of databases.
  • Time a client connection is open.
  • Number of compiled/cached GraphQL queries.
  • Number of SQL queries since instance startup.
  • Number of SQL compilations since instance startup.
  • Time it takes to compile a query or script.
  • Queries per connection (EdgeQL / SQL only).
  • Number of transaction serialization errors.
  • Number of network errors.
  • Number of Auth API calls.
  • Number of Auth UI form rendered.
  • Number of Auth successful logins.
  • Number of OAuth providers configured.
  • Average size of queries.

@msullivan
Copy link
Member

Should we consider putting some of this stuff behind authentication?

@fantix
Copy link
Member Author

fantix commented Nov 9, 2023

Should we consider putting some of this stuff behind authentication?

Good point! Or perhaps we can serve the /metrics endpoint only on specified host address (like localhost) or from certain client IP

@fantix fantix force-pushed the more-metrics branch 5 times, most recently from a13416c to cafdfa3 Compare November 10, 2023 21:39
@fantix fantix marked this pull request as ready for review November 10, 2023 22:50
auth_providers = registry.new_labeled_gauge(
'auth_providers',
'Number of Auth providers configured.',
labels=('tenant', 'database'),
Copy link
Member Author

Choose a reason for hiding this comment

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

Shall we add database to many other metrics?

@msullivan
Copy link
Member

(Removing backport-4.x since 4.x doesn't have the auth stuff we need)

@fantix fantix merged commit df6a91a into master Mar 8, 2024
23 checks passed
@fantix fantix deleted the more-metrics branch March 8, 2024 22:24
msullivan pushed a commit that referenced this pull request Mar 15, 2024
* branches_current
* graphql_query_compilations_total
* sql_queries_total and sql_compilations_total
* query_compilation_duration
* client_connection_duration
* queries_per_connection
* transaction_serialization_errors_total
* connection_errors_total
* query_size
* auth_api_calls_total and auth_api_calls_total
* auth_providers
* auth_successful_logins_total
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.

None yet

3 participants