Documentation
¶
Index ¶
- Constants
- func GetPromExporter() *prometheus.Exporter
- func GetPromRegistry() *prom.Registry
- func IncCNodeOpenChanEventCnt(chantype, state string)
- func IncCommonErrCnt(err error)
- func IncCoopWithdrawEventCnt()
- func IncDelegatePayCnt(paystat string)
- func IncDepositErrCnt()
- func IncDepositEventCnt()
- func IncDepositJobCnt()
- func IncDepositPoolAlertCnt()
- func IncDepositTxCnt()
- func IncDispatcherErrCnt(msgtype string)
- func IncDispatcherMsgCnt(msgtype string)
- func IncDispatcherMsgProcDur(startTime time.Time, msgtype string)
- func IncDisputeSettleEventCnt(eventstate string)
- func IncDisputeWithdrawEventCnt(eventstate string)
- func IncSvrAdminSendTokenCnt(sendstat, notetype string)
- func IncSvrFwdMsgCnt(msgtype int32, fwdstat string)
- func PushMetricsToGateway(url, job string)
Constants ¶
const ( // For server admin service, send token states SvrAdminSendAttempt = "attempt" SvrAdminSendSucceed = "succeed" // For server forward message SvrFwdMsgAttempt = "attempt" SvrFwdMsgSucceed = "succeed" // For delegate, state info for each payment DelegatePayAttempt = "attempt" DelegatePaySucceed = "succeed" // For cnode, channel type and openchannel state CNodeTcbChan = "tcb" CNodeRegularChan = "regular" CNodeOpenChanOK = "OK" CNodeOpenChanErr = "ERROR" )
Variables ¶
This section is empty.
Functions ¶
func GetPromExporter ¶
func GetPromExporter() *prometheus.Exporter
GetPromExporter would return the prometheus exporter
func GetPromRegistry ¶
GetPromRegistry would return the prometheus resgistry
func IncCNodeOpenChanEventCnt ¶
func IncCNodeOpenChanEventCnt(chantype, state string)
IncCNodeOpenChanEventCnt records one for mCNodeOpenChanEvengCnt
func IncCommonErrCnt ¶
func IncCommonErrCnt(err error)
IncCommonErrCnt records one for mCommonErrCnt
func IncCoopWithdrawEventCnt ¶
func IncCoopWithdrawEventCnt()
IncCoopWithdrawEventCnt records one for mCoopWithdrawEventCnt
func IncDelegatePayCnt ¶
func IncDelegatePayCnt(paystat string)
IncDelegatePayCnt records one for mDelegatePayCnt
func IncDepositEventCnt ¶
func IncDepositEventCnt()
IncDepositEventCnt records one for mDepositEventCnt
func IncDepositPoolAlertCnt ¶
func IncDepositPoolAlertCnt()
IncDepositPoolAlertCnt records one for mDepositPoolAlertCnt
func IncDispatcherErrCnt ¶
func IncDispatcherErrCnt(msgtype string)
IncDispatcherErrCnt records one for mDispatcherErrCnt
func IncDispatcherMsgCnt ¶
func IncDispatcherMsgCnt(msgtype string)
IncDispatcherMsgCnt records one for mDispatcherMsgCnt
func IncDispatcherMsgProcDur ¶
IncDispatcherMsgProcDur records duration in millisecond for mDispatcherMsgProcDur
func IncDisputeSettleEventCnt ¶
func IncDisputeSettleEventCnt(eventstate string)
IncDisputeSettleEventCnt records one for mDisputeSettleEventCnt
func IncDisputeWithdrawEventCnt ¶
func IncDisputeWithdrawEventCnt(eventstate string)
IncDisputeWithdrawEventCnt records one for mDisputeWithdrawEventCnt
func IncSvrAdminSendTokenCnt ¶
func IncSvrAdminSendTokenCnt(sendstat, notetype string)
IncSvrAdminSendTokenCnt records one for mAdminSendTokenCnt
func IncSvrFwdMsgCnt ¶
IncSvrFwdMsgCnt records one for mSvrFwdMshCnt
func PushMetricsToGateway ¶
func PushMetricsToGateway(url, job string)
PushMetricsToGateway push all the metrics to the gateway url. This function is designed for ephemeral jobs
Types ¶
This section is empty.