-
Notifications
You must be signed in to change notification settings - Fork 9
Console
Alisha Mohanty edited this page May 29, 2024
·
9 revisions
Goose console is a web interface that provides visual representation and control over its job management features.
Currently console supports display of job stats and tweaking enqueued jobs for both brokers.
![image](https://private-user-images.githubusercontent.com/36623306/334689473-422a564f-d5e8-4d9d-969f-9e2faf503e44.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA0NTM0NjEsIm5iZiI6MTcyMDQ1MzE2MSwicGF0aCI6Ii8zNjYyMzMwNi8zMzQ2ODk0NzMtNDIyYTU2NGYtZDVlOC00ZDlkLTk2OWYtOWUyZmFmNTAzZTQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA4VDE1MzkyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJhZDFkNDE0NTNhNTRkMjE3YzBiNDBiNGRmYzI0NzYwYzEyNmY1MWVkOGUxNGE0YjYzMTk3NzIzYzU5NzE5ZjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.cVI9yC9FycaAais5wC7fTaYFYOSBHlLirgxxo0IjmMc)
-
route-prefix
(string):- Specifies the base url path to be used for matching and handling console routes.
- This base path will be prepended to all console route paths handled by the app-handler function
- Should not include a trailing slash at the end
- Example:
route-prefix
set to"/console"
, the enqueued endpoint will be accessible at path/console/enqueued
-
broker
(map):- Broker implementing
goose.broker/Broker
protocol. - Example:
(redis/new-producer redis/default-opts)
- Broker implementing
-
app-name
(string):- Name to be displayed in Navigation bar of UI.
- Example:
"Goose Console"
(ns client
(:require
[compojure.core :refer [context defroutes]]
[compojure.route :as route]
[goose.brokers.redis.broker :as redis]
[goose.console :as console]
[ring.adapter.jetty :as jetty]))
(defonce server (atom nil))
(def redis-producer (redis/new-producer redis/default-opts))
(defroutes goose-routes
(context "/goose" []
(partial console/app-handler (assoc console/default-console-opts :broker redis-producer))
(route/not-found "<h1>Page not found </h1>"))
(defn start-server []
(reset! server (jetty/run-jetty goose-routes {:port 3000
:join? false})))
(defn stop-server []
(when-let [s @server]
(.stop s)
(println s "Stopped")))
After executing (start-server)
, check Goose Console at http://localhost:3000/goose/
Home | Getting Started | RabbitMQ | Redis | Error Handling | Monitoring | Production Readiness | Troubleshooting
Need help? Open an issue or ping us on #goose @Clojurians slack.