Skip to content

Commit 64d6116

Browse files
committed
Integrate/Telegraf: Streamline tutorial
1 parent c7b771e commit 64d6116

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/integrate/telegraf/tutorial.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,28 @@ docker run --name=cratedb --rm -it --network=cratedb-demo \
2121
--env=CRATE_HEAP_SIZE=2g docker.io/crate -Cdiscovery.type=single-node
2222
```
2323

24-
Prepare shortcut for the CrateDB shell.
24+
Prepare shortcut for the CrateDB shell and the Telegraf command.
2525

2626
::::{tab-set}
2727

2828
:::{tab-item} Linux and macOS
2929
To make the settings persistent, add them to your shell profile (`~/.profile`).
3030
```shell
3131
alias crash="docker run --rm -it --network=cratedb-demo ghcr.io/crate/cratedb-toolkit crash"
32+
alias telegraf="docker run --rm --network=cratedb-demo docker.io/telegraf"
3233
```
3334
:::
3435
:::{tab-item} Windows PowerShell
3536
To make the settings persistent, add them to your PowerShell profile (`$PROFILE`).
3637
```powershell
3738
function crash { docker run --rm -it --network=cratedb-demo ghcr.io/crate/cratedb-toolkit crash @args }
39+
function telegraf { docker run --rm --network=cratedb-demo docker.io/telegraf @args }
3840
```
3941
:::
4042
:::{tab-item} Windows Command
4143
```shell
4244
doskey crash=docker run --rm -it --network=cratedb-demo ghcr.io/crate/cratedb-toolkit crash $*
45+
doskey telegraf=docker run --rm --network=cratedb-demo docker.io/telegraf $*
4346
```
4447
:::
4548

@@ -55,7 +58,7 @@ to limit input plugins so that Telegraf only collects readings about CPU usage
5558
on the local computer. To send the collected data to CrateDB, use
5659
`--output-filter cratedb`.
5760
```shell
58-
docker run --rm docker.io/telegraf \
61+
telegraf \
5962
--input-filter cpu \
6063
--output-filter cratedb \
6164
config > telegraf.conf

0 commit comments

Comments
 (0)