*: Rename prometheus-exporter crate to substrate-prometheus-end… (#5076)

This patch renames the crate for the following two reasons:

1. The prometheus-exporter crate introduces native in-process Prometheus
style instrumentation to the Substrate project. Within the Prometheus
ecosystem the term "exporter" is used for external processes exposing
metrics for e.g. the Linux Kernel. In-process exposition would be
described via the term "endpoint".

2. "prometheus-exporter" is generic and ignores the fact that it is only
usable within the context of Substrate. In addition the name
"prometheus-exporter" is already taken on crates.io.
This commit is contained in:
Max Inden
2020-02-27 17:48:26 +01:00
committed by GitHub
parent 9b67ac43ef
commit 9d49d917f6
8 changed files with 26 additions and 26 deletions
+15 -15
View File
@@ -4988,19 +4988,6 @@ dependencies = [
"spin",
]
[[package]]
name = "prometheus-exporter"
version = "0.8.0-alpha.2"
dependencies = [
"async-std",
"derive_more",
"futures-util",
"hyper 0.13.2",
"log 0.4.8",
"prometheus",
"tokio 0.2.11",
]
[[package]]
name = "prost"
version = "0.6.1"
@@ -5685,7 +5672,6 @@ dependencies = [
"log 0.4.8",
"names",
"parity-util-mem",
"prometheus-exporter",
"regex",
"rpassword",
"sc-client-api",
@@ -5702,6 +5688,7 @@ dependencies = [
"sp-runtime",
"sp-state-machine",
"structopt",
"substrate-prometheus-endpoint",
"tempfile",
"time",
"tokio 0.2.11",
@@ -6413,7 +6400,6 @@ dependencies = [
"parity-scale-codec",
"parity-util-mem",
"parking_lot 0.10.0",
"prometheus-exporter",
"sc-chain-spec",
"sc-client",
"sc-client-api",
@@ -6442,6 +6428,7 @@ dependencies = [
"sp-runtime",
"sp-session",
"sp-transaction-pool",
"substrate-prometheus-endpoint",
"substrate-test-runtime-client",
"sysinfo",
"target_info",
@@ -7662,6 +7649,19 @@ dependencies = [
"substrate-test-runtime-client",
]
[[package]]
name = "substrate-prometheus-endpoint"
version = "0.8.0-alpha.2"
dependencies = [
"async-std",
"derive_more",
"futures-util",
"hyper 0.13.2",
"log 0.4.8",
"prometheus",
"tokio 0.2.11",
]
[[package]]
name = "substrate-test-client"
version = "2.0.0-dev"