Skip to content

Conversation

@fridgepoet
Copy link
Contributor

@fridgepoet fridgepoet commented Mar 26, 2025

PR Description

This PR:

  • Adds scraping of performance_schema.setup_consumers to a new SetupConsumers collector
    • sets 1 for enabled
    • sets 0 for disabled
  • Sends enabled consumers metrics

Which issue(s) this PR fixes

Fixes https://github.com/grafana/grafana-dbo11y-app/issues/634

Notes to the Reviewer

Here's a silly panel visualizing the resulting metrics: (1 is enabled, 0 is disabled)

Screenshot 2025-04-25 at 09 49 55

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@github-actions
Copy link
Contributor

github-actions bot commented Mar 31, 2025

@fridgepoet fridgepoet changed the title database_observability: get enabled performance_schema.setup_consumers in connectionInfo collector database_observability: add collector to get enabled performance_schema.setup_consumers Mar 31, 2025
@fridgepoet fridgepoet marked this pull request as ready for review March 31, 2025 09:37
@clayton-cornell clayton-cornell added the type/docs Docs Squad label across all Grafana Labs repos label Mar 31, 2025
…ase_observability.mysql.md

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
@CLAassistant
Copy link

CLAassistant commented Apr 2, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@clayton-cornell clayton-cornell left a comment

Choose a reason for hiding this comment

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

Approving for docs.

@fridgepoet
Copy link
Contributor Author

Added a separate collect interval in the config (couldn't think of a very good name), please take a look.

…ase_observability.mysql.md

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
Copy link
Contributor

@matthewnolf matthewnolf left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@fridgepoet fridgepoet enabled auto-merge (squash) April 25, 2025 15:27
@fridgepoet fridgepoet merged commit 460b852 into main Apr 28, 2025
38 checks passed
@fridgepoet fridgepoet deleted the shirley/db-o11y-setup-consumers branch April 28, 2025 13:48
marctc pushed a commit that referenced this pull request May 7, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age type/docs Docs Squad label across all Grafana Labs repos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants