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