*: 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
+2 -2
View File
@@ -53,8 +53,8 @@ impl<'a> From<&'a str> for Error {
}
}
impl From<prometheus_exporter::PrometheusError> for Error {
fn from(e: prometheus_exporter::PrometheusError) -> Self {
impl From<substrate_prometheus_endpoint::PrometheusError> for Error {
fn from(e: substrate_prometheus_endpoint::PrometheusError) -> Self {
Error::Other(format!("Prometheus error: {}", e))
}
}