rename prom-client crate to prometheus-http-client

This commit is contained in:
Chris Beck
2025-12-04 18:38:43 -07:00
parent 642046ddff
commit 5cca5d226c
13 changed files with 10 additions and 11 deletions
+1 -1
View File
@@ -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 }
+1 -1
View File
@@ -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};
+3 -4
View File
@@ -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;