Skip to content

Commit

Permalink
Update migrating-from-static.md (#5514)
Browse files Browse the repository at this point in the history
Updating the commands from `AGENT_MODE=flow;` to `AGENT_MODE=flow` as the semi-colon causes an error. 
See more information about the error in this issue: #5436

Co-authored-by: Clayton Cornell <[email protected]>
  • Loading branch information
annelaurefroment and clayton-cornell authored Oct 17, 2023
1 parent ff2a51d commit 549dc33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/sources/flow/getting-started/migrating-from-static.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ features available in Grafana Agent Flow mode.
1. Open a terminal window and run the following command:

```bash
AGENT_MODE=flow; grafana-agent convert --source-format=static --output=OUTPUT_CONFIG_PATH INPUT_CONFIG_PATH
AGENT_MODE=flow grafana-agent convert --source-format=static --output=OUTPUT_CONFIG_PATH INPUT_CONFIG_PATH
```

Replace the following:
Expand All @@ -83,13 +83,13 @@ features available in Grafana Agent Flow mode.
{{% admonition type="caution" %}}If you bypass the errors, the behavior of the converted configuration may not match the original [Static] mode configuration. Make sure you fully test the converted configuration before using it in a production environment.{{% /admonition %}}

```bash
AGENT_MODE=flow; grafana-agent convert --source-format=static --bypass-errors --output=OUTPUT_CONFIG_PATH INPUT_CONFIG_PATH
AGENT_MODE=flow grafana-agent convert --source-format=static --bypass-errors --output=OUTPUT_CONFIG_PATH INPUT_CONFIG_PATH
```

1. You can use the `--report` flag to output a diagnostic report.

```bash
AGENT_MODE=flow; grafana-agent convert --source-format=static --report=OUTPUT_REPORT_PATH --output=OUTPUT_CONFIG_PATH INPUT_CONFIG_PATH
AGENT_MODE=flow grafana-agent convert --source-format=static --report=OUTPUT_REPORT_PATH --output=OUTPUT_CONFIG_PATH INPUT_CONFIG_PATH
```

* Replace `OUTPUT_REPORT_PATH` with the output path for the report.
Expand Down Expand Up @@ -199,7 +199,7 @@ The convert command takes the YAML file as input and outputs a [River][] file.
[River]: {{< relref "../config-language/_index.md" >}}

```bash
AGENT_MODE=flow; grafana-agent convert --source-format=static --output=OUTPUT_CONFIG_PATH INPUT_CONFIG_PATH
AGENT_MODE=flow grafana-agent convert --source-format=static --output=OUTPUT_CONFIG_PATH INPUT_CONFIG_PATH
```

The new Flow mode configuration file looks like this:
Expand Down

0 comments on commit 549dc33

Please sign in to comment.