-
Notifications
You must be signed in to change notification settings - Fork 250
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
database_observability: make collectors configurable #2530
base: main
Are you sure you want to change the base?
Conversation
💻 Deploy preview available: https://deploy-preview-alloy-2530-zb444pucvq-vp.a.run.app/docs/alloy/latest/ |
`forward_to` | `list(LogsReceiver)` | Where to forward log entries after processing. | | yes | ||
`collect_interval` | `duration` | How frequently to collect information from database. | `"10s"` | no | ||
`query_samples_enabled` | `bool` | Whether to enable collection of query samples. | `true` | no | ||
Name | Type | Description | Default | Required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat preview feature. See changes here https://deploy-preview-alloy-2530-zb444pucvq-vp.a.run.app/docs/alloy/latest/reference/components/database_observability/database_observability.mysql/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, will merge once @clayton-cornell reviews.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
|
||
[collectors]: #supported-collectors | ||
|
||
## Blocks | ||
|
||
The `database_observability.mysql` component doesn't support any blocks. You can configure this component with arguments. | ||
|
||
### Supported Collectors | ||
|
||
The full list of supported collectors is: | ||
|
||
| Name | Description | Enabled by default | | ||
|--------------|-------------------------------------------------------|--------------------| | ||
| query_sample | Collect query samples. | yes | | ||
| schema_table | Collect schemas and tables from `information_schema`. | yes | | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[collectors]: #supported-collectors | |
## Blocks | |
The `database_observability.mysql` component doesn't support any blocks. You can configure this component with arguments. | |
### Supported Collectors | |
The full list of supported collectors is: | |
| Name | Description | Enabled by default | | |
|--------------|-------------------------------------------------------|--------------------| | |
| query_sample | Collect query samples. | yes | | |
| schema_table | Collect schemas and tables from `information_schema`. | yes | | |
The following collectors are enabled by default: | |
* `query_sample`: Collect query samples. | |
* `schema_table`: Collect schemas and tables from `information_schema`. | |
[collectors]: #supported-collectors | |
## Blocks | |
The `database_observability.mysql` component doesn't support any blocks. You can configure this component with arguments. | |
This info is probably better as a bullet list, and should be below the Args table, not a child of Blocks
.
PR Description
This enables users to select which components they want to run in the database observability component, similar to how mysqld_exporter works.
Which issue(s) this PR fixes
Fixes https://github.com/grafana/grafana-dbo11y-app/issues/370
Notes to the Reviewer
PR Checklist