temp tracing
test-org/prometheus-exporter/pipeline/pr-rc This commit looks good
Details
test-org/prometheus-exporter/pipeline/pr-rc This commit looks good
Details
parent
5c1a3a6875
commit
99c8aad930
|
|
@ -7,7 +7,7 @@ use crate::structs::v3::PrometheusMetrics;
|
|||
use prometheus::{ Encoder, Gauge, Registry, TextEncoder};
|
||||
use std::sync::{ Arc, MutexGuard };
|
||||
use crate::AppState;
|
||||
use tracing::{ error, info, warn };
|
||||
use tracing::{ debug, error, info, warn };
|
||||
use crate::metrics::{MetricsProcesser, MetricsValueType};
|
||||
|
||||
/// An `Update` endpoint
|
||||
|
|
@ -30,6 +30,7 @@ pub async fn update_metrics(
|
|||
let endpoint = &request.endpoint_name;
|
||||
|
||||
for i in request.metrics {
|
||||
debug!("Processing metric: {:?}", &i);
|
||||
let metric_name = format!("{}_{}_{}", service, endpoint, &i.id);
|
||||
match MetricsProcesser::get_type_of_value(&i) {
|
||||
MetricsValueType::Array |
|
||||
|
|
|
|||
Loading…
Reference in New Issue