Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename download metadata json status code metrics name
Browse files Browse the repository at this point in the history
Nagaprasadvr committed Jan 15, 2025
1 parent aed4bd1 commit cd2c816
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions grpc-ingest/src/prom.rs
Original file line number Diff line number Diff line change
@@ -63,8 +63,8 @@ lazy_static::lazy_static! {
"download_metadata_inserted_count", "Total number of inserted tasks for download metadata"
).unwrap();

static ref DOWNLOAD_METADATA_FAILURE_STATUS_COUNT: IntGaugeVec = IntGaugeVec::new(
Opts::new("download_metadata_failure_status_count", "Status of failed tasks for download metadata"),
static ref DOWNLOAD_METADATA_FAILURE_COUNT: IntGaugeVec = IntGaugeVec::new(
Opts::new("download_metadata_failure_count", "Status of failed tasks for download metadata"),
&["status"]
).unwrap();

@@ -129,7 +129,7 @@ pub fn run_server(address: SocketAddr) -> anyhow::Result<()> {
register!(PROGRAM_TRANSFORMER_TASK_STATUS_COUNT);
register!(INGEST_JOB_TIME);
register!(DOWNLOAD_METADATA_INSERTED_COUNT);
register!(DOWNLOAD_METADATA_FAILURE_STATUS_COUNT);
register!(DOWNLOAD_METADATA_FAILURE_COUNT);
register!(INGEST_TASKS);
register!(ACK_TASKS);
register!(GRPC_TASKS);
@@ -272,7 +272,7 @@ pub fn inc_download_metadata_inserted_count() {
}

pub fn download_metadata_json_task_status_inc(status: u16) {
DOWNLOAD_METADATA_FAILURE_STATUS_COUNT
DOWNLOAD_METADATA_FAILURE_COUNT
.with_label_values(&[&status.to_string()])
.inc();
}

0 comments on commit cd2c816

Please sign in to comment.