Skip to content

feat: emit metrics for installed extentions#22

Open
hiradp wants to merge 1 commit intomainfrom
hiradp/extention-metrics
Open

feat: emit metrics for installed extentions#22
hiradp wants to merge 1 commit intomainfrom
hiradp/extention-metrics

Conversation

@hiradp
Copy link

@hiradp hiradp commented Feb 19, 2026

TODO after testing

@hiradp hiradp requested a review from a team as a code owner February 19, 2026 23:53
@@ -0,0 +1,157 @@
// Copyright 2024 The Prometheus Authors
Copy link
Collaborator

Choose a reason for hiding this comment

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

2026

log: config.logger,
excludedDatabases: exclude,
connectDB: func(dsn string) (*sql.DB, error) {
db, err := sql.Open("postgres", dsn)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess there’s no way around this? A bit troubling that we have to create a db connection for every database every time we scrape. Every db connection we create is one less for customers. Any other way we can solve this?

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