rename prom-client crate to prometheus-http-client
This commit is contained in:
@@ -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