diff --git a/docs/sources/reference/compatibility/_index.md b/docs/sources/reference/compatibility/_index.md index 11e0d5dc5c..e05b9a5cfc 100644 --- a/docs/sources/reference/compatibility/_index.md +++ b/docs/sources/reference/compatibility/_index.md @@ -43,6 +43,10 @@ The following components, grouped by namespace, _export_ Targets. - [beyla.ebpf](../components/beyla/beyla.ebpf) {{< /collapse >}} +{{< collapse title="database_observability" >}} +- [database_observability.mysql](../components/database_observability/database_observability.mysql) +{{< /collapse >}} + {{< collapse title="discovery" >}} - [discovery.azure](../components/discovery/discovery.azure) - [discovery.consul](../components/discovery/discovery.consul) @@ -77,10 +81,6 @@ The following components, grouped by namespace, _export_ Targets. - [discovery.uyuni](../components/discovery/discovery.uyuni) {{< /collapse >}} -{{< collapse title="grafanacloud" >}} -- [grafanacloud.database_observability.mysql](../components/grafanacloud/grafanacloud.database_observability.mysql) -{{< /collapse >}} - {{< collapse title="local" >}} - [local.file_match](../components/local/local.file_match) {{< /collapse >}} @@ -240,12 +240,12 @@ The following components, grouped by namespace, _consume_ Loki `LogsReceiver`. -{{< collapse title="faro" >}} -- [faro.receiver](../components/faro/faro.receiver) +{{< collapse title="database_observability" >}} +- [database_observability.mysql](../components/database_observability/database_observability.mysql) {{< /collapse >}} -{{< collapse title="grafanacloud" >}} -- [grafanacloud.database_observability.mysql](../components/grafanacloud/grafanacloud.database_observability.mysql) +{{< collapse title="faro" >}} +- [faro.receiver](../components/faro/faro.receiver) {{< /collapse >}} {{< collapse title="loki" >}} diff --git a/docs/sources/reference/components/database_observability/_index.md b/docs/sources/reference/components/database_observability/_index.md new file mode 100644 index 0000000000..1358f972a0 --- /dev/null +++ b/docs/sources/reference/components/database_observability/_index.md @@ -0,0 +1,12 @@ +--- +canonical: https://grafana.com/docs/alloy/latest/reference/components/database_observability/ +description: Learn about the database_observability components in Grafana Alloy +title: database_observability +weight: 100 +--- + +# database_observability + +This section contains reference documentation for the `database_observability` components. + +{{< section >}} diff --git a/docs/sources/reference/components/grafanacloud/grafanacloud.database_observability.mysql.md b/docs/sources/reference/components/database_observability/database_observability.mysql.md similarity index 75% rename from docs/sources/reference/components/grafanacloud/grafanacloud.database_observability.mysql.md rename to docs/sources/reference/components/database_observability/database_observability.mysql.md index da20e03396..4360315bb7 100644 --- a/docs/sources/reference/components/grafanacloud/grafanacloud.database_observability.mysql.md +++ b/docs/sources/reference/components/database_observability/database_observability.mysql.md @@ -1,7 +1,7 @@ --- -canonical: https://grafana.com/docs/alloy/latest/reference/components/grafanacloud.database_observability.mysql/ -description: Learn about grafanacloud.database_observability.mysql -title: grafanacloud.database_observability.mysql +canonical: https://grafana.com/docs/alloy/latest/reference/components/database_observability.mysql/ +description: Learn about database_observability.mysql +title: database_observability.mysql --- Database Observability component. This component is under active development and can be run with Alloy flag `--stability.level=experimental`. @@ -9,13 +9,13 @@ Database Observability component. This component is under active development and ## Example ```alloy -grafanacloud.database_observability.mysql "orders_db" { +database_observability.mysql "orders_db" { data_source_name = "user:pass@mysql:3306/" forward_to = [loki.write.logs_service.receiver] } prometheus.scrape "orders_db" { - targets = grafanacloud.database_observability.mysql.orders_db.targets + targets = database_observability.mysql.orders_db.targets honor_labels = true // required to keep job and instance labels forward_to = [prometheus.remote_write.metrics_service.receiver] } @@ -45,11 +45,11 @@ loki.write "logs_service" { ## Compatible components -`grafanacloud.database_observability.mysql` can accept arguments from the following components: +`database_observability.mysql` can accept arguments from the following components: - Components that export [Loki `LogsReceiver`](../../../compatibility/#loki-logsreceiver-exporters) -`grafanacloud.database_observability.mysql` has exports that can be consumed by the following components: +`database_observability.mysql` has exports that can be consumed by the following components: - Components that consume [Targets](../../../compatibility/#targets-consumers) diff --git a/docs/sources/reference/components/grafanacloud/_index.md b/docs/sources/reference/components/grafanacloud/_index.md deleted file mode 100644 index 9567a82491..0000000000 --- a/docs/sources/reference/components/grafanacloud/_index.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -canonical: https://grafana.com/docs/alloy/latest/reference/components/grafanacloud/ -description: Learn about the grafanacloud components in Grafana Alloy -title: grafanacloud -weight: 100 ---- - -# grafanacloud.database_observability - -This section contains reference documentation for the `grafanacloud` components. - -{{< section >}} diff --git a/internal/component/all/all.go b/internal/component/all/all.go index abd3d782ce..e1f225a582 100644 --- a/internal/component/all/all.go +++ b/internal/component/all/all.go @@ -3,7 +3,7 @@ package all import ( _ "github.com/grafana/alloy/internal/component/beyla/ebpf" // Import beyla.ebpf - _ "github.com/grafana/alloy/internal/component/database_observability/mysql" // Import grafanacloud.database_observability.mysql + _ "github.com/grafana/alloy/internal/component/database_observability/mysql" // Import database_observability.mysql _ "github.com/grafana/alloy/internal/component/discovery/aws" // Import discovery.aws.ec2 and discovery.aws.lightsail _ "github.com/grafana/alloy/internal/component/discovery/azure" // Import discovery.azure _ "github.com/grafana/alloy/internal/component/discovery/consul" // Import discovery.consul diff --git a/internal/component/database_observability/mysql/component.go b/internal/component/database_observability/mysql/component.go index 93d9867186..2bebfd5b9e 100644 --- a/internal/component/database_observability/mysql/component.go +++ b/internal/component/database_observability/mysql/component.go @@ -26,7 +26,7 @@ import ( "github.com/grafana/alloy/syntax/alloytypes" ) -const name = "grafanacloud.database_observability.mysql" +const name = "database_observability.mysql" func init() { component.Register(component.Registration{