health-check: add storage health check (#5074)

This commit is contained in:
Denis Mishin 2024-04-19 13:10:33 -04:00 committed by GitHub
parent 2da4801d3a
commit 08eb255bbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 0 deletions

View file

@ -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
}