Discover Packages
github.com/onflow/flow-go
module
metrics
example
package
Version:
v0.32.0
Opens a new window with list of versions in this module.
Published: Oct 3, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
Running an example that shows metrics data?
Launch a local metrics server, which exposes the metrics data via the /metrics endpoint.
You can choose one of the following:
Collection Node:
go run module/metrics/example/collection/main.go
Execution Node:
go run module/metrics/example/execution/main.go
Verification Node:
Note: Running example with -happypath flag examines the metrics collection on a real
happy path of verification node.
go run --tags=relic module/metrics/example/verification/main.go
Consensus Node:
go run module/metrics/example/consensus/main.go
The above commands each launch a metrics server on localhost with port 9090
Install the prometheus server
brew install prometheus
Launch the prometheus server to scrape the metrics from our local metrics server
prometheus --config.file=module/metrics/example/prometheus.yml
Open the prometheus UI in your browser
http://localhost:9090/graph
Go to the "Graph" tab to query and verify the collected metrics data
type consensus_cur_view, and press "Enter" to view the metrics data over time
Expand ▾
Collapse ▴
Documentation
¶
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.