Skip to content

Commit

Permalink
cardano-node: Using serverMetricStore for EKG
Browse files Browse the repository at this point in the history
  • Loading branch information
jutaro authored and Denis Shevchenko committed Oct 21, 2021
1 parent 6311432 commit c223a67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cardano-node/src/Cardano/Node/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import Network.Socket (AddrInfo, Socket)
import System.Directory (canonicalizePath, createDirectoryIfMissing,
makeAbsolute)
import System.Environment (lookupEnv)
import qualified System.Metrics as EKG
import qualified System.Remote.Monitoring as EKG

#ifdef UNIX
import System.Posix.Files
Expand Down Expand Up @@ -153,7 +153,7 @@ runNode cmdPc = do

-- New logging initialisation
let ekgServer' = ekgServer (llEKGDirect loggingLayer)
ekgStore <- EKG.newStore
let ekgStore = EKG.serverMetricStore ekgServer'
loggerConfiguration <-
case getLast $ pncConfigFile cmdPc of
Just fileName -> NL.readConfiguration (unConfigPath fileName)
Expand All @@ -163,7 +163,7 @@ runNode cmdPc = do
forwardSink <- withIOManager $ \iomgr ->
NL.initForwarding iomgr loggerConfiguration ekgStore nodeInfo
let forwardTrace = NL.forwardTracer forwardSink
ekgTrace <- NL.ekgTracer (Right ekgServer')
ekgTrace <- NL.ekgTracer (Left ekgStore)
-- End new logging initialisation

!trace <- setupTrace loggingLayer
Expand Down

0 comments on commit c223a67

Please sign in to comment.