Skip to content

Commit

Permalink
Refactor Alloy component reference TOC to group by type (#1215) (#1246)
Browse files Browse the repository at this point in the history
Co-authored-by: Piotr Gwizdala <[email protected]>
(cherry picked from commit 1ae5fb2)
  • Loading branch information
clayton-cornell authored Jul 10, 2024
1 parent d1c4c18 commit 926837a
Show file tree
Hide file tree
Showing 155 changed files with 916 additions and 512 deletions.
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include docs.mk
docs: check-cloudwatch-integration

check-cloudwatch-integration:
$(PODMAN) run -v $(shell git rev-parse --show-toplevel):/repo -v $(shell pwd):/docs -w /repo golang:1.22.3-bullseye go run internal/static/integrations/cloudwatch_exporter/docs/doc.go check /docs/sources/reference/components/prometheus.exporter.cloudwatch.md
$(PODMAN) run -v $(shell git rev-parse --show-toplevel):/repo -v $(shell pwd):/docs -w /repo golang:1.22.3-bullseye go run internal/static/integrations/cloudwatch_exporter/docs/doc.go check /docs/sources/reference/components/prometheus/prometheus.exporter.cloudwatch.md

generate-cloudwatch-integration:
$(PODMAN) run -v $(shell git rev-parse --show-toplevel):/repo -v $(shell pwd):/docs -w /repo golang:1.22.3-bullseye go run internal/static/integrations/cloudwatch_exporter/docs/doc.go generate
330 changes: 165 additions & 165 deletions docs/sources/reference/compatibility/_index.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/sources/reference/components/_index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/
description: Learn about the components in Grafana Alloy
title: Components reference
title: Components
weight: 300
---

# Components reference
# Components

This section contains reference documentation for all recognized [components][].

{{< section >}}

[components]: ../../concepts/components/
[components]: ../../get-started/components/
12 changes: 12 additions & 0 deletions docs/sources/reference/components/beyla/_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/beyla/
description: Learn about the beyla components in Grafana Alloy
title: beyla
weight: 100
---

# beyla

This section contains reference documentation for the `beyla` components.

{{< section >}}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/beyla.ebpf/
canonical: https://grafana.com/docs/alloy/latest/reference/components/beyla/beyla.ebpf/
aliases:
- ../beyla.ebpf/ # /docs/alloy/latest/reference/components/beyla.ebpf/
description: Learn about beyla.ebpf
title: beyla.ebpf
---
Expand Down Expand Up @@ -262,21 +264,21 @@ Replace the following:
[discovery]: #discovery-block
[services]: #services-block
[output]: #output-block
[in-memory traffic]: ../../../concepts/component_controller#in-memory-traffic
[run command]: ../../cli/run/
[scrape]: ../prometheus.scrape/
[in-memory traffic]: ../../../../get-started/component_controller#in-memory-traffic
[run command]: ../../../cli/run/
[scrape]: ../../prometheus/prometheus.scrape/

<!-- START GENERATED COMPATIBLE COMPONENTS -->

## Compatible components

`beyla.ebpf` can accept arguments from the following components:

- Components that export [OpenTelemetry `otelcol.Consumer`](../../compatibility/#opentelemetry-otelcolconsumer-exporters)
- Components that export [OpenTelemetry `otelcol.Consumer`](../../../compatibility/#opentelemetry-otelcolconsumer-exporters)

`beyla.ebpf` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
12 changes: 12 additions & 0 deletions docs/sources/reference/components/discovery/_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/discovery/
description: Learn about the discovery components in Grafana Alloy
title: discovery
weight: 100
---

# discovery

This section contains reference documentation for the `discovery` components.

{{< section >}}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery.azure/
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.azure/
aliases:
- ../discovery.azure/ # /docs/alloy/latest/reference/components/discovery.azure/
description: Learn about discovery.azure
title: discovery.azure
---
Expand Down Expand Up @@ -156,7 +158,7 @@ Replace the following:

`discovery.azure` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery.consul/
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.consul/
aliases:
- ../discovery.consul/ # /docs/alloy/latest/reference/components/discovery.consul/
description: Learn about discovery.consul
title: discovery.consul
---
Expand Down Expand Up @@ -171,7 +173,7 @@ Replace the following:

`discovery.consul` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery.consulagent/
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.consulagent/
aliases:
- ../discovery.consulagent/ # /docs/alloy/latest/reference/components/discovery.consulagent/
description: Learn about discovery.consulagent
title: discovery.consulagent
---
Expand Down Expand Up @@ -132,7 +134,7 @@ Replace the following:

`discovery.consulagent` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery.digitalocean/
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.digitalocean/
aliases:
- ../discovery.digitalocean/ # /docs/alloy/latest/reference/components/discovery.digitalocean/
description: Learn about discovery.digitalocean
title: discovery.digitalocean
---
Expand Down Expand Up @@ -126,7 +128,7 @@ Replace the following:

`discovery.digitalocean` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery.dns/
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.dns/
aliases:
- ../discovery.dns/ # /docs/alloy/latest/reference/components/discovery.dns/
description: Learn about discovery.dns
title: discovery.dns
---
Expand Down Expand Up @@ -94,7 +96,7 @@ Replace the following:

`discovery.dns` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery.docker/
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.docker/
aliases:
- ../discovery.docker/ # /docs/alloy/latest/reference/components/discovery.docker/
description: Learn about discovery.docker
title: discovery.docker
---
Expand Down Expand Up @@ -212,7 +214,7 @@ Replace the following:

`discovery.docker` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery.dockerswarm/
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.dockerswarm/
aliases:
- ../discovery.dockerswarm/ # /docs/alloy/latest/reference/components/discovery.dockerswarm/
description: Learn about discovery.dockerswarm
title: discovery.dockerswarm
---
Expand Down Expand Up @@ -260,7 +262,7 @@ Replace the following:

`discovery.dockerswarm` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery.ec2/
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.ec2/
aliases:
- ../discovery.ec2/ # /docs/alloy/latest/reference/components/discovery.ec2/
description: Learn about discovery.ec2
title: discovery.ec2
---
Expand Down Expand Up @@ -177,7 +179,7 @@ Replace the following:

`discovery.ec2` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery.eureka/
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.eureka/
aliases:
- ../discovery.eureka/ # /docs/alloy/latest/reference/components/discovery.eureka/
description: Learn about discovery.eureka
title: discovery.eureka
---
Expand Down Expand Up @@ -159,7 +161,7 @@ Replace the following:

`discovery.eureka` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery.file/
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.file/
aliases:
- ../discovery.file/ # /docs/alloy/latest/reference/components/discovery.file/
description: Learn about discovery.file
title: discovery.file
---
Expand All @@ -11,7 +13,7 @@ In {{< param "PRODUCT_NAME" >}} `v0.35.0`, the `discovery.file` component was re

If you are trying to discover files on the local filesystem rather than scrape targets within a set of files, you should use [local.file_match][] instead.

[local.file_match]: ../local.file_match/
[local.file_match]: ../../local/local.file_match/
{{< /admonition >}}

`discovery.file` discovers targets from a set of files, similar to the [Prometheus file_sd_config](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#file_sd_config).
Expand Down Expand Up @@ -170,7 +172,7 @@ Replace the following:

`discovery.file` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery.gce/
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.gce/
aliases:
- ../discovery.gce/ # /docs/alloy/latest/reference/components/discovery.gce/
description: Learn about discovery.gce
title: discovery.gce
---
Expand Down Expand Up @@ -119,7 +121,7 @@ Replace the following:

`discovery.gce` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery.hetzner/
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.hetzner/
aliases:
- ../discovery.hetzner/ # /docs/alloy/latest/reference/components/discovery.hetzner/
description: Learn about discovery.hetzner
title: discovery.hetzner
---
Expand Down Expand Up @@ -183,7 +185,7 @@ Replace the following:

`discovery.hetzner` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery.http/
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.http/
aliases:
- ../discovery.http/ # /docs/alloy/latest/reference/components/discovery.http/
description: Learn about discovery.http
title: discovery.http
---
Expand Down Expand Up @@ -28,7 +30,7 @@ Example response body:

It is possible to use additional fields in the JSON to pass parameters to [prometheus.scrape][] such as the `metricsPath` and `scrape_interval`.

[prometheus.scrape]: ../prometheus.scrape/#technical-details
[prometheus.scrape]: ../../prometheus/prometheus.scrape/#technical-details

As an example, the following will provide a target with a custom `metricsPath`, scrape interval, and timeout value:

Expand Down Expand Up @@ -192,7 +194,7 @@ discovery.http "dynamic_targets" {

`discovery.http` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery.ionos/
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.ionos/
aliases:
- ../discovery.ionos/ # /docs/alloy/latest/reference/components/discovery.ionos/
description: Learn about discovery.ionos
title: discovery.ionos
---
Expand Down Expand Up @@ -158,7 +160,7 @@ Replace the following:

`discovery.ionos` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery.kubelet/
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.kubelet/
aliases:
- ../discovery.kubelet/ # /docs/alloy/latest/reference/components/discovery.kubelet/
description: Learn about discovery.kubelet
title: discovery.kubelet
---
Expand Down Expand Up @@ -214,7 +216,7 @@ Replace the following:

`discovery.kubelet` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery.kubernetes/
canonical: https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.kubernetes/
aliases:
- ../discovery.kubernetes/ # /docs/alloy/latest/reference/components/discovery.kubernetes/
description: Learn about discovery.kubernetes
title: discovery.kubernetes
---
Expand Down Expand Up @@ -446,7 +448,7 @@ Replace the following:

`discovery.kubernetes` has exports that can be consumed by the following components:

- Components that consume [Targets](../../compatibility/#targets-consumers)
- Components that consume [Targets](../../../compatibility/#targets-consumers)

{{< admonition type="note" >}}
Connecting some components may not be sensible or components may require further configuration to make the connection work correctly.
Expand Down
Loading

0 comments on commit 926837a

Please sign in to comment.