Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gundeck: Reintroduce http metrics for public endpoints #4137

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/3-bug-fixes/gundeck-metrics
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gundeck: Reintroduce http metrics for public endpoints
4 changes: 2 additions & 2 deletions services/gundeck/src/Gundeck/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import Control.Exception (finally)
import Control.Lens ((.~), (^.))
import Control.Monad.Extra
import Data.Metrics.AWS (gaugeTokenRemaing)
import Data.Metrics.Middleware.Prometheus (waiPrometheusMiddleware)
import Data.Metrics.Servant
import Data.Proxy (Proxy (Proxy))
import Data.Text (unpack)
import Database.Redis qualified as Redis
Expand Down Expand Up @@ -84,7 +84,7 @@ run o = do
middleware e =
versionMiddleware (foldMap expandVersionExp (o ^. settings . disabledAPIVersions))
. requestIdMiddleware (e ^. applog) defaultRequestIdHeaderName
. waiPrometheusMiddleware sitemap
. servantPlusWAIPrometheusMiddleware sitemap (Proxy @CombinedAPI)
. GZip.gunzip
. GZip.gzip GZip.def
. catchErrors (e ^. applog) defaultRequestIdHeaderName
Expand Down
Loading