diff --git a/pkg/obsservice/README.md b/pkg/obsservice/README.md index e67e85f7e4af..d7b270562ed5 100644 --- a/pkg/obsservice/README.md +++ b/pkg/obsservice/README.md @@ -14,17 +14,24 @@ the future). Build with ```shell -go build ./pkg/obsservice/cmd/obsservice +./dev build obsservice ``` -or +which will include the DB Console UI served on the HTTP port. This adds the +`"--config=with_ui"` bazel flag that embeds the UI. + +You can also build without the UI using: ```shell ./dev build pkg/obsservice/cmd/obsservice ``` +which will produce a binary in `./bin/obsservice`. + ## Running +Assuming you're already running a local CRDB instance: + ```shell obsservice --http-addr=localhost:8081 --crdb-http-url=http://localhost:8080 --ui-cert=certs/cert.pem --ui-cert-key=certs/key.pem --ca-cert=certs/ca.crt ``` diff --git a/pkg/obsservice/cmd/obsservice/main.go b/pkg/obsservice/cmd/obsservice/main.go index da598f4d5b66..6ff49c7dc760 100644 --- a/pkg/obsservice/cmd/obsservice/main.go +++ b/pkg/obsservice/cmd/obsservice/main.go @@ -93,7 +93,7 @@ func main() { RootCmd.PersistentFlags().StringVar( &sinkPGURL, "sink-pgurl", - "postgresql://root@andrei-desktop:26257/defaultdb?sslmode=disable", + "postgresql://root@localhost:26257/defaultdb?sslmode=disable", "PGURL for the sink cluster.") if err := RootCmd.Execute(); err != nil {