Skip to content

Commit

Permalink
Update docs/shared shortcode usage to use keyword argument interface (
Browse files Browse the repository at this point in the history
#4921)

* Use updated version inference in all Agent docs

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Fix doc/shared lookup path

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
(cherry picked from commit 1e6dc88)
  • Loading branch information
jdbaldry authored and grafanabot committed Aug 31, 2023
1 parent a20b564 commit 5f36cce
Show file tree
Hide file tree
Showing 84 changed files with 212 additions and 212 deletions.
2 changes: 1 addition & 1 deletion docs/sources/flow/reference/components/discovery.azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Name | Type | Description | Default | Required

### tls_config block

{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down
10 changes: 5 additions & 5 deletions docs/sources/flow/reference/components/discovery.consul.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,19 @@ an `oauth2` block.

### basic_auth block

{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" version="<AGENT VERSION>" >}}

### authorization block

{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" version="<AGENT VERSION>" >}}

### oauth2 block

{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" version="<AGENT VERSION>" >}}

### tls_config block

{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down Expand Up @@ -160,4 +160,4 @@ prometheus.remote_write "demo" {
Replace the following:
- `PROMETHEUS_REMOTE_WRITE_URL`: The URL of the Prometheus remote_write-compatible server to send metrics to.
- `USERNAME`: The username to use for authentication to the remote_write API.
- `PASSWORD`: The password to use for authentication to the remote_write API.
- `PASSWORD`: The password to use for authentication to the remote_write API.
8 changes: 4 additions & 4 deletions docs/sources/flow/reference/components/discovery.docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,19 @@ documentation for the list of supported filters and their meaning.

### basic_auth block

{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" version="<AGENT VERSION>" >}}

### authorization block

{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" version="<AGENT VERSION>" >}}

### oauth2 block

{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" version="<AGENT VERSION>" >}}

### tls_config block

{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down
8 changes: 4 additions & 4 deletions docs/sources/flow/reference/components/discovery.eureka.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ an `oauth2` block.

### basic_auth block

{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" version="<AGENT VERSION>" >}}

### authorization block

{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" version="<AGENT VERSION>" >}}

### oauth2 block

{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" version="<AGENT VERSION>" >}}

### tls_config block

{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down
10 changes: 5 additions & 5 deletions docs/sources/flow/reference/components/discovery.hetzner.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@ an `oauth2` block.

### basic_auth block

{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" version="<AGENT VERSION>" >}}

### authorization block

{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" version="<AGENT VERSION>" >}}

### oauth2 block

{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" version="<AGENT VERSION>" >}}

### tls_config block

{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down Expand Up @@ -169,4 +169,4 @@ Replace the following:
- `HETZNER_ROLE`: The role of the entities that should be discovered.
- `PROMETHEUS_REMOTE_WRITE_URL`: The URL of the Prometheus remote_write-compatible server to send metrics to.
- `USERNAME`: The username to use for authentication to the remote_write API.
- `PASSWORD`: The password to use for authentication to the remote_write API.
- `PASSWORD`: The password to use for authentication to the remote_write API.
10 changes: 5 additions & 5 deletions docs/sources/flow/reference/components/discovery.http.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,19 @@ an `oauth2` block.

### basic_auth block

{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" version="<AGENT VERSION>" >}}

### authorization block

{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" version="<AGENT VERSION>" >}}

### oauth2 block

{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" version="<AGENT VERSION>" >}}

### tls_config block

{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down Expand Up @@ -112,4 +112,4 @@ discovery.http "dynamic_targets" {
url = "https://example.com/scrape_targets"
refresh_interval = "15s"
}
```
```
4 changes: 2 additions & 2 deletions docs/sources/flow/reference/components/discovery.kubelet.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ tls_config | [tls_config][] | Configure TLS settings for connecting to the endpo

### authorization block

{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" version="<AGENT VERSION>" >}}

### tls_config block

{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,19 +316,19 @@ Name | Type | Description | Default | Required

### basic_auth block

{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" version="<AGENT VERSION>" >}}

### authorization block

{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" version="<AGENT VERSION>" >}}

### oauth2 block

{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" version="<AGENT VERSION>" >}}

### tls_config block

{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down
10 changes: 5 additions & 5 deletions docs/sources/flow/reference/components/discovery.nomad.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ an `oauth2` block.

### basic_auth block

{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" version="<AGENT VERSION>" >}}

### authorization block

{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" version="<AGENT VERSION>" >}}

### oauth2 block

{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" version="<AGENT VERSION>" >}}

### tls_config block

{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down Expand Up @@ -141,4 +141,4 @@ prometheus.remote_write "demo" {
Replace the following:
- `PROMETHEUS_REMOTE_WRITE_URL`: The URL of the Prometheus remote_write-compatible server to send metrics to.
- `USERNAME`: The username to use for authentication to the remote_write API.
- `PASSWORD`: The password to use for authentication to the remote_write API.
- `PASSWORD`: The password to use for authentication to the remote_write API.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ tls_config | [tls_config][] | TLS configuration for requests to the OpenStack AP

### tls_config block

{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down
10 changes: 5 additions & 5 deletions docs/sources/flow/reference/components/discovery.puppetdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,19 @@ an `oauth2` block.

### basic_auth block

{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" version="<AGENT VERSION>" >}}

### authorization block

{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" version="<AGENT VERSION>" >}}

### oauth2 block

{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" version="<AGENT VERSION>" >}}

### tls_config block

{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down Expand Up @@ -149,4 +149,4 @@ prometheus.remote_write "demo" {
Replace the following:
- `PROMETHEUS_REMOTE_WRITE_URL`: The URL of the Prometheus remote_write-compatible server to send metrics to.
- `USERNAME`: The username to use for authentication to the remote_write API.
- `PASSWORD`: The password to use for authentication to the remote_write API.
- `PASSWORD`: The password to use for authentication to the remote_write API.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ rule | [rule][] | Relabeling rules to apply to targets. | no

### rule block

{{< docs/shared lookup="flow/reference/components/rule-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/rule-block.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down
2 changes: 1 addition & 1 deletion docs/sources/flow/reference/components/discovery.uyuni.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ tls_config | [tls_config][] | TLS configuration for requests to the Uyuni API. |

### tls_config block

{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down
2 changes: 1 addition & 1 deletion docs/sources/flow/reference/components/local.file.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Name | Type | Description | Default | Required

[secret]: {{< relref "../../config-language/expressions/types_and_values.md#secrets" >}}

{{< docs/shared lookup="flow/reference/components/local-file-arguments-text.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/local-file-arguments-text.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down
2 changes: 1 addition & 1 deletion docs/sources/flow/reference/components/loki.echo.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: loki.echo

# loki.echo

{{< docs/shared lookup="flow/stability/beta.md" source="agent" >}}
{{< docs/shared lookup="flow/stability/beta.md" source="agent" version="<AGENT VERSION>" >}}

`loki.echo` receives log entries from other `loki` components and prints them
to the process' standard output (stdout).
Expand Down
2 changes: 1 addition & 1 deletion docs/sources/flow/reference/components/loki.relabel.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ rule | [rule][] | Relabeling rules to apply to received log entries. | no

### rule block

{{< docs/shared lookup="flow/reference/components/rule-block-logs.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/rule-block-logs.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down
2 changes: 1 addition & 1 deletion docs/sources/flow/reference/components/loki.source.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ The following blocks are supported inside the definition of `loki.source.api`:

### http

{{< docs/shared lookup="flow/reference/components/loki-server-http.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/loki-server-http.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ The following blocks are supported inside the definition of `loki.source.awsfire

### http

{{< docs/shared lookup="flow/reference/components/loki-server-http.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/loki-server-http.md" source="agent" version="<AGENT VERSION>" >}}

### grpc

{{< docs/shared lookup="flow/reference/components/loki-server-grpc.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/loki-server-grpc.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down
4 changes: 2 additions & 2 deletions docs/sources/flow/reference/components/loki.source.gcplog.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ The `labels` map is applied to every entry that passes through the component.

### http

{{< docs/shared lookup="flow/reference/components/loki-server-http.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/loki-server-http.md" source="agent" version="<AGENT VERSION>" >}}

### grpc

{{< docs/shared lookup="flow/reference/components/loki-server-grpc.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/loki-server-grpc.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down
4 changes: 2 additions & 2 deletions docs/sources/flow/reference/components/loki.source.heroku.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ The following blocks are supported inside the definition of `loki.source.heroku`

### http

{{< docs/shared lookup="flow/reference/components/loki-server-http.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/loki-server-http.md" source="agent" version="<AGENT VERSION>" >}}

### grpc

{{< docs/shared lookup="flow/reference/components/loki-server-grpc.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/loki-server-grpc.md" source="agent" version="<AGENT VERSION>" >}}

## Labels

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ you must set the `tls_config` block. If `"sasl"` is used, you must set the `sasl

### tls_config block

{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" version="<AGENT VERSION>" >}}

### sasl_config block

Expand Down
10 changes: 5 additions & 5 deletions docs/sources/flow/reference/components/loki.source.kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: loki.source.kubernetes

# loki.source.kubernetes

{{< docs/shared lookup="flow/stability/experimental.md" source="agent" >}}
{{< docs/shared lookup="flow/stability/experimental.md" source="agent" version="<AGENT VERSION>" >}}

`loki.source.kubernetes` tails logs from Kubernetes containers using the
Kubernetes API. It has the following benefits over `loki.source.file`:
Expand Down Expand Up @@ -116,19 +116,19 @@ Name | Type | Description | Default | Required

### basic_auth block

{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/basic-auth-block.md" source="agent" version="<AGENT VERSION>" >}}

### authorization block

{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/authorization-block.md" source="agent" version="<AGENT VERSION>" >}}

### oauth2 block

{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/oauth2-block.md" source="agent" version="<AGENT VERSION>" >}}

### tls_config block

{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" >}}
{{< docs/shared lookup="flow/reference/components/tls-config-block.md" source="agent" version="<AGENT VERSION>" >}}

## Exported fields

Expand Down
Loading

0 comments on commit 5f36cce

Please sign in to comment.