mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-04 03:42:49 +02:00
health-check: add storage health check (#5074)
This commit is contained in:
parent
2da4801d3a
commit
08eb255bbf
3 changed files with 26 additions and 0 deletions
|
@ -20,6 +20,7 @@ import (
|
|||
"github.com/pomerium/pomerium/internal/signal"
|
||||
"github.com/pomerium/pomerium/pkg/cryptutil"
|
||||
"github.com/pomerium/pomerium/pkg/grpc/databroker"
|
||||
"github.com/pomerium/pomerium/pkg/health"
|
||||
"github.com/pomerium/pomerium/pkg/storage"
|
||||
)
|
||||
|
||||
|
@ -86,6 +87,9 @@ func New(options ...Option) *Backend {
|
|||
}
|
||||
}()
|
||||
}
|
||||
|
||||
health.ReportOK(health.StorageBackend, health.StrAttr("backend", "in-memory"))
|
||||
|
||||
return backend
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue