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 installed_extensions prometheus metric #9608

Merged
merged 8 commits into from
Nov 13, 2024

Conversation

lubennikovaav
Copy link
Contributor

and add /metrics endpoint to compute_ctl to expose such metrics

metric format example for extension pg_rag
with versions 1.2.3 and 1.4.2
installed in 3 and 1 databases respectively:

neon_extensions_installed{extension="pg_rag", version="1.2.3"} = 3 neon_extensions_installed{extension="pg_rag", version="1.4.2"} = 1


infra part: https://github.com/neondatabase/flux-fleet/pull/251

revival of the #9375
based on this slack discussion:

and add /metrics endpoint to compute_ctl to expose such metrics

metric format example for extension pg_rag
with versions 1.2.3 and 1.4.2
installed in 3 and 1 databases respectively:

neon_extensions_installed{extension="pg_rag", version="1.2.3"} = 3
neon_extensions_installed{extension="pg_rag", version="1.4.2"} = 1
@lubennikovaav lubennikovaav requested review from a team as code owners November 1, 2024 12:34
@lubennikovaav lubennikovaav requested review from chaporgin, hlinnaka, lassizci and tristan957 and removed request for hlinnaka and chaporgin November 1, 2024 12:34
Copy link

github-actions bot commented Nov 1, 2024

5408 tests run: 5188 passed, 0 failed, 220 skipped (full report)


Flaky tests (3)

Postgres 16

Code coverage* (full report)

  • functions: 31.8% (7886 of 24837 functions)
  • lines: 49.4% (62438 of 126293 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
ccedc1e at 2024-11-13T09:46:58.881Z :recycle:

Copy link
Contributor

@lassizci lassizci left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@lubennikovaav lubennikovaav enabled auto-merge (squash) November 12, 2024 15:13
Co-authored-by: Tristan Partin <tristan@neon.tech>
@lubennikovaav lubennikovaav enabled auto-merge (squash) November 12, 2024 16:33
@lubennikovaav lubennikovaav merged commit 080d585 into main Nov 13, 2024
80 checks passed
@lubennikovaav lubennikovaav deleted the installed_extensions_metric_2 branch November 13, 2024 09:36
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.

3 participants