Skip to content

Conversation

@dliakhov
Copy link

@dliakhov dliakhov commented Apr 21, 2023

…ns` to expose info about available extensions and installed extensions accordingly
@dliakhov dliakhov requested a review from a team as a code owner April 21, 2023 13:48
@dliakhov dliakhov requested review from IuriiMr and tshcherban April 21, 2023 13:48
@it-percona-cla
Copy link

it-percona-cla commented Apr 21, 2023

CLA assistant check
All committers have signed the CLA.

@dliakhov dliakhov temporarily deployed to CI April 21, 2023 13:49 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI April 21, 2023 13:49 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI April 21, 2023 13:49 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI April 21, 2023 13:49 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI April 21, 2023 13:49 — with GitHub Actions Inactive
@dliakhov dliakhov marked this pull request as draft April 21, 2023 13:49
@dliakhov dliakhov requested a review from ritbl May 1, 2023 14:47
@dliakhov dliakhov marked this pull request as ready for review May 3, 2023 11:58
@dliakhov dliakhov temporarily deployed to CI May 5, 2023 12:09 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 5, 2023 12:09 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 5, 2023 12:09 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 5, 2023 12:09 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 5, 2023 12:09 — with GitHub Actions Inactive
"Extensions that are available for installation",
[]string{
"name",
"default_version",
Copy link

Choose a reason for hiding this comment

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

what does it mean default? used? I think we need a better name here

Copy link
Author

Choose a reason for hiding this comment

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

these lablels are copies of column names from the table from which we fetch these metrics.

I believe it means if you install this extensions and not specify the version this default version will be used.

"pg_extensions",
"Installed extensions",
[]string{
"extname",
Copy link

Choose a reason for hiding this comment

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

why ext prefixes?

Copy link
Author

Choose a reason for hiding this comment

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

probably it means 'extension'

removed it

ch <- prometheus.MustNewConstMetric(
pgExtensions["pg_extensions"],
prometheus.GaugeValue, 1,
extname, strconv.FormatBool(extrelocatable), extversion,
Copy link

Choose a reason for hiding this comment

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

how about putting each param on it's own line?

Copy link
Author

Choose a reason for hiding this comment

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

formatted

),
}

type ExtensionsCollector struct {
Copy link

Choose a reason for hiding this comment

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

how about checking that struct implements interface?

Copy link
Author

Choose a reason for hiding this comment

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

added it

Copy link

@ritbl ritbl left a comment

Choose a reason for hiding this comment

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

pls see my questions

@ritbl ritbl temporarily deployed to CI May 8, 2023 12:49 — with GitHub Actions Inactive
@ritbl ritbl temporarily deployed to CI May 8, 2023 12:49 — with GitHub Actions Inactive
@ritbl ritbl temporarily deployed to CI May 8, 2023 12:49 — with GitHub Actions Inactive
@ritbl ritbl temporarily deployed to CI May 8, 2023 12:49 — with GitHub Actions Inactive
@ritbl ritbl temporarily deployed to CI May 8, 2023 12:49 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 8, 2023 13:05 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 8, 2023 13:05 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 8, 2023 13:05 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 8, 2023 13:05 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 8, 2023 13:05 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 8, 2023 13:08 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 8, 2023 13:08 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 8, 2023 13:08 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 8, 2023 13:08 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 8, 2023 13:08 — with GitHub Actions Inactive
@dliakhov dliakhov requested a review from ritbl May 8, 2023 13:22
@dliakhov dliakhov temporarily deployed to CI May 19, 2023 13:37 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 19, 2023 13:37 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 19, 2023 13:37 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 19, 2023 13:37 — with GitHub Actions Inactive
@dliakhov dliakhov temporarily deployed to CI May 19, 2023 13:37 — with GitHub Actions Inactive
@dliakhov dliakhov merged commit f92f0b3 into main May 19, 2023
@dliakhov dliakhov deleted the PMM-11984-add-collector-for-extensions-metrics branch May 19, 2023 13:42
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.

5 participants