mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 01:14:56 +00:00
268e7e66d0
* Added bootstrap peer exchange discovery option for easy setup ltp * Extended with PX discovery, auto-dial of PX cap peers, added switching service peers if failed with original * Added peer-exchange, found capable peers test, metrics on peer stability and availability, dashboard adjustments * Updated and actualized README.md for liteprotocoltester * Created jenkinsfile for liteprotocoltester deployment * Fixed dial exception during lightpublish * Add configuration for requesting and testing peer exchange peers * Extended examples added to Readme * Added metrics port configurability --------- Co-authored-by: gabrielmer <101006718+gabrielmer@users.noreply.github.com>
47 lines
1.7 KiB
Nim
47 lines
1.7 KiB
Nim
## Example showing how a resource restricted client may
|
|
## subscribe to messages without relay
|
|
|
|
import metrics
|
|
|
|
export metrics
|
|
|
|
declarePublicGauge lpt_receiver_sender_peer_count, "count of sender peers"
|
|
|
|
declarePublicCounter lpt_receiver_received_messages_count,
|
|
"number of messages received per peer", ["peer"]
|
|
|
|
declarePublicCounter lpt_receiver_received_bytes,
|
|
"number of received bytes per peer", ["peer"]
|
|
|
|
declarePublicGauge lpt_receiver_missing_messages_count,
|
|
"number of missing messages per peer", ["peer"]
|
|
|
|
declarePublicCounter lpt_receiver_duplicate_messages_count,
|
|
"number of duplicate messages per peer", ["peer"]
|
|
|
|
declarePublicGauge lpt_receiver_distinct_duplicate_messages_count,
|
|
"number of distinct duplicate messages per peer", ["peer"]
|
|
|
|
declarePublicCounter lpt_receiver_lost_subscription_count,
|
|
"number of filter service peer failed PING requests - lost subscription"
|
|
|
|
declarePublicCounter lpt_publisher_sent_messages_count, "number of messages published"
|
|
|
|
declarePublicCounter lpt_publisher_failed_messages_count,
|
|
"number of messages failed to publish per failure cause", ["cause"]
|
|
|
|
declarePublicCounter lpt_publisher_sent_bytes, "number of total bytes sent"
|
|
|
|
declarePublicCounter lpt_service_peer_failure_count,
|
|
"number of failure during using service peer [publisher/receiever]", ["role"]
|
|
|
|
declarePublicCounter lpt_change_service_peer_count,
|
|
"number of times [publisher/receiver] had to change service peer", ["role"]
|
|
|
|
declarePublicGauge lpt_px_peers,
|
|
"Number of peers PeerExchange discovered and can be dialed"
|
|
|
|
declarePublicGauge lpt_dialed_peers, "Number of peers successfully dialed"
|
|
|
|
declarePublicGauge lpt_dial_failures, "Number of dial failures by cause"
|