This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
R4R: prometheus exporter in substrate #4511
Closed
Closed
Changes from 50 commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
40762b6
Refactor rebase master prometheus_v0.3
nodebreaker0-0 472aca1
Milestone1: Final Version of v0.3
nodebreaker0-0 1974f94
no-std or warm compatibility issues, grapana-data -source code refere…
nodebreaker0-0 62a873d
Cargo.lock paritytech/master rebase
nodebreaker0-0 97e37e4
prometheus networking.rs del, grafana-data-source networking.rs pub e…
nodebreaker0-0 f3e444e
chore: reflect various feedback
nodebreaker0-0 8145df7
Spaces to tabs.
gavofyork fca71be
Replace grafana and tidy
expenses 855ceed
Add generics
expenses 70c6bcc
Add photo back
expenses 5941041
Re-fix spaces in primitives/consensus/babe/src/inherents.rs
expenses 7d9d341
Refactor rebase master prometheus_v0.3
nodebreaker0-0 52316ae
Milestone1: Final Version of v0.3
nodebreaker0-0 82cd8cf
no-std or warm compatibility issues, grapana-data -source code refere…
nodebreaker0-0 b052829
prometheus networking.rs del, grafana-data-source networking.rs pub e…
nodebreaker0-0 4e831e9
chore: reflect various feedback
nodebreaker0-0 0b15bc4
Replace grafana and tidy
expenses 8025361
Add generics
expenses fd081c9
Add photo back
expenses f00bb9b
Re-fix spaces in primitives/consensus/babe/src/inherents.rs
expenses 398da97
chore: revert this file back to paritytech/master inherents.rs.
nodebreaker0-0 84c458f
Add newline at EOF
expenses f931588
Merge remote-tracking branch 'nodebreaker/prometheus_v0.3' into ashle…
expenses 5796c85
Merge remote-tracking branch 'parity/master' into ashley-prometheus
expenses 2a45de8
Merge remote-tracking branch 'parity/master' into ashley-prometheus
expenses 8bae73b
Merge remote-tracking branch 'parity/master' into ashley-prometheus
expenses 1caa0f1
Merge remote-tracking branch 'parity/master' into ashley-prometheus
expenses ffb4746
Tidy
expenses 8a6e3c5
Use local registry
expenses 53c95de
fix typo
hskang9 23cb72e
chore: Apply review feedback
nodebreaker0-0 3d1634b
Merge remote-tracking branch 'nodebreaker/prometheus_v0.3' into ashle…
expenses 55ac4f8
Merge remote-tracking branch 'parity/master' into ashley-prometheus
expenses 3cfe43c
endpoint -> exporter
expenses 0af2369
fix readme
expenses 44f8c0e
Merge pull request #3 from paritytech/ashley-prometheus
nodebreaker0-0 d2bba61
Remove lazy_static, use ServiceMetrics struct instead
expenses 5d3d9a7
Merge pull request #4 from paritytech/ashley-prometheus
nodebreaker0-0 32c04b4
Merge branch 'paritytech/master' into prometheus_v0.3
mxinden 9bde830
Switch to using GaugeVecs
expenses 97faad6
Merge pull request #5 from mxinden/prometheus_v0.3
nodebreaker0-0 f64a482
chore: without nightly , edit README
nodebreaker0-0 5d56d93
Merge branch 'prometheus_v0.3' into ashley-prometheus
nodebreaker0-0 50f2928
block_height -> block_height_number
expenses 8edb710
Merge branch 'ashley-prometheus' of github.com:paritytech/substrate i…
expenses 6a25ea8
Switch to a ready_transactions_number gauge
expenses 18cf2be
Merge pull request #7 from paritytech/ashley-prometheus
nodebreaker0-0 bb388f5
Update utils/prometheus/src/lib.rs
hskang9 77ba252
no-prometheus flag add
nodebreaker0-0 5e327c2
/metrics url Input check
nodebreaker0-0 ccb3179
remove prometheus in Tracing
nodebreaker0-0 152176f
remove prometheus in Tracing
nodebreaker0-0 8de57c2
Merge branch 'master' into prometheus_v0.3
nodebreaker0-0 e76f200
chore: master code rebase edit
nodebreaker0-0 55428b7
gitlab-check-web-wasm edit code
nodebreaker0-0 d1003e6
From:from and cargo.lock update
nodebreaker0-0 5c2e085
Merge commit 'db1ab7d18fbe7876cdea43bbf30f147ddd263f94' into promethe…
nodebreaker0-0 b4b4432
with_prometheus_registry add background_tasks
nodebreaker0-0 ee421a6
Merge commit '419e5fd0026cfd528cd3b327789bb0a3a8215703' into promethe…
nodebreaker0-0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -299,7 +299,7 @@ arg_enum! { | |||||
pub enum TracingReceiver { | ||||||
Log, | ||||||
Telemetry, | ||||||
Grafana, | ||||||
Prometheus, | ||||||
} | ||||||
} | ||||||
|
||||||
|
@@ -308,7 +308,7 @@ impl Into<sc_tracing::TracingReceiver> for TracingReceiver { | |||||
match self { | ||||||
TracingReceiver::Log => sc_tracing::TracingReceiver::Log, | ||||||
TracingReceiver::Telemetry => sc_tracing::TracingReceiver::Telemetry, | ||||||
TracingReceiver::Grafana => sc_tracing::TracingReceiver::Grafana, | ||||||
TracingReceiver::Prometheus => sc_tracing::TracingReceiver::Prometheus, | ||||||
} | ||||||
} | ||||||
} | ||||||
|
@@ -448,11 +448,11 @@ pub struct RunCmd { | |||||
#[structopt(long = "unsafe-ws-external")] | ||||||
pub unsafe_ws_external: bool, | ||||||
|
||||||
/// Listen to all Grafana data source interfaces. | ||||||
/// Listen to all Prometheus endpoint interfaces. | ||||||
/// | ||||||
/// Default is local. | ||||||
#[structopt(long = "grafana-external")] | ||||||
pub grafana_external: bool, | ||||||
#[structopt(long = "prometheus-external")] | ||||||
pub prometheus_external: bool, | ||||||
|
||||||
/// Specify HTTP RPC server TCP port. | ||||||
#[structopt(long = "rpc-port", value_name = "PORT")] | ||||||
|
@@ -476,9 +476,15 @@ pub struct RunCmd { | |||||
#[structopt(long = "rpc-cors", value_name = "ORIGINS", parse(try_from_str = parse_cors))] | ||||||
pub rpc_cors: Option<Cors>, | ||||||
|
||||||
/// Specify Grafana data source server TCP Port. | ||||||
#[structopt(long = "grafana-port", value_name = "PORT")] | ||||||
pub grafana_port: Option<u16>, | ||||||
/// Specify Prometheus endpoint TCP Port. | ||||||
#[structopt(long = "prometheus-port", value_name = "PORT")] | ||||||
pub prometheus_port: Option<u16>, | ||||||
|
||||||
/// Disable connecting to the Substrate prometheus. | ||||||
/// | ||||||
/// prometheus is on by default on global chains. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. complete |
||||||
#[structopt(long = "no-prometheus")] | ||||||
pub no_prometheus: bool, | ||||||
|
||||||
/// The human-readable name for this node. | ||||||
/// | ||||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One does not disable others to connect to it, but the exposition in itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
complete