@@ -20,7 +20,6 @@ It forwards this data as log entries to Loki receivers and exports targets for P
2020database_observability.mysql "<LABEL>" {
2121 data_source_name = <DATA_SOURCE_NAME>
2222 forward_to = [<LOKI_RECEIVERS>]
23- targets = "<TARGET_LIST>"
2423}
2524```
2625
@@ -32,7 +31,7 @@ You can use the following arguments with `database_observability.mysql`:
3231| --------------------------------------------| ----------------------| -----------------------------------------------------------------------------| ---------| ----------|
3332| ` data_source_name ` | ` secret ` | [ Data Source Name] [ ] for the MySQL server to connect to. | | yes |
3433| ` forward_to ` | ` list(LogsReceiver) ` | Where to forward log entries after processing. | | yes |
35- | ` targets ` | ` list(map(string)) ` | List of targets to scrape. | | yes |
34+ | ` targets ` | ` list(map(string)) ` | List of external targets to scrape. | | no |
3635| ` disable_collectors ` | ` list(string) ` | A list of collectors to disable from the default set. | | no |
3736| ` enable_collectors ` | ` list(string) ` | A list of collectors to enable on top of the default set. | | no |
3837| ` exclude_schemas ` | ` list(string) ` | A list of schemas to exclude from monitoring. | | no |
@@ -56,19 +55,20 @@ You can use the following blocks with `database_observability.mysql`:
5655
5756{{< docs/alloy-config >}}
5857
59- | Block | Description | Required |
60- | --------------------------------------| ---------------------------------------------------| ----------|
61- | [ ` cloud_provider ` ] [ cloud_provider ] | Provide Cloud Provider information. | no |
62- | ` cloud_provider ` > [ ` aws ` ] [ aws ] | Provide AWS database host information. | no |
63- | ` cloud_provider ` > [ ` azure ` ] [ azure ] | Provide Azure database host information. | no |
64- | [ ` setup_consumers ` ] [ setup_consumers ] | Configure the ` setup_consumers ` collector. | no |
65- | [ ` setup_actors ` ] [ setup_actors ] | Configure the ` setup_actors ` collector. | no |
66- | [ ` query_details ` ] [ query_details ] | Configure the queries collector. | no |
67- | [ ` schema_details ` ] [ schema_details ] | Configure the schema and table details collector. | no |
68- | [ ` explain_plans ` ] [ explain_plans ] | Configure the explain plans collector. | no |
69- | [ ` locks ` ] [ locks ] | Configure the locks collector. | no |
70- | [ ` query_samples ` ] [ query_samples ] | Configure the query samples collector. | no |
71- | [ ` health_check ` ] [ health_check ] | Configure the health check collector. | no |
58+ | Block | Description | Required |
59+ | --------------------------------------------------| ---------------------------------------------------| ----------|
60+ | [ ` cloud_provider ` ] [ cloud_provider ] | Provide Cloud Provider information. | no |
61+ | ` cloud_provider ` > [ ` aws ` ] [ aws ] | Provide AWS database host information. | no |
62+ | ` cloud_provider ` > [ ` azure ` ] [ azure ] | Provide Azure database host information. | no |
63+ | [ ` setup_consumers ` ] [ setup_consumers ] | Configure the ` setup_consumers ` collector. | no |
64+ | [ ` setup_actors ` ] [ setup_actors ] | Configure the ` setup_actors ` collector. | no |
65+ | [ ` query_details ` ] [ query_details ] | Configure the queries collector. | no |
66+ | [ ` schema_details ` ] [ schema_details ] | Configure the schema and table details collector. | no |
67+ | [ ` explain_plans ` ] [ explain_plans ] | Configure the explain plans collector. | no |
68+ | [ ` locks ` ] [ locks ] | Configure the locks collector. | no |
69+ | [ ` query_samples ` ] [ query_samples ] | Configure the query samples collector. | no |
70+ | [ ` health_check ` ] [ health_check ] | Configure the health check collector. | no |
71+ | [ ` prometheus_exporter ` ] [ prometheus_exporter ] | Configure the embedded mysqld_exporter. | no |
7272
7373[ cloud_provider ] : #cloud_provider
7474[ aws ] : #aws
@@ -81,6 +81,7 @@ You can use the following blocks with `database_observability.mysql`:
8181[ query_samples ] : #query_samples
8282[ setup_actors ] : #setup_actors
8383[ health_check ] : #health_check
84+ [ prometheus_exporter ] : #prometheus_exporter
8485
8586{{< /docs/alloy-config >}}
8687
@@ -166,12 +167,18 @@ The `azure` block supplies the identifying information for the database being mo
166167| ` collect_interval ` | ` duration ` | How frequently to check if ` setup_actors ` are configured correctly. | ` "1h" ` | no |
167168
168169
169- ### ` health_checks `
170+ ### ` health_check `
170171
171172| Name | Type | Description | Default | Required |
172173| -------------------------- | ---------- | ---------------------------------------------------------------------- | ------- | -------- |
173174| ` collect_interval ` | ` duration ` | How frequently to run health checks. | ` "1h" ` | no |
174175
176+ ### ` prometheus_exporter `
177+
178+ The ` prometheus_exporter ` block configures the embedded mysqld_exporter scrapers.
179+ The ` data_source_name ` is inherited from the parent block.
180+
181+ Refer to [ ` prometheus.exporter.mysql ` ] ( ../../prometheus/prometheus.exporter.mysql/ ) docs for the full list of supported arguments and sub-blocks.
175182
176183## Example
177184
0 commit comments