rename prom-client crate to prometheus-http-client
This commit is contained in:
Generated
+2
-2
@@ -1324,7 +1324,7 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "prom-client"
|
||||
name = "prometheus-http-client"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
@@ -1686,7 +1686,7 @@ dependencies = [
|
||||
"hyper",
|
||||
"hyper-util",
|
||||
"jsonrpsee",
|
||||
"prom-client",
|
||||
"prometheus-http-client",
|
||||
"rand",
|
||||
"reqwest",
|
||||
"rustls",
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
[workspace]
|
||||
resolver = "2"
|
||||
members = [
|
||||
"prom-client",
|
||||
"prometheus-http-client",
|
||||
"signal-gateway",
|
||||
]
|
||||
|
||||
@@ -21,7 +21,7 @@ assigning_clones = "allow"
|
||||
result_large_err = "allow"
|
||||
|
||||
[workspace.dependencies]
|
||||
prom-client = { path = "prom-client" }
|
||||
prometheus-http-client = { path = "prometheus-http-client" }
|
||||
|
||||
async-trait = "0.1"
|
||||
chrono = { version = "0.4", default-features = false, features = ["clock", "serde", "std"] }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "prom-client"
|
||||
name = "prometheus-http-client"
|
||||
version = "0.1.0"
|
||||
edition.workspace = true
|
||||
|
||||
@@ -7,7 +7,7 @@ edition.workspace = true
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
prom-client = { workspace = true }
|
||||
prometheus-http-client = { workspace = true }
|
||||
|
||||
chrono = { workspace = true }
|
||||
conf = { workspace = true }
|
||||
|
||||
@@ -7,7 +7,7 @@ use conf::{Conf, Subcommands};
|
||||
use futures_util::FutureExt;
|
||||
use http_body_util::BodyExt;
|
||||
use hyper::{Method, Request, Response, StatusCode, body::Incoming};
|
||||
use prom_client::{AlertStatus, ExtractLabels};
|
||||
use prometheus_http_client::{AlertStatus, ExtractLabels};
|
||||
//use jsonrpsee::async_client::{Client as JsonRpcClient, Error as JsonRpcError};
|
||||
use chrono::Utc;
|
||||
use std::{collections::HashMap, error::Error, fmt::Write, net::SocketAddr, time::Duration};
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
use crate::http::Alert;
|
||||
use chrono::Utc;
|
||||
use conf::Conf;
|
||||
use prom_client::{
|
||||
AlertInfo, AlertsRequest, ExtractLabels, Labels, LabelsRequest, MetricTimeseries, MetricValue,
|
||||
PromRequest, QueryRangeRequest, QueryRequest, SeriesRequest,
|
||||
use prometheus_http_client::{
|
||||
AlertInfo, AlertsRequest, ExtractLabels, Labels, LabelsRequest, MetricTimeseries, MetricVal,
|
||||
MetricValue, PromRequest, QueryRangeRequest, QueryRequest, SeriesRequest,
|
||||
plot::{PlotStyle, PlotThreshold},
|
||||
};
|
||||
use rand::RngCore;
|
||||
use reqwest::Client as ReqwestClient;
|
||||
use prom_client::MetricVal;
|
||||
use std::{error::Error, str::FromStr, time::Duration};
|
||||
use tracing::{info, warn};
|
||||
use walkdir::WalkDir;
|
||||
|
||||
Reference in New Issue
Block a user