Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chan.Part.API: channel participation relation and status metrics #2025

Merged
merged 1 commit into from
Nov 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/metrics/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type Gauge interface {
// Add increments a Gauge value.
Add(delta float64) // TODO: consider removing

// Set is used to update the current value associted with a Gauge.
// Set is used to update the current value associated with a Gauge.
Set(value float64)
}

Expand Down
14 changes: 14 additions & 0 deletions docs/source/metrics_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@ The following orderer metrics are exported for consumption by Prometheus.
+----------------------------------------------+-----------+------------------------------------------------------------+-----------+--------------------------------------------------------------------+
| logging_entries_written | counter | Number of log entries that are written | level | |
+----------------------------------------------+-----------+------------------------------------------------------------+-----------+--------------------------------------------------------------------+
| participation_cluster_relation | gauge | The channel participation cluster relation of the node: 0 | channel | |
| | | if none, 1 if consenter, 2 if follower, 3 if | | |
| | | config-tracker. | | |
+----------------------------------------------+-----------+------------------------------------------------------------+-----------+--------------------------------------------------------------------+
| participation_status | gauge | The channel participation status of the node: 0 if | channel | |
| | | inactive, 1 if active, 2 if onboarding. | | |
+----------------------------------------------+-----------+------------------------------------------------------------+-----------+--------------------------------------------------------------------+

StatsD
~~~~~~
Expand Down Expand Up @@ -326,6 +333,13 @@ associated with the metric.
+---------------------------------------------------------------------------+-----------+------------------------------------------------------------+
| logging.entries_written.%{level} | counter | Number of log entries that are written |
+---------------------------------------------------------------------------+-----------+------------------------------------------------------------+
| participation.cluster_relation.%{channel} | gauge | The channel participation cluster relation of the node: 0 |
| | | if none, 1 if consenter, 2 if follower, 3 if |
| | | config-tracker. |
+---------------------------------------------------------------------------+-----------+------------------------------------------------------------+
| participation.status.%{channel} | gauge | The channel participation status of the node: 0 if |
| | | inactive, 1 if active, 2 if onboarding. |
+---------------------------------------------------------------------------+-----------+------------------------------------------------------------+

Peer Metrics
------------
Expand Down
Loading