Skip to content

Commit

Permalink
Replace all docs/reference use with ref URIs
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Baldry <[email protected]>
  • Loading branch information
jdbaldry committed Apr 30, 2024
1 parent 26265b7 commit 089da26
Show file tree
Hide file tree
Showing 18 changed files with 299 additions and 183 deletions.
39 changes: 24 additions & 15 deletions docs/sources/data-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,25 @@ menuTitle: Data collection
title: Grafana Agent data collection
description: Grafana Agent data collection
weight: 500
refs:
static:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT_VERSION>/static/
flow:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT_VERSION>/flow/
- pattern: /docs/grafana-cloud/
destination: /docs/agent/<AGENT_VERSION>/flow/
command-line-flag:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT_VERSION>/flow/reference/cli/run/
- pattern: /docs/grafana-cloud/
destination: /docs/agent/<AGENT_VERSION>/flow/reference/cli/run/
components:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT_VERSION>/flow/concepts/components/
- pattern: /docs/grafana-cloud/
destination: /docs/agent/<AGENT_VERSION>/flow/reference/cli/run/
---

# Data collection
Expand All @@ -26,23 +45,13 @@ The usage information includes the following details:
* Version of running Grafana Agent.
* Operating system Grafana Agent is running on.
* System architecture Grafana Agent is running on.
* List of enabled feature flags ([Static] mode only).
* List of enabled integrations ([Static] mode only).
* List of enabled [components][] ([Flow] mode only).
* List of enabled feature flags [Static](ref:static) mode only).
* List of enabled integrations [Static](ref:static) mode only).
* List of enabled [components](ref:components) [Flow](ref:flow) mode only).

This list may change over time. All newly reported data is documented in the CHANGELOG.

## Opt-out of data collection

You can use the `-disable-reporting` [command line flag][] to disable the reporting and opt-out of the data collection.

{{% docs/reference %}}
[command line flag]: "/docs/agent/ -> /docs/agent/<AGENT_VERSION>/flow/reference/cli/run.md"
[command line flag]: "/docs/grafana-cloud/ -> /docs/agent/<AGENT_VERSION>/flow/reference/cli/run.md"
[components]: "/docs/agent/ -> /docs/agent/<AGENT_VERSION>/flow/concepts/components.md"
[components]: "/docs/grafana-cloud/ -> /docs/agent/<AGENT_VERSION>/flow/reference/cli/run.md"
[Static]: "/docs/agent/ -> /docs/agent/<AGENT_VERSION>/static"
[Static]: "/docs/grafana-cloud/ -> /docs/grafana-cloud/monitor-infrastructure/agent/static
[Flow]: "/docs/agent/ -> /docs/agent/<AGENT_VERSION>/flow"
[Flow]: "/docs/grafana-cloud/ -> /docs/agent/<AGENT_VERSION>/flow"
{{% /docs/reference %}}
You can use the `-disable-reporting` [command line flag](ref:command-line-flag) to disable the reporting and opt-out of the data collection.

12 changes: 7 additions & 5 deletions docs/sources/flow/setup/install/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ menuTitle: Install flow mode
title: Install Grafana Agent in flow mode
description: Learn how to install Grafana Agent in flow mode
weight: 50
refs:
data-collection:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT_VERSION>/data-collection/
- pattern: /docs/grafana-cloud/
destination: /docs/grafana-cloud/monitor-infrastructure/agent/data-collection/
---

# Install Grafana Agent in flow mode
Expand All @@ -27,10 +33,6 @@ Installing Grafana Agent on other operating systems is possible, but is not reco

## Data collection

By default, Grafana Agent sends anonymous usage information to Grafana Labs. Refer to [data collection][] for more information
By default, Grafana Agent sends anonymous usage information to Grafana Labs. Refer to [data collection](ref:data-collection) for more information
about what data is collected and how you can opt-out.

{{% docs/reference %}}
[data collection]: "/docs/agent/ -> /docs/agent/<AGENT_VERSION>/data-collection.md"
[data collection]: "/docs/grafana-cloud/ -> /docs/grafana-cloud/monitor-infrastructure/agent/data-collection.md"
{{% /docs/reference %}}
30 changes: 19 additions & 11 deletions docs/sources/static/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ canonical: https://grafana.com/docs/agent/latest/static/
title: Static mode
description: Learn about Grafana Agent in static mode
weight: 200
refs:
install:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/set-up/install/
- pattern: /docs/grafana-cloud/
destination: ./set-up/install/
set-up:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/set-up/
- pattern: /docs/grafana-cloud/
destination: ./set-up/
configure:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/configuration/
- pattern: /docs/grafana-cloud/
destination: ./configuration/
---

# Static mode
Expand All @@ -20,7 +36,7 @@ Static mode is composed of different _subsystems_:
traces and forwarding them to Grafana Tempo or any OpenTelemetry-compatible
endpoint.

Static mode is [configured][configure] with a YAML file.
Static mode is [configured](ref:configure) with a YAML file.

Static mode works with:

Expand All @@ -31,7 +47,7 @@ Static mode works with:
This topic helps you to think about what you're trying to accomplish and how to
use Grafana Agent to meet your goals.

You can [set up][] and [configure][] Grafana Agent in static mode manually, or
You can [set up](ref:set-up) and [configure](ref:configure) Grafana Agent in static mode manually, or
you can follow the common workflows described in this topic.

## Topics
Expand Down Expand Up @@ -64,7 +80,7 @@ Grafana Cloud integration workflows and the Kubernetes Monitoring solution are t

| Topic | Description |
|---|---|
| [Install or uninstall Grafana Agent][install] | Install or uninstall Grafana Agent. |
| [Install or uninstall Grafana Agent](ref:install) | Install or uninstall Grafana Agent. |
| [Troubleshoot Cloud Integrations installation on Linux](/docs/grafana-cloud/monitor-infrastructure/integrations/install-troubleshoot-linux/) | Troubleshoot common errors when executing the Grafana Agent installation script on Linux. |
| [Troubleshoot Cloud Integrations installation on Mac](/docs/grafana-cloud/monitor-infrastructure/integrations/install-troubleshoot-mac/) | Troubleshoot common errors when executing the Grafana Agent installation script on Mac. |
| [Troubleshoot Cloud Integrations installation on Windows](/docs/grafana-cloud/monitor-infrastructure/integrations/install-troubleshooting-windows/) | Troubleshoot common errors when executing the Grafana Agent installation script on Windows. |
Expand All @@ -84,11 +100,3 @@ Logs are included when you [set up a Cloud integration](/docs/grafana-cloud/data
| [Set up and use tracing](/docs/grafana-cloud/data-configuration/traces/set-up-and-use-tempo/) | Install Grafana Agent to collect traces for use with Grafana Tempo, included with your [Grafana Cloud account](/docs/grafana-cloud/account-management/cloud-portal/). |
| [Use Grafana Agent as a tracing pipeline](/docs/tempo/latest/configuration/grafana-agent/) | Grafana Agent can be configured to run a set of tracing pipelines to collect data from your applications and write it to Grafana Tempo. Pipelines are built using OpenTelemetry, and consist of receivers, processors, and exporters. |

{{% docs/reference %}}
[set up]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/set-up"
[set up]: "/docs/grafana-cloud/ -> ./set-up"
[configure]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/configuration"
[configure]: "/docs/grafana-cloud/ -> ./configuration"
[install]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/set-up/install"
[install]: "/docs/grafana-cloud/ -> ./set-up/install"
{{% /docs/reference %}}
28 changes: 17 additions & 11 deletions docs/sources/static/api/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ title: Static mode APIs (Stable)
menuTitle: Static mode API
description: Learn about the Grafana Agent static mode API
weight: 400
refs:
integrations:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/configuration/integrations/integrations-next/
- pattern: /docs/grafana-cloud/
destination: ../configuration/integrations/integrations-next/
scrape:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/configuration/scraping-service/
metrics:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/configuration/metrics-config/
- pattern: /docs/grafana-cloud/
destination: ../configuration/metrics-config/
---

# Static mode APIs (Stable)
Expand All @@ -21,7 +35,7 @@ API endpoints are stable unless otherwise noted.

## Config management API (Beta)

Grafana Agent exposes a config management REST API for managing instance configurations when it is running in [scraping service mode][scrape].
Grafana Agent exposes a config management REST API for managing instance configurations when it is running in [scraping service mode](ref:scrape).

{{% admonition type="note" %}}
The scraping service mode is a requirement for the config management
Expand Down Expand Up @@ -120,7 +134,7 @@ with the same name already exists, then it will be completely overwritten.
URL-encoded names are stored in decoded form. e.g., `hello%2Fworld` will
represent the config named `hello/world`.

The request body passed to this endpoint must match the format of [metrics_instance_config][metrics]
The request body passed to this endpoint must match the format of [metrics_instance_config](ref:metrics)
defined in the Configuration Reference. The name field of the configuration is
ignored and the name in the URL takes precedence. The request body must be
formatted as YAML.
Expand Down Expand Up @@ -407,7 +421,7 @@ A support bundle contains the following data:
## Integrations API (Experimental)

> **WARNING**: This API is currently only available when the experimental
> [integrations revamp][integrations]
> [integrations revamp](ref:integrations)
> is enabled. Both the revamp and this API are subject to change while they
> are still experimental.
Expand Down Expand Up @@ -519,11 +533,3 @@ Response:
Agent is Healthy.
```

{{% docs/reference %}}
[scrape]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/configuration/scraping-service"
[scrape]: "/docs/grafana-cloud/ -> ../configuration/scraping-service
[metrics]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/configuration/metrics-config"
[metrics]: "/docs/grafana-cloud/ -> ../configuration/metrics-config"
[integrations]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/configuration/integrations/integrations-next"
[integrations]: "/docs/grafana-cloud/ -> ../configuration/integrations/integrations-next"
{{% /docs/reference %}}
66 changes: 43 additions & 23 deletions docs/sources/static/configuration/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,62 @@ canonical: https://grafana.com/docs/agent/latest/static/configuration/
title: Configure static mode
description: Learn how to configure Grafana Agent in static mode
weight: 300
refs:
server:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/configuration/server-config/
- pattern: /docs/grafana-cloud/
destination: ./server-config/
traces:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/configuration/traces-config/
- pattern: /docs/grafana-cloud/
destination: ./traces-config/
logs:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/configuration/logs-config/
- pattern: /docs/grafana-cloud/
destination: ./logs-config/
metrics:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/configuration/metrics-config/
- pattern: /docs/grafana-cloud/
destination: ./metrics-config/
api:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/api/#reload-configuration-file-beta
- pattern: /docs/grafana-cloud/
destination: ../api/#reload-configuration-file-beta
integrations:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/configuration/integrations/
- pattern: /docs/grafana-cloud/
destination: ./integrations/
flags:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/configuration/flags/
- pattern: /docs/grafana-cloud/
destination: ./flags/
---

# Configure static mode

The configuration of static mode is split across two places:

* A YAML file
* [Command-line flags][flags]
* [Command-line flags](ref:flags)

The YAML file is used to configure settings which are dynamic and can be
changed at runtime. The command-line flags then configure things which cannot
change at runtime, such as the listen port for the HTTP server.

This file describes the YAML configuration, which is usually in a file named `config.yaml`.

- [server_config][server]
- [metrics_config][metrics]
- [logs_config][logs]
- [traces_config][traces]
- [integrations_config][integrations]
- [server_config](ref:server)
- [metrics_config](ref:metrics)
- [logs_config](ref:logs)
- [traces_config](ref:traces)
- [integrations_config](ref:integrations)

The configuration of Grafana Agent is "stable," but subject to breaking changes
as individual features change. Breaking changes to configuration will be
Expand Down Expand Up @@ -77,7 +113,7 @@ which may be slightly unexpected.

## Reloading (beta)

The configuration file can be reloaded at runtime. Read the [API documentation][api] for more information.
The configuration file can be reloaded at runtime. Read the [API documentation](ref:api) for more information.

This functionality is in beta, and may have issues. Please open GitHub issues
for any problems you encounter.
Expand Down Expand Up @@ -139,19 +175,3 @@ The following flags will configure basic auth for requests made to HTTP/S remote
This beta feature is subject to change in future releases.
{{% /admonition %}}

{{% docs/reference %}}
[flags]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/configuration/flags"
[flags]: "/docs/grafana-cloud/ -> ./flags"
[server]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/configuration/server-config"
[server]: "/docs/grafana-cloud/ -> ./server-config"
[metrics]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/configuration/metrics-config"
[metrics]: "/docs/grafana-cloud/ -> ./metrics-config"
[logs]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/configuration/logs-config"
[logs]: "/docs/grafana-cloud/ -> ./logs-config"
[traces]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/configuration/traces-config"
[traces]: "/docs/grafana-cloud/ -> ./traces-config"
[integrations]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/configuration/integrations"
[integrations]: "/docs/grafana-cloud/ -> ./integrations"
[api]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/api#reload-configuration-file-beta"
[api]: "/docs/grafana-cloud/ -> ../api#reload-configuration-file-beta"
{{% /docs/reference %}}
14 changes: 8 additions & 6 deletions docs/sources/static/configuration/create-config-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ canonical: https://grafana.com/docs/agent/latest/static/configuration/create-con
title: Create a configuration file
description: Learn how to create a configuration file
weight: 50
refs:
configure:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/configuration/
- pattern: /docs/grafana-cloud/
destination: ./configuration/
---

# Create a configuration file
Expand Down Expand Up @@ -62,7 +68,7 @@ the Grafana Agent is running on. This label helps to uniquely identify the
source of metrics if you are running multiple Grafana Agents across multiple
machines.

Full configuration options can be found in the [configuration reference][configure].
Full configuration options can be found in the [configuration reference](ref:configure).

## Prometheus config/migrating from Prometheus

Expand Down Expand Up @@ -107,7 +113,7 @@ metrics:
```

Like with integrations, full configuration options can be found in the
[configuration][configure].
[configuration](ref:configure).

## Loki Config/Migrating from Promtail

Expand Down Expand Up @@ -184,7 +190,3 @@ integrations:
enabled: true
```

{{% docs/reference %}}
[configure]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/configuration"
[configure]: "/docs/grafana-cloud/ -> ./configuration"
{{% /docs/reference %}}
30 changes: 19 additions & 11 deletions docs/sources/static/configuration/flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ canonical: https://grafana.com/docs/agent/latest/static/configuration/flags/
title: Command-line flags
description: Learn about command-line flags
weight: 100
refs:
retrieving:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/configuration/#remote-configuration-experimental
- pattern: /docs/grafana-cloud/
destination: ./configuration/#remote-configuration-experimental
management:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/configuration/agent-management/
- pattern: /docs/grafana-cloud/
destination: ./agent-management/
revamp:
- pattern: /docs/agent/
destination: /docs/agent/<AGENT VERSION>/static/configuration/integrations/integrations-next/
- pattern: /docs/grafana-cloud/
destination: ./integrations/integrations-next/
---

# Command-line flags
Expand All @@ -31,10 +47,10 @@ names to enable.

Valid feature names are:

* `remote-configs`: Enable [retrieving][retrieving] config files over HTTP/HTTPS
* `integrations-next`: Enable [revamp][revamp] of the integrations subsystem
* `remote-configs`: Enable [retrieving](ref:retrieving) config files over HTTP/HTTPS
* `integrations-next`: Enable [revamp](ref:revamp) of the integrations subsystem
* `extra-scrape-metrics`: When enabled, additional time series are exposed for each metrics instance scrape. See [Extra scrape metrics](https://prometheus.io/docs/prometheus/2.45/feature_flags/#extra-scrape-metrics).
* `agent-management`: Enable support for [agent management][management].
* `agent-management`: Enable support for [agent management](ref:management).

## Report information usage

Expand Down Expand Up @@ -144,11 +160,3 @@ YAML configuration when the `-server.http.tls-enabled` flag is used.

* `-metrics.wal-directory`: Directory to store the metrics Write-Ahead Log in

{{% docs/reference %}}
[retrieving]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/configuration#remote-configuration-experimental"
[retrieving]: "/docs/grafana-cloud/ -> ./configuration#remote-configuration-experimental"
[revamp]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/configuration/integrations/integrations-next/"
[revamp]: "/docs/grafana-cloud/ -> ./integrations/integrations-next/"
[management]: "/docs/agent/ -> /docs/agent/<AGENT VERSION>/static/configuration/agent-management"
[management]: "/docs/grafana-cloud/ -> ./agent-management"
{{% /docs/reference %}}
Loading

0 comments on commit 089da26

Please sign in to comment.