-
Notifications
You must be signed in to change notification settings - Fork 15
Trace forwarding protocol
Denis Shevchenko edited this page Oct 25, 2020
·
8 revisions
The Cardano node is able to send its metrics for an external process using TraceForwarderBK
plugin, and the external process is able to receive these metrics using TraceAcceptorBK
plugin. This guide describes the TraceForwarderBK
/TraceAcceptorBK
protocol.
TraceForwarderBK
plugin sends its metrics as a pair of ByteString
s (to be precise, Data.ByteString.Char8
):
- hostname,
- list of
LogObject
s:
The hostname is a ByteString
containing the name of host (for example, "linux") encoded in UTF-8 (source code).
The list of LogObject
s is a ByteString
conaining [LogObject a]
encoded to JSON as UTF-8 (source code).
linux
[{"loname":"cardano.node.release","locontent":{"kind":"LogMessage","message":"ByronProtocol"},"lometa":{"tstamp":"2020-08-11T15:04:32.354943121Z","hostname":"linux","severity":"Notice","privacy":"Public","tid":"48"}},{"loname":"cardano.node.version","locontent":{"kind":"LogMessage","message":"1.18.0"},"lometa":{"tstamp":"2020-08-11T15:04:32.354943121Z","hostname":"linux","severity":"Notice","privacy":"Public","tid":"48"}},{"loname":"cardano.node.commit","locontent":{"kind":"LogMessage","message":"a0eb636"},"lometa":{"tstamp":"2020-08-11T15:04:32.354943121Z","hostname":"linux","severity":"Notice","privacy":"Public","tid":"48"}}]
-
Data.ByteString.Char8
module. -
LogObject a
definition. -
TraceForwarderBK
plugin. -
TraceAcceptorBK
plugin.