Skip to content

Commit 5dcfd59

Browse files
committed
Integrate/Telegraf: Implement suggestions by Kenneth
1 parent daa2d2e commit 5dcfd59

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/integrate/telegraf/tutorial.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,18 @@ The database connection URL is a `pgx/v4` connection string. Configure
6868
`table_create = true` to automatically let Telegraf create the metrics table
6969
if it doesn't exist.
7070
::::{tab-set}
71-
:::{tab-item} Linux and macOS
71+
:::{tab-item} Linux
7272
```shell
7373
sed -i 's!postgres://user:password@localhost/schema?sslmode=disable!postgres://crate@cratedb/doc?sslmode=disable!g' telegraf.conf
7474
sed -i 's!# table_create = false!table_create = true!' telegraf.conf
7575
```
7676
:::
77+
:::{tab-item} macOS and BSD
78+
```shell
79+
sed -i '' 's!postgres://user:password@localhost/schema?sslmode=disable!postgres://crate@cratedb/doc?sslmode=disable!g' telegraf.conf
80+
sed -i '' 's!# table_create = false!table_create = true!' telegraf.conf
81+
```
82+
:::
7783
:::{tab-item} Windows PowerShell
7884
```powershell
7985
(Get-Content telegraf.conf) -replace 'postgres://user:password@localhost/schema\?sslmode=disable','postgres://crate@cratedb/doc?sslmode=disable' |

0 commit comments

Comments
 (0)