Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
zistvan-public
StreamChain Prototype
Commits
62beda97
Commit
62beda97
authored
Mar 27, 2019
by
David Enyeart
Committed by
Gerrit Code Review
Mar 27, 2019
Browse files
Merge "FAB-11863 Assorted Raft serviceability fixes" into release-1.4
parents
d568cc02
5fb1be95
Changes
4
Hide whitespace changes
Inline
Side-by-side
docs/source/metrics_reference.rst
View file @
62beda97
...
...
@@ -48,26 +48,26 @@ The following metrics are currently exported for consumption by Prometheus.
| | | | channel |
| | | | chaincode |
+-----------------------------------------------------+-----------+------------------------------------------------------------+--------------------+
| cluster_comm_egress_queue_capacity | gauge | Capacity of the egress queue
| host |
| cluster_comm_egress_queue_capacity | gauge | Capacity of the egress queue
.
| host |
| | | | msg_type |
| | | | channel |
+-----------------------------------------------------+-----------+------------------------------------------------------------+--------------------+
| cluster_comm_egress_queue_length | gauge | Length of the egress queue
| host |
| cluster_comm_egress_queue_length | gauge | Length of the egress queue
.
| host |
| | | | msg_type |
| | | | channel |
+-----------------------------------------------------+-----------+------------------------------------------------------------+--------------------+
| cluster_comm_egress_queue_workers | gauge | Count of egress queue workers
| channel |
| cluster_comm_egress_queue_workers | gauge | Count of egress queue workers
.
| channel |
+-----------------------------------------------------+-----------+------------------------------------------------------------+--------------------+
| cluster_comm_egress_stream_count | gauge | Count of streams to other nodes
| channel |
| cluster_comm_egress_stream_count | gauge | Count of streams to other nodes
.
| channel |
+-----------------------------------------------------+-----------+------------------------------------------------------------+--------------------+
| cluster_comm_egress_tls_connection_count | gauge | Count of TLS connections to other nodes
| |
| cluster_comm_egress_tls_connection_count | gauge | Count of TLS connections to other nodes
.
| |
+-----------------------------------------------------+-----------+------------------------------------------------------------+--------------------+
| cluster_comm_ingress_stream_count | gauge | Count of streams from other nodes
| |
| cluster_comm_ingress_stream_count | gauge | Count of streams from other nodes
.
| |
+-----------------------------------------------------+-----------+------------------------------------------------------------+--------------------+
| cluster_comm_msg_dropped_count | counter | Count of messages dropped
| host |
| cluster_comm_msg_dropped_count | counter | Count of messages dropped
.
| host |
| | | | channel |
+-----------------------------------------------------+-----------+------------------------------------------------------------+--------------------+
| cluster_comm_msg_send_time | histogram | Time it takes to send a message
down the stream
| host |
| cluster_comm_msg_send_time | histogram | T
he t
ime it takes to send a message
in seconds.
| host |
| | | | channel |
+-----------------------------------------------------+-----------+------------------------------------------------------------+--------------------+
| consensus_etcdraft_cluster_size | gauge | Number of nodes in this channel. | channel |
...
...
@@ -83,7 +83,7 @@ The following metrics are currently exported for consumption by Prometheus.
| consensus_etcdraft_is_leader | gauge | The leadership status of the current node: 1 if it is the | channel |
| | | leader else 0. | |
+-----------------------------------------------------+-----------+------------------------------------------------------------+--------------------+
| consensus_etcdraft_leader_changes | counter | The number of leader changes
.
| channel |
| consensus_etcdraft_leader_changes | counter | The number of leader changes
since process start.
| channel |
+-----------------------------------------------------+-----------+------------------------------------------------------------+--------------------+
| consensus_etcdraft_normal_proposals_received | counter | The total number of proposals received for normal type | channel |
| | | transactions. | |
...
...
@@ -256,21 +256,21 @@ associated with the metric.
+-----------------------------------------------------------------------------------------+-----------+------------------------------------------------------------+
| chaincode.shim_requests_received.%{type}.%{channel}.%{chaincode} | counter | The number of chaincode shim requests received. |
+-----------------------------------------------------------------------------------------+-----------+------------------------------------------------------------+
| cluster.comm.egress_queue_capacity.%{host}.%{msg_type}.%{channel} | gauge | Capacity of the egress queue
|
| cluster.comm.egress_queue_capacity.%{host}.%{msg_type}.%{channel} | gauge | Capacity of the egress queue
.
|
+-----------------------------------------------------------------------------------------+-----------+------------------------------------------------------------+
| cluster.comm.egress_queue_length.%{host}.%{msg_type}.%{channel} | gauge | Length of the egress queue
|
| cluster.comm.egress_queue_length.%{host}.%{msg_type}.%{channel} | gauge | Length of the egress queue
.
|
+-----------------------------------------------------------------------------------------+-----------+------------------------------------------------------------+
| cluster.comm.egress_queue_workers.%{channel} | gauge | Count of egress queue workers
|
| cluster.comm.egress_queue_workers.%{channel} | gauge | Count of egress queue workers
.
|
+-----------------------------------------------------------------------------------------+-----------+------------------------------------------------------------+
| cluster.comm.egress_stream_count.%{channel} | gauge | Count of streams to other nodes
|
| cluster.comm.egress_stream_count.%{channel} | gauge | Count of streams to other nodes
.
|
+-----------------------------------------------------------------------------------------+-----------+------------------------------------------------------------+
| cluster.comm.egress_tls_connection_count | gauge | Count of TLS connections to other nodes
|
| cluster.comm.egress_tls_connection_count | gauge | Count of TLS connections to other nodes
.
|
+-----------------------------------------------------------------------------------------+-----------+------------------------------------------------------------+
| cluster.comm.ingress_stream_count | gauge | Count of streams from other nodes
|
| cluster.comm.ingress_stream_count | gauge | Count of streams from other nodes
.
|
+-----------------------------------------------------------------------------------------+-----------+------------------------------------------------------------+
| cluster.comm.msg_dropped_count.%{host}.%{channel} | counter | Count of messages dropped
|
| cluster.comm.msg_dropped_count.%{host}.%{channel} | counter | Count of messages dropped
.
|
+-----------------------------------------------------------------------------------------+-----------+------------------------------------------------------------+
| cluster.comm.msg_send_time.%{host}.%{channel} | histogram | Time it takes to send a message
down the stream
|
| cluster.comm.msg_send_time.%{host}.%{channel} | histogram | T
he t
ime it takes to send a message
in seconds.
|
+-----------------------------------------------------------------------------------------+-----------+------------------------------------------------------------+
| consensus.etcdraft.cluster_size.%{channel} | gauge | Number of nodes in this channel. |
+-----------------------------------------------------------------------------------------+-----------+------------------------------------------------------------+
...
...
@@ -285,7 +285,7 @@ associated with the metric.
| consensus.etcdraft.is_leader.%{channel} | gauge | The leadership status of the current node: 1 if it is the |
| | | leader else 0. |
+-----------------------------------------------------------------------------------------+-----------+------------------------------------------------------------+
| consensus.etcdraft.leader_changes.%{channel} | counter | The number of leader changes
.
|
| consensus.etcdraft.leader_changes.%{channel} | counter | The number of leader changes
since process start.
|
+-----------------------------------------------------------------------------------------+-----------+------------------------------------------------------------+
| consensus.etcdraft.normal_proposals_received.%{channel} | counter | The total number of proposals received for normal type |
| | | transactions. |
...
...
orderer/common/cluster/comm.go
View file @
62beda97
...
...
@@ -58,7 +58,7 @@ type RemoteNode struct {
// String returns a string representation of this RemoteNode
func
(
rm
RemoteNode
)
String
()
string
{
return
fmt
.
Sprintf
(
"ID: %d
\n
Endpoint: %s
\n
ServerTLSCert:%s ClientTLSCert:%s"
,
return
fmt
.
Sprintf
(
"ID: %d
,
\n
Endpoint: %s
,
\n
ServerTLSCert:%s
,
ClientTLSCert:%s"
,
rm
.
ID
,
rm
.
Endpoint
,
DERtoPEM
(
rm
.
ServerTLSCert
),
DERtoPEM
(
rm
.
ClientTLSCert
))
}
...
...
orderer/common/cluster/metrics.go
View file @
62beda97
...
...
@@ -17,7 +17,7 @@ var (
Namespace
:
"cluster"
,
Subsystem
:
"comm"
,
Name
:
"egress_queue_length"
,
Help
:
"Length of the egress queue"
,
Help
:
"Length of the egress queue
.
"
,
LabelNames
:
[]
string
{
"host"
,
"msg_type"
,
"channel"
},
StatsdFormat
:
"%{#fqname}.%{host}.%{msg_type}.%{channel}"
,
}
...
...
@@ -26,7 +26,7 @@ var (
Namespace
:
"cluster"
,
Subsystem
:
"comm"
,
Name
:
"egress_queue_capacity"
,
Help
:
"Capacity of the egress queue"
,
Help
:
"Capacity of the egress queue
.
"
,
LabelNames
:
[]
string
{
"host"
,
"msg_type"
,
"channel"
},
StatsdFormat
:
"%{#fqname}.%{host}.%{msg_type}.%{channel}"
,
}
...
...
@@ -35,7 +35,7 @@ var (
Namespace
:
"cluster"
,
Subsystem
:
"comm"
,
Name
:
"egress_queue_workers"
,
Help
:
"Count of egress queue workers"
,
Help
:
"Count of egress queue workers
.
"
,
LabelNames
:
[]
string
{
"channel"
},
StatsdFormat
:
"%{#fqname}.%{channel}"
,
}
...
...
@@ -44,7 +44,7 @@ var (
Namespace
:
"cluster"
,
Subsystem
:
"comm"
,
Name
:
"ingress_stream_count"
,
Help
:
"Count of streams from other nodes"
,
Help
:
"Count of streams from other nodes
.
"
,
StatsdFormat
:
"%{#fqname}"
,
}
...
...
@@ -52,7 +52,7 @@ var (
Namespace
:
"cluster"
,
Subsystem
:
"comm"
,
Name
:
"egress_stream_count"
,
Help
:
"Count of streams to other nodes"
,
Help
:
"Count of streams to other nodes
.
"
,
LabelNames
:
[]
string
{
"channel"
},
StatsdFormat
:
"%{#fqname}.%{channel}"
,
}
...
...
@@ -61,7 +61,7 @@ var (
Namespace
:
"cluster"
,
Subsystem
:
"comm"
,
Name
:
"egress_tls_connection_count"
,
Help
:
"Count of TLS connections to other nodes"
,
Help
:
"Count of TLS connections to other nodes
.
"
,
StatsdFormat
:
"%{#fqname}"
,
}
...
...
@@ -69,7 +69,7 @@ var (
Namespace
:
"cluster"
,
Subsystem
:
"comm"
,
Name
:
"msg_send_time"
,
Help
:
"Time it takes to send a message
down the stream
"
,
Help
:
"T
he t
ime it takes to send a message
in seconds.
"
,
LabelNames
:
[]
string
{
"host"
,
"channel"
},
StatsdFormat
:
"%{#fqname}.%{host}.%{channel}"
,
}
...
...
@@ -78,7 +78,7 @@ var (
Namespace
:
"cluster"
,
Subsystem
:
"comm"
,
Name
:
"msg_dropped_count"
,
Help
:
"Count of messages dropped"
,
Help
:
"Count of messages dropped
.
"
,
LabelNames
:
[]
string
{
"host"
,
"channel"
},
StatsdFormat
:
"%{#fqname}.%{host}.%{channel}"
,
}
...
...
@@ -137,7 +137,7 @@ func (m *Metrics) reportWorkerCount(channel string, count uint32) {
}
func
(
m
*
Metrics
)
reportMsgSendTime
(
host
string
,
channel
string
,
duration
time
.
Duration
)
{
m
.
MessageSendTime
.
With
(
"host"
,
host
,
"channel"
,
channel
)
.
Observe
(
float64
(
duration
))
m
.
MessageSendTime
.
With
(
"host"
,
host
,
"channel"
,
channel
)
.
Observe
(
float64
(
duration
.
Seconds
()
))
}
func
(
m
*
Metrics
)
reportEgressStreamCount
(
channel
string
,
count
uint32
)
{
...
...
orderer/consensus/etcdraft/metrics.go
View file @
62beda97
...
...
@@ -45,7 +45,7 @@ var (
Namespace
:
"consensus"
,
Subsystem
:
"etcdraft"
,
Name
:
"leader_changes"
,
Help
:
"The number of leader changes."
,
Help
:
"The number of leader changes
since process start
."
,
LabelNames
:
[]
string
{
"channel"
},
StatsdFormat
:
"%{#fqname}.%{channel}"
,
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment