Skip to content

Commit

Permalink
update config section in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Thaumy committed Dec 12, 2024
1 parent 33ff483 commit eee79c9
Showing 1 changed file with 3 additions and 32 deletions.
35 changes: 3 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,38 +59,9 @@ and to collect performance data in a reliable, low-overhead, and elegant way.

## Config

Psh default config located `/etc/psh/config.toml`.

```toml
[auth]
token = ""

[component]
path = "path/to/component.wasm"
args = ["arg1", "arg2", "arg3"]

[daemon] # when run as SysV daemon
pid_file = "/tmp/psh.pid"
stdout_file = "/tmp/psh.stdout"
stderr_file = "/tmp/psh.stderr"
working_directory = "/"

[remote]
enable = true

[remote.rpc]
endpoint = "http://rpc.optimatist.com"
duration = 1
instance_id_file = "/etc/psh/instance.id"

[remote.otlp]
endpoint = "http://otel-col.optimatist.com"
protocol = "Grpc"

[remote.otlp.timeout]
secs = 3
nanos = 0
```
The default config is located in `/etc/psh/config.toml`.

See [config template](./doc/config.toml)

## Contribution Guide

Expand Down

0 comments on commit eee79c9

Please sign in to comment.