Skip to content

Commit

Permalink
rename component
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiangreco committed Nov 25, 2024
1 parent bf11ac8 commit 084baff
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 29 deletions.
16 changes: 8 additions & 8 deletions docs/sources/reference/compatibility/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 >}}
Expand Down Expand Up @@ -240,12 +240,12 @@ The following components, grouped by namespace, _consume_ Loki `LogsReceiver`.

<!-- START GENERATED SECTION: CONSUMERS OF 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" >}}
Expand Down
12 changes: 12 additions & 0 deletions docs/sources/reference/components/database_observability/_index.md
Original file line number Diff line number Diff line change
@@ -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 >}}
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
---
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`.

## 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]
}
Expand Down Expand Up @@ -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)

Expand Down
12 changes: 0 additions & 12 deletions docs/sources/reference/components/grafanacloud/_index.md

This file was deleted.

2 changes: 1 addition & 1 deletion internal/component/all/all.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 084baff

Please sign in to comment.