Skip to content

Configuration

OpenWatchIt is configured via a single TOML file. By default it is read from ~/.owit/config.toml.

[backends.production-loki]
plugin = "loki"
url = "https://loki.internal"
default = true
tags = ["prod", "logs"]
[backends.prometheus]
plugin = "prometheus"
url = "https://prometheus.internal"
default = true
tags = ["prod", "metrics"]
FieldRequiredDescription
pluginyesPlugin name to use for this backend
urlyesBase URL of the vendor API
defaultyesInclude in fan-out when no --backends flag is passed
tagsnoArbitrary strings for targeting with --tag

Sensitive values must be referenced as environment variables — never stored as plaintext.

[backends.datadog]
plugin = "datadog"
api_key = "$DD_API_KEY"
app_key = "$DD_APP_KEY"
site = "datadoghq.com"
default = true
tags = ["prod", "logs", "metrics", "traces"]

If a referenced environment variable is not set, owit will fail at startup with a clear error naming the missing variable.

Configure the inactivity timeout for plugin processes (default: 30s):

[plugins]
inactivity_timeout = "60s"

To connect to a shared owit server instead of running the engine locally:

server_url = "https://owit.internal:8080"

When server_url is set, the CLI acts as a thin client and all plugin management is handled by the server.