feat: add prometheus metrics and dashboard
Integration Tests / integration-test (pull_request) Successful in 2m33s
Integration Tests / integration-test (pull_request) Successful in 2m33s
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"sync"
|
||||
|
||||
"git.warky.dev/wdevs/pgsql-broker/pkg/broker/adapter"
|
||||
"git.warky.dev/wdevs/pgsql-broker/pkg/broker/metrics"
|
||||
"git.warky.dev/wdevs/pgsql-broker/pkg/broker/worker"
|
||||
)
|
||||
|
||||
@@ -34,6 +35,8 @@ type Config struct {
|
||||
FetchSize int
|
||||
TenantID string
|
||||
LeaseSeconds int
|
||||
Metrics *metrics.Metrics
|
||||
DatabaseName string
|
||||
}
|
||||
|
||||
// New creates a new queue manager
|
||||
@@ -73,6 +76,8 @@ func (q *Queue) Start(cfg Config) error {
|
||||
FetchSize: cfg.FetchSize,
|
||||
TenantID: cfg.TenantID,
|
||||
LeaseSeconds: cfg.LeaseSeconds,
|
||||
Metrics: cfg.Metrics,
|
||||
DatabaseName: cfg.DatabaseName,
|
||||
})
|
||||
|
||||
if err := w.Start(q.ctx); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user