mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-09-22 06:46:34 +08:00
Add option to specify prometheus server address
This commit is contained in:
@@ -34,6 +34,12 @@ type Options struct {
|
||||
//
|
||||
// This field is optional.
|
||||
ResultFormatter ResultFormatter
|
||||
|
||||
// PrometheusAddress specifies the address of the Prometheus to connect to.
|
||||
//
|
||||
// This field is optional. If this field is set, asynqmon will query the Prometheus server
|
||||
// to get the time series data about queue metrics and show them in the web UI.
|
||||
PrometheusAddress string
|
||||
}
|
||||
|
||||
// HTTPHandler is a http.Handler for asynqmon application.
|
||||
|
Reference in New Issue
Block a user